summaryrefslogtreecommitdiffstats
path: root/parser.l
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2009-11-28 04:20:18 -0800
committerKaz Kylheku <kaz@kylheku.com>2009-11-28 04:20:18 -0800
commit1904b4bedefea15e43a6583255b6b2d2fd6fc69e (patch)
treef8a0c1e23866d0eda83997a086b69e6db7568df7 /parser.l
parent788cace2cb783db0b4df6338f89e6b026ae23e9b (diff)
downloadtxr-1904b4bedefea15e43a6583255b6b2d2fd6fc69e.tar.gz
txr-1904b4bedefea15e43a6583255b6b2d2fd6fc69e.tar.bz2
txr-1904b4bedefea15e43a6583255b6b2d2fd6fc69e.zip
* parser.l: Use flex options to suppress generation of the
unused functons yyunput and yyinput, thus getting rid of some compiler diagnostics.
Diffstat (limited to 'parser.l')
-rw-r--r--parser.l2
1 files changed, 2 insertions, 0 deletions
diff --git a/parser.l b/parser.l
index 5a55115d..586c21d1 100644
--- a/parser.l
+++ b/parser.l
@@ -167,6 +167,8 @@ static wchar_t num_esc(char *num)
%}
%option stack
+%option nounput
+%option noinput
TOK :?[a-zA-Z_][a-zA-Z0-9_]*|[+-]?[0-9]+
ID_END [^a-zA-Z0-9_]