]> granicus.if.org Git - flex/commitdiff
removed crufty WHITESPACE token, some uses of '\n' token
authorVern Paxson <vern@ee.lbl.gov>
Thu, 16 Dec 1993 20:44:10 +0000 (20:44 +0000)
committerVern Paxson <vern@ee.lbl.gov>
Thu, 16 Dec 1993 20:44:10 +0000 (20:44 +0000)
parse.y

diff --git a/parse.y b/parse.y
index 841a37990660e6ecf7b178b57523da44446aa52c..ba90acd0b5aa428a4f424f5017ccde442f261094 100644 (file)
--- a/parse.y
+++ b/parse.y
@@ -1,6 +1,6 @@
 /* parse.y - parser for flex input */
 
-%token CHAR NUMBER SECTEND SCDECL XSCDECL WHITESPACE NAME PREVCCL EOF_OP
+%token CHAR NUMBER SECTEND SCDECL XSCDECL NAME PREVCCL EOF_OP
 
 %{
 /*-
@@ -121,9 +121,9 @@ initlex             :
                        }
                ;
 
-sect1          :  sect1 startconddecl WHITESPACE namelist1 '\n'
+sect1          :  sect1 startconddecl namelist1
                |
-               |  error '\n'
+               |  error
                        { synerr( "unknown error processing section 1" ); }
                ;
 
@@ -147,7 +147,7 @@ startconddecl       :  SCDECL
                        { xcluflg = true; }
                ;
 
-namelist1      :  namelist1 WHITESPACE NAME
+namelist1      :  namelist1 NAME
                        { scinstal( nmstr, xcluflg ); }
 
                |  NAME