[antlr-interest] HIDDEN channel for CSharp3
Sam Harwell
sharwell at pixelminegames.com
Sat Dec 18 18:13:15 PST 2010
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: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Gian Maria
Sent: Saturday, December 18, 2010 2:50 PM
To: antlr-interest at antlr.org
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
More information about the antlr-interest
mailing list