Exemple #1
0
 public Analyzer()
 {
     this.tokenizer = new Tokenizer();
     this.tree      = new TokenTree();
     this.parser    = new Parser();
     this.variables = new List <Variable>();
 }
Exemple #2
0
        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);
        }
Exemple #3
0
 private void Parse()
 {
     this.tree = this.parser.Parse(Tokenz);
 }