diff options
author | Vern Paxson <vern@ee.lbl.gov> | 1988-02-13 11:00:46 +0000 |
---|---|---|
committer | Vern Paxson <vern@ee.lbl.gov> | 1988-02-13 11:00:46 +0000 |
commit | c58120445fe8edf709bbb987a3d665f6d5201b55 (patch) | |
tree | 523ba8abfb910f9196abd319b3eb491e0ea7572e /parse.y | |
parent | 2cc578462372baa1b85936749946608d7f36415f (diff) |
Beta Release.
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 16 |
1 files changed, 12 insertions, 4 deletions
@@ -1,7 +1,15 @@ -/* lexparse.y - parser for flex input */ +/* flexparse.y - parser for flex input */ /* - * Copyright (c) University of California, 1987 + * Copyright (c) 1987, the University of California + * + * The United States Government has rights in this work pursuant to + * contract no. DE-AC03-76SF00098 between the United States Department of + * Energy and the University of California. + * + * This program may be redistributed. Enhancements and derivative works + * may be created provided the new works, if made available to the general + * public, are made available for use by anyone. */ %token CHAR NUMBER SECTEND SCDECL XSCDECL WHITESPACE NAME PREVCCL @@ -63,7 +71,7 @@ namelist1 : namelist1 WHITESPACE NAME { synerr( "bad start condition list" ); } ; -sect2 : sect2 initforrule lexrule '\n' +sect2 : sect2 initforrule flexrule '\n' | ; @@ -75,7 +83,7 @@ initforrule : } ; -lexrule : scon '^' re eol +flexrule : scon '^' re eol { pat = link_machines( $3, $4 ); add_accept( pat, headcnt, trailcnt ); |