ExampleParser.OneCasaba
Copyright Ó 1987 by Xerox Corporation. All rights reserved.
Generated by BJackson.pa at April 22, 1987 2:16:57 am PDT
using ThreeCasabaFour [1.1] of April 14, 1987 6:34:07 pm PDT
Begin
{ "+" "-" "*" "/" "(" ")" "#" "!" "." }: SimpleTokens;
number: GenericToken = "tokenDECIMAL" ;
maingoal: NonTerminal;
sum: NonTerminal;
product: NonTerminal;
primitive: NonTerminal;
maingoal ← sum "." ;
sum.prod ← product ;
sum.plus ← sum "+" product ;
sum.minus ← sum "-" product ;
product.prim ← primitive ;
product.mult ← product "*" primitive ;
product.div ← product "/" primitive ;
primitive.number ← number ;
primitive.loc ← "#" ;
primitive.signal ← "!" ;
primitive.paren ← "(" sum ")" ;
End.