[antlr-interest] meaning of #xxx

Philippe Frankson Philippe.Frankson at Frsglobal.com
Thu May 12 07:51:11 PDT 2011


Hi,
In a grammar done with ANTLR 2.x, I have seen the following expression:

sql_literal:
        ( NUMBER | QUOTED_STRING | "null" )
        { #sql_literal = #([SQL_LITERAL, "sql_literal"], #sql_literal);
}
    ;

Anybody can explain the meaning of the code inside the  { } ? (or send a
link where I can find the doc).
#sql_literal ?
#(x,y) ?

I could not find relevant documentation explaining that.

Thx a lot.
Philippe



More information about the antlr-interest mailing list