[antlr-interest] C Runtime and Strings
dev.null.nix at gmail.com
dev.null.nix at gmail.com
Fri Aug 24 05:33:22 PDT 2007
Hi,
I have a rule like this in a C target language grammar:
scoped_identifier : NAMESPACE_COLON? (IDENTIFIER NAMESPACE_COLON)*
IDENTIFIER;
I would like to return the string representing scoped_identifier.
Is there any way to access the buffer location of a token in the input
buffer (like storing a pointer to the first and the last char).
And if there is a way, is the input buffer read into one big buffer so
that it is valid for the whole parser?
Thanks,
Stefan
More information about the antlr-interest
mailing list