[antlr-interest] query in tree grammar - regd.

ASHOK REDDY asoka250 at gmail.com
Thu Jul 10 23:49:01 PDT 2008


Hello,

I am trying to migrate a 2.7.7 antlr tree grammar to 3.0.1. I ended up with
error in the following rule :-

node_edge_subgraph_stmt
    : edges
    | subgraph
    | node_id
    |! { boolean record = false; } ^(LBR n=node_id record = l:a_list_node )
        {
            if(record) {
                #node_edge_subgraph_stmt = #([RBR,"]"], n, l);
             }
            else{
                    #node_edge_subgraph_stmt = #([LBR], n, l);
             }

        }
    ;

Antlrworks doesn't recognize l in record = l:a_list_node. How to convert
this assignment statement to the latest syntax. Thank you. The whole tree
grammar is attached for reference.

-- 
Ashok R Varikuti
Graduate Research Assistant
CIS Dept, Kansas State University
785-304-2401.
ashokv at ksu.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080711/62535ecc/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: DOTTreeTransformer.g
Type: application/octet-stream
Size: 1999 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20080711/62535ecc/attachment.obj 


More information about the antlr-interest mailing list