Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
        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;
        }