public
/
piyacc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Make syntax error call yyerror() rather than raising a Python exception
[piyacc.git]
/
lex-yacc-examples
/
example4.l
1
%{
2
#include <stdio.h>
3
#include "example4.tab.h" /*"y.tab.h"*/
4
%}
5
%%
6
[0-9]+ return NUMBER;
7
heat return TOKHEAT;
8
on|off return STATE;
9
target return TOKTARGET;
10
temperature return TOKTEMPERATURE;
11
\n /* ignore end of line */;
12
[ \t]+ /* ignore whitespace */;
13
%%