diff options
author | wollman <wollman@FreeBSD.org> | 1995-01-14 22:29:34 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1995-01-14 22:29:34 +0000 |
commit | 479760c2d1e817f812fa71973482213f15d0a540 (patch) | |
tree | b01b2a189f9952f13c52aad71fdcd992d8148f0a /usr.bin/compile_et/et_lex.lex.l | |
parent | 93bd3ddd3ca7c6ac68b55ec30b39a3930a084aba (diff) | |
download | FreeBSD-src-479760c2d1e817f812fa71973482213f15d0a540.zip FreeBSD-src-479760c2d1e817f812fa71973482213f15d0a540.tar.gz |
Upgrade to latest released SIPB version I can find. (Unfortunately, the
original releases were not numbered.)
Diffstat (limited to 'usr.bin/compile_et/et_lex.lex.l')
-rw-r--r-- | usr.bin/compile_et/et_lex.lex.l | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/usr.bin/compile_et/et_lex.lex.l b/usr.bin/compile_et/et_lex.lex.l index c041819..0c848de 100644 --- a/usr.bin/compile_et/et_lex.lex.l +++ b/usr.bin/compile_et/et_lex.lex.l @@ -1,9 +1,4 @@ -%{ -extern int yylineno; -int yylineno = 1; -%} - -PC [^\"\n] +PC [^\"] AN [A-Z_a-z0-9] %% @@ -13,8 +8,7 @@ error_code return ERROR_CODE_ENTRY; ec return ERROR_CODE_ENTRY; end return END; -[\t ]+ ; -\n ++yylineno; +[\t\n ] ; \"{PC}*\" { register char *p; yylval.dynstr = ds(yytext+1); if (p=rindex(yylval.dynstr, '"')) *p='\0'; @@ -23,7 +17,10 @@ end return END; {AN}* { yylval.dynstr = ds(yytext); return STRING; } -#.*\n ++yylineno; +#.*\n ; . { return (*yytext); } %% +#ifndef lint +static char rcsid_et_lex_lex_l[] = "$Header: et_lex.lex.l,v 1.3 87/10/31 06:28:05 raeburn Exp $"; +#endif |