summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorDavid Beazley <dave@dabeaz.com>2007-02-19 04:17:51 +0000
committerDavid Beazley <dave@dabeaz.com>2007-02-19 04:17:51 +0000
commit6e88808eac76947b7e6989088ec5e22ca732d9e2 (patch)
treebc32490c70b81ed40b4a17f0de2f8c3c9e1b7279 /example
parentdd12e8f8b35e809f627c3cb00814470d828b72cb (diff)
downloadply-6e88808eac76947b7e6989088ec5e22ca732d9e2.tar.gz
Performance optimization. Cleanup
Diffstat (limited to 'example')
-rw-r--r--example/ansic/lextab.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/example/ansic/lextab.py b/example/ansic/lextab.py
index ce9804b..b994df1 100644
--- a/example/ansic/lextab.py
+++ b/example/ansic/lextab.py
@@ -1,8 +1,8 @@
-# lextab.py. This file automatically created by PLY (version 2.2). Don't edit!
-_lextokens = {'SHORT': None, 'SIGNED': None, 'TIMES': None, 'TYPEID': None, 'GT': None, 'ARROW': None, 'FCONST': None, 'CONST': None, 'GE': None, 'PERIOD': None, 'SEMI': None, 'REGISTER': None, 'ENUM': None, 'SIZEOF': None, 'COMMA': None, 'RBRACE': None, 'RPAREN': None, 'RSHIFTEQUAL': None, 'LT': None, 'OREQUAL': None, 'XOREQUAL': None, 'DOUBLE': None, 'LBRACE': None, 'STRUCT': None, 'LPAREN': None, 'PLUSEQUAL': None, 'LNOT': None, 'NOT': None, 'CONDOP': None, 'LE': None, 'FLOAT': None, 'GOTO': None, 'LOR': None, 'EQ': None, 'MOD': None, 'ICONST': None, 'LONG': None, 'PLUS': None, 'DIVIDE': None, 'WHILE': None, 'UNION': None, 'CHAR': None, 'SWITCH': None, 'DO': None, 'FOR': None, 'VOID': None, 'EXTERN': None, 'RETURN': None, 'MINUSEQUAL': None, 'ELSE': None, 'ANDEQUAL': None, 'BREAK': None, 'CCONST': None, 'INT': None, 'DIVEQUAL': None, 'DEFAULT': None, 'TIMESEQUAL': None, 'MINUS': None, 'OR': None, 'CONTINUE': None, 'IF': None, 'UNSIGNED': None, 'ID': None, 'MINUSMINUS': None, 'COLON': None, 'LSHIFTEQUAL': None, 'RBRACKET': None, 'VOLATILE': None, 'CASE': None, 'PLUSPLUS': None, 'RSHIFT': None, 'MODEQUAL': None, 'LAND': None, 'AND': None, 'ELLIPSIS': None, 'STATIC': None, 'LBRACKET': None, 'LSHIFT': None, 'NE': None, 'TYPEDEF': None, 'AUTO': None, 'XOR': None, 'EQUALS': None, 'SCONST': None}
+# lextab.py. This file automatically created by PLY (version 2.3). Don't edit!
+_lextokens = {'DO': None, 'SHORT': None, 'RETURN': None, 'RSHIFTEQUAL': None, 'DEFAULT': None, 'VOID': None, 'NE': None, 'CHAR': None, 'WHILE': None, 'LNOT': None, 'STATIC': None, 'SCONST': None, 'LSHIFT': None, 'EXTERN': None, 'CONST': None, 'SIZEOF': None, 'CONDOP': None, 'MINUS': None, 'DIVIDE': None, 'CASE': None, 'LAND': None, 'RPAREN': None, 'FCONST': None, 'SEMI': None, 'REGISTER': None, 'MODEQUAL': None, 'UNSIGNED': None, 'LONG': None, 'PLUSPLUS': None, 'SWITCH': None, 'LSHIFTEQUAL': None, 'PLUS': None, 'COMMA': None, 'LOR': None, 'PERIOD': None, 'CCONST': None, 'RBRACKET': None, 'TYPEDEF': None, 'GT': None, 'XOR': None, 'GOTO': None, 'FOR': None, 'UNION': None, 'AUTO': None, 'ENUM': None, 'EQUALS': None, 'DIVEQUAL': None, 'ELSE': None, 'PLUSEQUAL': None, 'GE': None, 'LE': None, 'ICONST': None, 'ARROW': None, 'ELLIPSIS': None, 'LPAREN': None, 'RBRACE': None, 'MINUSMINUS': None, 'TIMES': None, 'EQ': None, 'ID': None, 'IF': None, 'AND': None, 'TYPEID': None, 'LBRACE': None, 'STRUCT': None, 'RSHIFT': None, 'COLON': None, 'INT': None, 'DOUBLE': None, 'MINUSEQUAL': None, 'FLOAT': None, 'XOREQUAL': None, 'SIGNED': None, 'LT': None, 'BREAK': None, 'CONTINUE': None, 'VOLATILE': None, 'LBRACKET': None, 'NOT': None, 'ANDEQUAL': None, 'OREQUAL': None, 'TIMESEQUAL': None, 'OR': None, 'MOD': None}
_lexreflags = 0
_lexliterals = ''
_lexstateinfo = {'INITIAL': 'inclusive'}
-_lexstatere = {'INITIAL': [('(?P<t_NEWLINE>\\n+)|(?P<t_ID>[A-Za-z_][\\w_]*)|(?P<t_comment> /\\*(.|\\n)*?\\*/)|(?P<t_preprocessor>\\#(.)*?\\n)|(?P<t_FCONST>((\\d+)(\\.\\d+)(e(\\+|-)?(\\d+))? | (\\d+)e(\\+|-)?(\\d+))([lL]|[fF])?)|(?P<t_ICONST>\\d+([uU]|[lL]|[uU][lL]|[lL][uU])?)|(?P<t_CCONST>(L)?\\\'([^\\\\\\n]|(\\\\.))*?\\\')|(?P<t_SCONST>\\"([^\\\\\\n]|(\\\\.))*?\\")|(?P<t_ELLIPSIS>\\.\\.\\.)|(?P<t_LOR>\\|\\|)|(?P<t_PLUSPLUS>\\+\\+)|(?P<t_TIMESEQUAL>\\*=)|(?P<t_RSHIFTEQUAL>>>=)|(?P<t_OREQUAL>\\|=)|(?P<t_PLUSEQUAL>\\+=)|(?P<t_LSHIFTEQUAL><<=)|(?P<t_RBRACKET>\\])|(?P<t_MODEQUAL>%=)|(?P<t_XOREQUAL>^=)|(?P<t_LSHIFT><<)|(?P<t_TIMES>\\*)|(?P<t_LAND>&&)|(?P<t_MINUSMINUS>--)|(?P<t_NE>!=)|(?P<t_LPAREN>\\()|(?P<t_ANDEQUAL>&=)|(?P<t_RSHIFT>>>)|(?P<t_LBRACKET>\\[)|(?P<t_LBRACE>\\{)|(?P<t_OR>\\|)|(?P<t_RBRACE>\\})|(?P<t_ARROW>->)|(?P<t_PLUS>\\+)|(?P<t_CONDOP>\\?)|(?P<t_LE><=)|(?P<t_MINUSEQUAL>-=)|(?P<t_PERIOD>\\.)|(?P<t_DIVEQUAL>/=)|(?P<t_EQ>==)|(?P<t_GE>>=)|(?P<t_RPAREN>\\))|(?P<t_XOR>\\^)|(?P<t_SEMI>;)|(?P<t_AND>&)|(?P<t_NOT>~)|(?P<t_EQUALS>=)|(?P<t_MOD>%)|(?P<t_LT><)|(?P<t_MINUS>-)|(?P<t_LNOT>!)|(?P<t_DIVIDE>/)|(?P<t_COMMA>,)|(?P<t_GT>>)|(?P<t_COLON>:)', [None, ('t_NEWLINE', 'NEWLINE'), ('t_ID', 'ID'), ('t_comment', 'comment'), None, ('t_preprocessor', 'preprocessor'), None, (None, 'FCONST'), None, None, None, None, None, None, None, None, None, None, (None, 'ICONST'), None, (None, 'CCONST'), None, None, None, (None, 'SCONST'), None, None, (None, 'ELLIPSIS'), (None, 'LOR'), (None, 'PLUSPLUS'), (None, 'TIMESEQUAL'), (None, 'RSHIFTEQUAL'), (None, 'OREQUAL'), (None, 'PLUSEQUAL'), (None, 'LSHIFTEQUAL'), (None, 'RBRACKET'), (None, 'MODEQUAL'), (None, 'XOREQUAL'), (None, 'LSHIFT'), (None, 'TIMES'), (None, 'LAND'), (None, 'MINUSMINUS'), (None, 'NE'), (None, 'LPAREN'), (None, 'ANDEQUAL'), (None, 'RSHIFT'), (None, 'LBRACKET'), (None, 'LBRACE'), (None, 'OR'), (None, 'RBRACE'), (None, 'ARROW'), (None, 'PLUS'), (None, 'CONDOP'), (None, 'LE'), (None, 'MINUSEQUAL'), (None, 'PERIOD'), (None, 'DIVEQUAL'), (None, 'EQ'), (None, 'GE'), (None, 'RPAREN'), (None, 'XOR'), (None, 'SEMI'), (None, 'AND'), (None, 'NOT'), (None, 'EQUALS'), (None, 'MOD'), (None, 'LT'), (None, 'MINUS'), (None, 'LNOT'), (None, 'DIVIDE'), (None, 'COMMA'), (None, 'GT'), (None, 'COLON')])]}
-_lexstateignore = {'INITIAL': ' \t\f'}
+_lexstatere = {'INITIAL': [('(?P<t_NEWLINE>\\n+)|(?P<t_ID>[A-Za-z_][\\w_]*)|(?P<t_comment> /\\*(.|\\n)*?\\*/)|(?P<t_preprocessor>\\#(.)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or', 'preprocessor'), None, (None, 'FCONST'), None, None, None, None, None, None, None, None, None, None, (None, 'ICONST'), None, (None, 'CCONST'), None, None, None, (None, 'SCONST'), None, None, (None, 'ELLIPSIS'), (None, 'PLUSPLUS'), (None, 'LOR'), (None, 'RSHIFTEQUAL'), (None, 'TIMESEQUAL'), (None, 'LSHIFTEQUAL'), (None, 'PLUSEQUAL'), (None, 'OREQUAL'), (None, 'XOREQUAL'), (None, 'RBRACKET'), (None, 'LE'), (None, 'PERIOD'), (None, 'RSHIFT'), (None, 'LPAREN'), (None, 'NE'), (None, 'RBRACE'), (None, 'MINUSMINUS'), (None, 'MINUSEQUAL'), (None, 'MODEQUAL'), (None, 'OR'), (None, 'LBRACE'), (None, 'ANDEQUAL'), (None, 'DIVEQUAL'), (None, 'ARROW'), (None, 'TIMES'), (None, 'CONDOP'), (None, 'XOR'), (None, 'LBRACKET'), (None, 'GE'), (None, 'RPAREN'), (None, 'LAND'), (None, 'LSHIFT'), (None, 'EQ'), (None, 'PLUS'), (None, 'NOT'), (None, 'COMMA'), (None, 'MOD'), (None, 'DIVIDE'), (None, 'LT'), (None, 'AND'), (None, 'SEMI'), (None, 'MINUS'), (None, 'EQUALS'), (None, 'COLON'), (None, 'LNOT'), (None, 'GT')])]}
+_lexstateignore = {'INITIAL': ' \t\x0c'}
_lexstateerrorf = {'INITIAL': 't_error'}