File: lex_input_example.l

package info (click to toggle)
kimwitu-doc 10a-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 1,192 kB
  • ctags: 341
  • sloc: makefile: 166; yacc: 125; ansic: 40; lex: 18; sh: 2
file content (9 lines) | stat: -rw-r--r-- 199 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
/* Lexemes */
%{
#include "k.h" 
#include "y.tab.h" 
%}
%%
[a-zA-Z0-9]+	{ yylval.yt_casestring = mkcasestring(yytext); return ID;}
[\t\n ]		{ ; }  /* skip the white space */
.		{ return yytext[0]; }