RiscAssemblerParser.OneCasaba
Copyright Ó 1987 by Xerox Corporation. All rights reserved.
Generated by hederman.pa at July 15, 1987 4:53:11 pm PDT
using ThreeCasabaFour [1.2] of June 1, 1987 6:00:00 pm PDT
Begin
{ "NOOP" "GOTO" ":" ";" "." }: SimpleTokens;
id: GenericToken = "tokenID" ;
goal: NonTerminal;
program: NonTerminal;
list: NonTerminal;
statement: NonTerminal;
label: NonTerminal;
op: NonTerminal;
rand: NonTerminal;
goal ← program ;
program.list ← list "." ;
list.statement ← statement ;
list.dangle ← statement ";" ;
list.cons ← statement ";" list ;
statement.label ← label ":" statement ;
statement.op ← op ;
statement.oprand ← op rand ;
label.id ← id ;
op.noop ← "NOOP" ;
op.goto ← "GOTO" ;
rand.id ← id ;
End.