mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 15:21:04 +01:00
[executable semantics] Trivial lexer cleanup (#341)
- turn off unneeded legacy flex parts. - a couple of comments
This commit is contained in:
@@ -8,6 +8,13 @@ SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
||||
#include <cstdlib>
|
||||
#include "executable_semantics/syntax.tab.h"
|
||||
%}
|
||||
|
||||
/* Turn off legacy bits we don't need */
|
||||
%option noyywrap nounput nodefault noinput
|
||||
|
||||
/* maintains the number of the current line read from input in the
|
||||
global variable yylineno.
|
||||
*/
|
||||
%option yylineno
|
||||
|
||||
AND "and"
|
||||
@@ -86,5 +93,3 @@ integer_literal [0-9]+
|
||||
. { return yytext[0]; }
|
||||
|
||||
%%
|
||||
|
||||
int yywrap() { return 1; }
|
||||
|
||||
Reference in New Issue
Block a user