1
// This file is part of PyANTLR. See LICENSE.txt for license
2
// details..........Copyright (C) Wolfgang Haefelinger, 2004.
10
class expr_p extends Parser;
13
codeGenMakeSwitchThreshold = 3;
14
codeGenBitsetTestThreshold = 4;
16
ASTLabelType = "antlr.CommonAST"; // change default of "AST"
19
expr : assignExpr EOF! ;
35
catch [ antlr.RecognitionException,ex ]
37
print "Caught error in addExpr"
53
// Matches function call syntax like "id(arg,arg)"
79
| LPAREN! assignExpr RPAREN!
82
class expr_l extends Lexer;
110
: '\'' (ESC|~'\'') '\''
114
: '"' (ESC|~'"')* '"'
130
warnWhenFollowAmbig = false;
135
warnWhenFollowAmbig = false;
143
warnWhenFollowAmbig = false;
163
: ('a'..'z'|'A'..'Z'|'_') ('a'..'z'|'A'..'Z'|'_'|'0'..'9')*