X-Git-Url: https://code.kerkeslager.com/?p=fur;a=blobdiff_plain;f=tokenization.py;h=bc8cf85a8f5a12aa556095f905bb190ef292c446;hp=33f43312a7aa4f3787653ca8d09c05f40d2f4cae;hb=1f2895250c61aeb81c0f0ba7efed156c9386dfac;hpb=151f60b119247efb1bcf05a664f4324b71fac782 diff --git a/tokenization.py b/tokenization.py index 33f4331..bc8cf85 100644 --- a/tokenization.py +++ b/tokenization.py @@ -38,9 +38,12 @@ _TOKEN_MATCHERS = [ ('open_parenthese', r'\('), ('close_parenthese', r'\)'), ('comma', r','), + ('colon', r':'), + ('period', r'\.'), ('integer_literal', r'\d+'), ('symbol', r'[a-z_]+'), ('single_quoted_string_literal', r"'.*?'"), + ('double_quoted_string_literal', r'".*?"'), ('comparison_level_operator', r'(<=|>=|==|!=|<|>)'), ('assignment_operator', r'='), ('addition_level_operator', r'(\+\+|\+|-)'),