yyc12345
9903b61cac
- fix BMapBindings generator due to the rename of LIBCMO_EXPORT -> BMAP_EXPORT. - fix relative path issue in Python scripts within CodeGen. - remove all references to LIBCMO_PANIC. use exception instead to tell user they are fool. - basically finish universal encoding tables. add lost encoding name.
24 lines
574 B
ANTLR
24 lines
574 B
ANTLR
lexer grammar ExpFctsLexer;
|
|
|
|
// keywords
|
|
EXPFCTS_EXPORT: 'BMAP_EXPORT' ;
|
|
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 ;
|