public Expression(string input) { this.Input = input; Tokens = new Tokenizer(input).Scan(); PostFixedTokens = new PostfixedTokens(Tokens.tokens); ParseTree = PostFixedTokens.BuildParseTree(); ReturnValue = ParseTree.val; Output = ReturnValue.FullVisualization(); }
public CompilerOutput(string input, Tokens tokens, System.Numerics.Complex returnVal, ParseTree parseTree, PostfixedTokens postFixedTokens, string output) { this.Input = input; this.Tokens = tokens; this.ReturnValue = returnVal; this.ParseTree = parseTree; this.PostFixedTokens = postFixedTokens; this.Output = output; }