This is probably a known CSharp2 target compile issue, but googling the error 
message only turned up others with the same problem, no resolution/status.  

Questions: Will it be fixed?  best work-arounds?


The compile error is: Invalid expression term ')'

Anytime I use a token in single quotes in an AST rewrite, I get the above.  For 
example, 

someRule : 'KEYWORD' 'TOKEN' ->  ^(KEYWORD TOKEN);

which produces an empty condition in a C# if statement: 

    if ( )


If I remove the single quotes, the error is resolved:

someRule : KEYWORD TOKEN ->  ^(KEYWORD TOKEN);


the newly gen'd code being:

if ( stream_KEYWORD.HasNext() )

Regards,
Ben

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

Reply via email to