- Classification of Non-Terminals:
- Program, MainClass, ClassDecl, VarDecl, MethodDecl, Type,
Statement, Exp
- FormalList, FormalRest, ExpList, ExpRest
- ClassDeclSeq, VarDeclSeq, MethodDeclSeq, StatementSeq (not
defined in the grammar!!!)
- Output Specification: Produce a log of actions for Non-Terminals
in Group 1. (spec.html)
For Example:
ClassDecl : CLASS ID '{' VarDeclSeq MethodDeclSeq '}
{ cout
<< "CLASSDECL1\n"; }
| CLASS ID
EXTENDS ID '{' VarDeclSeq MethodDeclSeq '}' { cout <<
"CLASSDECL2\n"; }
;
|