public List<TreeNode> Parse(Token[] tokens) { this.tokens = tokens; var parseTree = new List<TreeNode>(); while (currentToken().Type != "(end)") { parseTree.Add(Expresssion(0)); } return parseTree; }
TreeNode InterpretToken(Token token) { Symbol symbol = GetSymbol(token.Type); return new TreeNode() { LeftDenotativeFunction = symbol.LeftDenotativeFunction, LeftPowerBinding = symbol.LeftPowerBinding, NullDenotativeFunction = symbol.NullDenotativeFunction, Type = token.Type, Value = token.Value }; }