1"""module docstring"""
2
3namespace My.NameSpace #optional namespace declaration
4
5import Assembly.Reference #import statements
6
7#followed by the Members of this module (classes, methods, etc.)
8class MyClass:
9    pass
10
11def domyfunction(it):
12    print(it)
13
14#start "main" section that is executed when script is run
15x as int
16x = 3
17domyfunction(x)
18
19#optional assembly attribute declarations used when compiling
20[assembly: AssemblyTitle('foo')]
21[assembly: AssemblyDescription('bar')]
22
23import MyLibrary
24print (Version)
25doit()
26
27[Module]
28class MainClass:
29    public static Version as string
30
31    static def constructor():
32        Version = "0.1"
33
34def doit():
35    #you can refer to "globals" from within your library, too:
36    print("This library's version is: "+MainClass.Version)
37
38