Attempting to experiment with trans module
Monkey Forums/Monkey Programming/Attempting to experiment with trans module| 
 | ||
| Okay so, this is as far as I've gotten: 
Strict
Import os
Import trans
Global code:AppDecl
Function Main:Int()
	code = ParseApp("myfile.monkey")
	code.Semant()
	For Local classDecl:ClassDecl = Eachin code.semantedClasses
		Print classDecl.ToString()
	Next
	Return 0
End
These are the errors I get. FOPEN 'rb' for LoadString 'myfile.monkey' failed myfile.monkey<2> : Error : Module 'monkey.lang' not found. I am building for the stdcpp target. Anyone know where I should go from here? | 
| 
 | ||
| What are you trying to do? | 
| 
 | ||
| Not sure yet, just wanted to see if the trans parser is usable as-is. | 
| 
 | ||
| Okay so I think I've made some progress, I've added this so now it knows where to find the monkey and monkey.lang modules: SetCfgVar "MODPATH", ".;C:\Monkey\MonkeyPro66\modules" It still doesn't run but I'm starting to see how intertwined the translation stuff is with the parsing. Tough stuff, gonna keep trying. |