Dear All,
I'm currently using the following C code to parse Java files for a
university project.
This works very nice and I get an output like
package
identifier
;
and so on for my Java File.
The only thing I am missing now is to get the name of the identifier.
Is this somehow possible?
...
{
ANTLR3_INT32 T;
T = 0;
while (T != ANTLR3_TOKEN_EOF)
{
T = tstream->tstream->istream->_LA(tstream->tstream->istream, 1);
tstream->tstream->istream->consume(tstream->tstream->istream);
printf("%s \n", (psr->pParser->rec->state->tokenNames)[T], T);
}
}
...
Best Regards and thanks in advance,
Florian
--------------------------------------------
Florian Leitner-Fischer
Duchtlinger Str. 4d
78247 Hilzingen
phone +49 (0) 7731 9125 095
mobile +49 (0) 151 196 908 42
--------------------------------------------
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
-~----------~----~----~----~------~----~------~--~---