diff options
Diffstat (limited to 'scripts/genksyms/lex.l')
-rw-r--r-- | scripts/genksyms/lex.l | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/scripts/genksyms/lex.l b/scripts/genksyms/lex.l index fe50ff9dacd0..4687b1d147de 100644 --- a/scripts/genksyms/lex.l +++ b/scripts/genksyms/lex.l | |||
@@ -55,10 +55,6 @@ CHAR L?\'([^\\\']*\\.)*[^\\\']*\' | |||
55 | 55 | ||
56 | MC_TOKEN ([~%^&*+=|<>/-]=)|(&&)|("||")|(->)|(<<)|(>>) | 56 | MC_TOKEN ([~%^&*+=|<>/-]=)|(&&)|("||")|(->)|(<<)|(>>) |
57 | 57 | ||
58 | /* Version 2 checksumming does proper tokenization; version 1 wasn't | ||
59 | quite so pedantic. */ | ||
60 | %s V2_TOKENS | ||
61 | |||
62 | /* We don't do multiple input files. */ | 58 | /* We don't do multiple input files. */ |
63 | %option noyywrap | 59 | %option noyywrap |
64 | 60 | ||
@@ -84,9 +80,9 @@ MC_TOKEN ([~%^&*+=|<>/-]=)|(&&)|("||")|(->)|(<<)|(>>) | |||
84 | recognized as tokens. We don't actually use them since we don't | 80 | recognized as tokens. We don't actually use them since we don't |
85 | parse expressions, but we do want whitespace to be arranged | 81 | parse expressions, but we do want whitespace to be arranged |
86 | around them properly. */ | 82 | around them properly. */ |
87 | <V2_TOKENS>{MC_TOKEN} return OTHER; | 83 | {MC_TOKEN} return OTHER; |
88 | <V2_TOKENS>{INT} return INT; | 84 | {INT} return INT; |
89 | <V2_TOKENS>{REAL} return REAL; | 85 | {REAL} return REAL; |
90 | 86 | ||
91 | "..." return DOTS; | 87 | "..." return DOTS; |
92 | 88 | ||
@@ -134,7 +130,6 @@ yylex(void) | |||
134 | 130 | ||
135 | if (lexstate == ST_NOTSTARTED) | 131 | if (lexstate == ST_NOTSTARTED) |
136 | { | 132 | { |
137 | BEGIN(V2_TOKENS); | ||
138 | next_node = xmalloc(sizeof(*next_node)); | 133 | next_node = xmalloc(sizeof(*next_node)); |
139 | next_node->next = NULL; | 134 | next_node->next = NULL; |
140 | lexstate = ST_NORMAL; | 135 | lexstate = ST_NORMAL; |