private FunctionalExpression Function() { var name = Consume(TokenType.WORD).Text; Consume(TokenType.LPAREN); var function = new FunctionalExpression(name); while (!Match(TokenType.RPAREN)) { function.AddArgument(Expression()); Match(TokenType.COMMA); } return(function); }
private FunctionalExpression function() { string name = consume(TokenType.WORD).getText(); consume(TokenType.LPAREN); FunctionalExpression function = new FunctionalExpression(name); // добавление аргументов для функции while (!match(TokenType.RPAREN)) { function.AddArgument(expression()); match(TokenType.COMMA); } return(function); }