improved make.tokcase for EOF handling
This commit is contained in:
parent
6c40cad879
commit
7f958dfb8d
@ -23,6 +23,7 @@ s/.*{\(.*\),.*\(".*"\).*$/ case \1 :\
|
||||
|
||||
cat <<'--EOT--'
|
||||
default:
|
||||
if (tok <= 0) return "end of file";
|
||||
if (tok < 040 || tok >= 0177) {
|
||||
return "bad token";
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user