[antlr-interest] Build AST in multilexer
Jose Ventura
jose.ventura.roda at gmail.com
Mon May 29 06:58:24 PDT 2006
Hi all,
I'm developing a multilexer to test CICS command embedded in cobol program.
I have the next parser sentence (it's reduced):
cobolSentence:
EXEC^ CICS {
Main.selector.push("CicsLex");
CicsParser b = new CicsParser (getInputState());
b.comando();
## = #(##,b.getAST());
}
END_EXEC
;
I want to build the AST
EXEC
|---------->CICS
|------------> "comandoCICS"
but, the result is
EXEC
|------------> "comandoCICS"
How the java code after token CICS is executed before of creation CICS node,
the CICS node is lost.
How can I resolve this problem?
Thanks in advance,
José Ventura
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20060529/89d25469/attachment.html
More information about the antlr-interest
mailing list