void value(out Compiler.IfValue value) { value = null; IfVariable var = null; if (la.kind == 1 || la.kind == 2) { literal(out value); } else if (la.kind == 3 || la.kind == 4) { variable(out var); value = var; } else { SynErr(56); } }
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); } }