24 lines
		
	
	
		
			411 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			411 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| module: Main
 | |
|     import: os,ModuleA
 | |
|     globals:
 | |
|         declare c: int = 10
 | |
|     function: main
 | |
|         returns: void
 | |
|         body:
 | |
|              c = ModuleA.getA()
 | |
|              os.print(c)
 | |
|         end body
 | |
|     end function
 | |
| end module
 | |
| 
 | |
| module: ModuleA
 | |
|     globals:
 | |
|         declare a: int = 2
 | |
|     function: getA
 | |
|         returns: int
 | |
|         body:
 | |
|             return a
 | |
|         end body
 | |
|     end function
 | |
| end module
 |