void literal(out Compiler.IfValue value) { value = null; if (la.kind == 2) { Get(); value = new Compiler.StringLiteral(t.val.Substring(1, t.val.Length - 2)); } else if (la.kind == 1) { Get(); value = new Compiler.IntegerLiteral(Convert.ToInt32(t.val)); } else { SynErr(57); } }
void literal(out Compiler.IfValue value) { value = null; if (la.kind == 2) { Get(); value = new Compiler.StringLiteral( t.val.Substring(1,t.val.Length-2) ); } else if (la.kind == 1) { Get(); value = new Compiler.IntegerLiteral( Convert.ToInt32( t.val) ); } else SynErr(57); }