Hi Gian,

If you must use "HIDDEN" instead of "Hidden", you can place the following in
your grammar:

For a lexer grammar:

@members {const int HIDDEN = Hidden;}

For a combined grammar:

@lexer::members {const int HIDDEN = Hidden;}

Thanks,
Sam

-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Gian Maria
Sent: Saturday, December 18, 2010 2:50 PM
To: [email protected]
Subject: [antlr-interest] HIDDEN channel for CSharp3

If I write HIDDEN on my ".g" grammar file and then I generate my C# code all
is working, but inside C# when I compile the project,  HIDDEN is not
recognized because is declared "Hidden".

Ok I have changed my grammar file with "$channel=Hidden;" (I don't like
this) and so the C# is working, but inside ANTLRWorks the Interpreter
doesn't work correctly.

For compatibility, without looking a C# name style, is possible to modify
the Runtime with HIDDEN in uppercase? I don't wont to modify my runtime,
because is not a good work for further runtimes update.

 

Best regards Gian


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


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

-- 
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.

Reply via email to