|
Grammar ConstraintLexer ANTLR-generated HTML file from C:\dev\hivemind-dev\hivemind-utilities\hiveevents\module\java\net\sourceforge\hiveevents\constraint.g
Terence Parr, MageLang Institute
|
Definition of lexer ConstraintLexer, which is a subclass of CharScanner.
/** Lexer nextToken rule:
* The lexer nextToken rule is synthesized from all of the user-defined
* lexer rules. It logically consists of one big alternative block with
* each user-defined rule being an alternative.
*/
mWS
| mOR
| mAND
| mLT
| mLE
| mGT
| mGE
| mEQ
| mNE
| mDOT
| mLPAREN
| mRPAREN
| mPROPERTY
| mNUM_LITERAL
| mSTR_LITERAL
mWS
: ( ' '
| '\t'
)
;
mOR
: "||"
;
mAND
: "&&"
;
mLT
: "<"
;
mLE
: "<="
;
mGT
: ">"
;
mGE
: ">="
;
mEQ
: "=="
;
mNE
: "!="
;
mDOT
: "."
;
mLPAREN
: '('
;
mRPAREN
: ')'
;
protected mID
: ( 'a'..'z'
| 'A'..'Z'
| '_'
)
( 'a'..'z'
| 'A'..'Z'
| '_'
| '0'..'9'
)*
;
mPROPERTY
: mID ( mDOT mID )*
;
mNUM_LITERAL
: ( '0'..'9' )+
| '+' ( '0'..'9' )+
| '-' ( '0'..'9' )+
;
mSTR_LITERAL
: '\'' ( ~'\'' )* '\''
;