public Analyzer() { this.tokenizer = new Tokenizer(); this.tree = new TokenTree(); this.parser = new Parser(); this.variables = new List <Variable>(); }
public TokenTree Parse(List <MyToken> tokens) { int current = 0; TokenTree t = new TokenTree(); t.Root.Info = tokens.Find(a => a.Value == ":="); t.Root.Left = Dis(tokens, ref current); current++; t.Root.Right = Dis(tokens, ref current); return(t); }
private void Parse() { this.tree = this.parser.Parse(Tokenz); }