[il-antlr-interest: 26619] [antlr-interest] problem with ast grammar

2009-11-03 Thread Михаил Юрушкин
good day, fortran supports "if construct" with following syntax: [name:] if (..) then [block] else if (..) [name:] then [block] else if (..) [name:] then [block] else [name:] [block] end if [name] for example: firstIf : if (a>10) then a = 10 else if (b>10) : secondIf then b = 10;

[il-antlr-interest: 26618] [antlr-interest] program with ast grammar

2009-11-03 Thread Михаил Юрушкин
good day, fortran supports "if construct" with following syntax: [name:] if (..) then [block] else if (..) [name:] then [block] else if (..) [name:] then [block] else [name:] [block] end if [name] for example: firstIf : if (a>10) then a = 10 else if (b>10) : secondIf then b = 10;

[il-antlr-interest: 26375] [antlr-interest] [c target] memory leaks during error recovery

2009-10-18 Thread Михаил Юрушкин
Good day, I have the rule myRule[returns Type1 res] : rule1, rule2, rule3, rule4... ruleN { res = f($rule1, $rule2,..., , $ruleN) } ; it's all ok. BUT if ruleN will fire exception, rule1, rule2.. rule(N-1) subtrees will be forgotten!!! How can I manage such situations?? can you write me right