I just read today about the new release of MTASC.
Changes are :
- “for” optional first parameter and expression
- fixed while( o )++ i;
- added error when duplicate import statement (with same or different package)
- added class-exist import check => import will now link classes
- fixed typing error with single “var” in a block
- fixed parser error with a?b:c and big left-expression
- fixed bug when catching “imported” exception class
- changed boolean operators typing
- added -flash6 for F6 compilation
- added -trace for custom trace function
- added optional color component for header
About new -trace: you can new use TRACE(….) (uppercase) in your code. such calls will be eithere removed if you don’t specify -trace from MTASC commandline or will be replaced by -trace specified function. Exemple :
class A { function test() { TRACE("hello !"); } }
when calling mtasc -trace MyClass.myLogFunction will be compiled as : MyClass.myLogFunction(“hello !”, “A::test”, “A.as”, 3 );
This way you can get class name , method name, file and line from which the trace occured, and log them using your custom trace function.
It’s a while i’m using mtasc integrated in sepy for checking syntax and I’m very happy how it works, checking syntax better than MM internal compiler…