2023-11-01 10:31:17 +08:00
|
|
|
lexer grammar ExpFctsLexer;
|
|
|
|
|
|
|
|
// keywords
|
2024-08-17 23:29:08 +08:00
|
|
|
EXPFCTS_EXPORT: 'BMAP_EXPORT' ;
|
2023-11-01 10:31:17 +08:00
|
|
|
EXPFCTS_FILE_DECL: 'BMPARAM_FILE_DECL' ;
|
|
|
|
EXPFCTS_MESHTRANS_DECL: 'BMPARAM_MESHTRANS_DECL' ;
|
|
|
|
EXPFCTS_OBJECT_DECL: 'BMPARAM_OBJECT_DECL' ;
|
|
|
|
EXPFCTS_PARAM_IN: 'BMPARAM_IN' ;
|
|
|
|
EXPFCTS_PARAM_OUT: 'BMPARAM_OUT' ;
|
|
|
|
|
|
|
|
// symbols
|
|
|
|
EXPFCTS_LPARENTHESES: '(' ;
|
|
|
|
EXPFCTS_RPARENTHESES: ')' ;
|
|
|
|
EXPFCTS_COMMA: ',' ;
|
|
|
|
EXPFCTS_SEMICOLON: ';' ;
|
|
|
|
EXPFCTS_STAR: '*' ;
|
|
|
|
EXPFCTS_DOUBLE_COLON: '::' ;
|
|
|
|
|
|
|
|
// identifider
|
|
|
|
EXPFCTS_IDENTIFIER: [_a-zA-Z][_a-zA-Z0-9]* ;
|
|
|
|
|
|
|
|
// remove whitespace and line break
|
|
|
|
EXPFCTS_WS: [ \t\n\r\f]+ -> skip ;
|