|
|
|
@ -47,7 +47,7 @@ class Lexer: |
|
|
|
|
('eol_cont', re.compile(r'\\\n')), |
|
|
|
|
('eol', re.compile(r'\n')), |
|
|
|
|
('multiline_string', re.compile(r"'''(.|\n)*?'''", re.M)), |
|
|
|
|
('comment', re.compile(r'\#.*')), |
|
|
|
|
('comment', re.compile(r'#.*')), |
|
|
|
|
('lparen', re.compile(r'\(')), |
|
|
|
|
('rparen', re.compile(r'\)')), |
|
|
|
|
('lbracket', re.compile(r'\[')), |
|
|
|
@ -60,11 +60,11 @@ class Lexer: |
|
|
|
|
('plus', re.compile(r'\+')), |
|
|
|
|
('dash', re.compile(r'-')), |
|
|
|
|
('star', re.compile(r'\*')), |
|
|
|
|
('percent', re.compile(r'\%')), |
|
|
|
|
('percent', re.compile(r'%')), |
|
|
|
|
('fslash', re.compile(r'/')), |
|
|
|
|
('colon', re.compile(r':')), |
|
|
|
|
('equal', re.compile(r'==')), |
|
|
|
|
('nequal', re.compile(r'\!=')), |
|
|
|
|
('nequal', re.compile(r'!=')), |
|
|
|
|
('assign', re.compile(r'=')), |
|
|
|
|
('le', re.compile(r'<=')), |
|
|
|
|
('lt', re.compile(r'<')), |
|
|
|
|