Spaces:
Running
Running
File size: 413 Bytes
5f923cd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | lexer grammar AntlrPythonLexer;
EQ: '=';
COLON: ':';
SEP: ',';
OPEN_PAR: '(';
CLOSE_PAR: ')';
OPEN_BRACE: '{';
CLOSE_BRACE: '}';
LIST_OPEN: '[';
LIST_CLOSE: ']';
BOOL: 'True' | 'False';
INT: '-'? [0-9]+;
FLOAT: '-'? [0-9]+[.][0-9]* | '-'? [0-9]*[.][0-9]+;
STRING : '"' ( ~["\\] | [\\]. )* '"'
| '\'' ( ~['\\] | [\\]. )* '\''
;
NONE: 'None';
NAME: [a-zA-Z_][a-zA-Z0-9_]*;
WS: [ \t\n\r]+ -> skip;
|