[antlr-interest] stuck expr

jagad jagad at enciety.com
Wed Oct 1 07:05:07 PDT 2003


I use -parserTrace and try input:

(1+2),(1+3);

The Output:
------------------------------------
 > expr; LA(1)==(1+2),(1+3);
(
  > simpleExpr; LA(1)==(
   > term; LA(1)==(
    > factor; LA(1)==(
     > expr; LA(1)==1
      > simpleExpr; LA(1)==1
       > term; LA(1)==1
        > factor; LA(1)==1
NUM_INT
        < factor; LA(1)==+
term
       < term; LA(1)==+
       > addOp; LA(1)==+
PLUS
       < addOp; LA(1)==2
       > term; LA(1)==2
        > factor; LA(1)==2
NUM_INT
        < factor; LA(1)==)
term
       < term; LA(1)==)
simpleExpr
      < simpleExpr; LA(1)==)
expr
     < expr; LA(1)==)
( expr )
    < factor; LA(1)==,
term
   < term; LA(1)==,
simpleExpr
  < simpleExpr; LA(1)==,
expr
 < expr; LA(1)==,  <--------- lost at COMMA

-------------------------------------

The problem still exist.

Best Regards

jagad




 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list