diff --git a/lex2_python.py b/lex2_python.py index 074275f..63486fa 100755 --- a/lex2_python.py +++ b/lex2_python.py @@ -10,10 +10,10 @@ class StringGrammar(Grammar): name=r'escaped', pattern=r'\\.', ), - PatternRule( - name=r'format', - pattern=r'%(?:\([a-zA-Z_]+\))?[-# +]*(?:[0-9]+|\*)?\.?(?:[0-9]+|\*)?[hlL]?[a-zA-Z%]', - ), + #PatternRule( + # name=r'format', + # pattern=r'%(?:\([a-zA-Z_]+\))?[-# +]*(?:[0-9]+|\*)?\.?(?:[0-9]+|\*)?[hlL]?[a-zA-Z%]', + #), ] class PythonGrammar(Grammar): @@ -72,15 +72,15 @@ class PythonGrammar(Grammar): ), PatternRule( name=r"integer", - pattern=r"(?:0|[1-9][0-9]*|0[0-7]+|0[xX][0-9a-fA-F]+)[lL]?", + pattern=r"(?