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 >
Wrap
Text File
|
2000-07-29
|
406b
|
15 lines
# Grammar for tlcll1 parser generator
start = grammar.
grammar = { declaration }.
declaration = ID DeclLHS! ( COLON rhs DOT DeclSymbols! |
EQ alts DOT DeclProduction!).
rhs = StartRHS! {elem ExtendRHS!}.
alts = rhs FirstAlt! {BAR rhs NextAlt!}.
elem = ID bangOpt |
LPAR alts RPAR Group! |
LBRACE alts RBRACE Repeat! |
LBRACK alts RBRACK Option! .
bangOpt = [BANG DeclAction!].
fiducials : DOT.