Thanks Sam - I had tried the the partial class approach, but the first
time I tried it I missed the fact that my partial with the attribute on it
wasn't in the same namespace. I added the
@parser::namespace {MyNamespace}
global action to my grammar and it worked like a charm.
Thanks again,
Tony.
--------------------------------------
The C# target declares the parser as a partial class. If your parser
MyParser is generated in a file called MyParser.cs, create another file in
your project called MyParserHelper.cs with contents like this:
namespace MyParserNamespace
{
[YourAttributeHere]
partial class MyParser { }
}
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.