/********************************************** * AOSD 10 Submission Files * * asm.cd : * * Contains all the Asm/Eval structures * * * *********************************************/ package gen; import edu.neu.ccs.demeterf.lib.*; Op = MathOp | StkOp | CtrlOp. MathOp= Minus. StkOp = Push | Pop | Define | Undef | Load. CtrlOp= Label | Jmp | IfNZ. Minus = "minus". Push = "push" *s int. Pop = "pop". Define= "def". Undef = "undef". Load = "load" *s int. Label = "label" *s ident. Jmp = "jump" *s ident. IfNZ = "ifnzero" *s ident. // Extras needed for execution OpList = OpCons | OpEmpty. OpCons = *s*s Op *l OpList. OpEmpty= . ExecStack = . CodeEntry =