<indentfold><beginfold id='1'>"""</beginfold id='1'>module docstring<endfold id='1'>"""</endfold id='1'>

namespace My.NameSpace #optional namespace declaration

import Assembly.Reference #import statements

#followed by the Members of this module (classes, methods, etc.)
class MyClass:
    pass

def domyfunction<beginfold id='2'>(</beginfold id='2'>it<endfold id='2'>)</endfold id='2'>:
    print<beginfold id='2'>(</beginfold id='2'>it<endfold id='2'>)</endfold id='2'>

#start "main" section that is executed when script is run
x as int
x = 3
domyfunction<beginfold id='2'>(</beginfold id='2'>x<endfold id='2'>)</endfold id='2'>

#optional assembly attribute declarations used when compiling
[assembly: AssemblyTitle<beginfold id='2'>(</beginfold id='2'>'foo'<endfold id='2'>)</endfold id='2'>]
[assembly: AssemblyDescription<beginfold id='2'>(</beginfold id='2'>'bar'<endfold id='2'>)</endfold id='2'>]

import MyLibrary
print <beginfold id='2'>(</beginfold id='2'>Version<endfold id='2'>)</endfold id='2'>
doit<beginfold id='2'>(</beginfold id='2'><endfold id='2'>)</endfold id='2'>

[Module]
class MainClass:
    public static Version as string

    static def constructor<beginfold id='2'>(</beginfold id='2'><endfold id='2'>)</endfold id='2'>:
        Version = "0.1"

def doit<beginfold id='2'>(</beginfold id='2'><endfold id='2'>)</endfold id='2'>:
    #you can refer to "globals" from within your library, too:
    print<beginfold id='2'>(</beginfold id='2'>"This library's version is: "+MainClass.Version<endfold id='2'>)</endfold id='2'>

