home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / historic / v941.tgz / icon.v941src.tar / icon.v941src / ipl / packs / tcll1 / tcll1.grm < prev    next >
Text File  |  2000-07-29  |  406b  |  15 lines

  1. # Grammar for tlcll1 parser generator
  2. start = grammar.
  3. grammar =  { declaration }.
  4. declaration = ID DeclLHS! ( COLON rhs DOT DeclSymbols! | 
  5.            EQ alts DOT DeclProduction!).
  6. rhs = StartRHS! {elem ExtendRHS!}.
  7. alts = rhs FirstAlt! {BAR rhs NextAlt!}.
  8. elem =    ID bangOpt |
  9.     LPAR alts RPAR Group! | 
  10.     LBRACE alts RBRACE Repeat! |
  11.     LBRACK alts RBRACK Option! .
  12. bangOpt = [BANG DeclAction!].
  13. fiducials : DOT.
  14.  
  15.