public Node Exp() { var node1 = ExpMas(); if (Current == TokenCategory.MENOS) { Expect(TokenCategory.MENOS); var node2 = new Menos() { node1, Exp() }; node1 = node2; } return node1; }
public Node Exp() { var exp = ExpMas(); if (CurrentToken == Token.MENOS) { Expect(Token.MENOS); exp = new Menos() { exp, Exp() }; } return(exp); }
public Node Exp() { var exp1 = MasExp(); Console.WriteLine(exp1); while (CurrentToken == Token.MENOS) { Expect(Token.MENOS); var exp2 = new Menos() { exp1, Exp() }; // exp2.Add(exp1); // exp2.Add(MasExp()); exp1 = exp2; } return(exp1); }
public string Visit(Menos node) { return(Visit((dynamic)node[0]) + Visit((dynamic)node[1]) + "\t\tcall string class ['pptlib']'ppt'.'Runtime'::'menos'(string, string)\n"); }