Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/usr.bin/fgen Pull up revision 1.19 (requested by eeh in...



details:   https://anonhg.NetBSD.org/src/rev/c62a0c9e6b23
branches:  netbsd-1-6
changeset: 527871:c62a0c9e6b23
user:      lukem <lukem%NetBSD.org@localhost>
date:      Tue Jun 11 02:02:16 2002 +0000

description:
Pull up revision 1.19 (requested by eeh in ticket #240):
Recognize "." as distinct from numbers with dots in them.

diffstat:

 usr.bin/fgen/fgen.l |  19 ++++++++-----------
 1 files changed, 8 insertions(+), 11 deletions(-)

diffs (38 lines):

diff -r 34888bb3f060 -r c62a0c9e6b23 usr.bin/fgen/fgen.l
--- a/usr.bin/fgen/fgen.l       Tue Jun 11 01:59:49 2002 +0000
+++ b/usr.bin/fgen/fgen.l       Tue Jun 11 02:02:16 2002 +0000
@@ -1,5 +1,5 @@
 %{
-/*     $NetBSD: fgen.l,v 1.16.2.1 2002/05/29 16:25:20 tv Exp $ */
+/*     $NetBSD: fgen.l,v 1.16.2.2 2002/06/11 02:02:16 lukem Exp $      */
 /* FLEX input for FORTH input file scanner */
 /*  
  * Copyright (c) 1998 Eduardo Horvath.
@@ -103,20 +103,17 @@
 
 %%
 
-0                      { token.type = TOK_OTHER; token.text = yytext;
-                               return &token; }
+0              { token.type = TOK_OTHER; token.text = yytext; return &token; }
 
-1                      { token.type = TOK_OTHER; token.text = yytext;
-                               return &token; }
+1              { token.type = TOK_OTHER; token.text = yytext; return &token; }
+
+2              { token.type = TOK_OTHER; token.text = yytext; return &token; }
 
-2                      { token.type = TOK_OTHER; token.text = yytext;
-                               return &token; }
+3              { token.type = TOK_OTHER; token.text = yytext; return &token; }
 
-3                      { token.type = TOK_OTHER; token.text = yytext;
-                               return &token; }
+-1             { token.type = TOK_OTHER; token.text = yytext; return &token; }
 
--1             { token.type = TOK_OTHER; token.text = yytext;
-                               return &token; }
+\.             { token.type = TOK_OTHER; token.text = yytext; return &token; }
 
 {white}*               /* whitespace -- keep looping */ ;
 



Home | Main Index | Thread Index | Old Index