示例#1
0
 public Scanner(IO.TextReader input)
 {
     this.result       = new Collections.List <object>();
     tokenLineNumber   = new System.Collections.Generic.Dictionary <int, int>();
     languageSetting   = ParserLanguageSetting.GetInstance("languageSetting.xml");
     currentLineNumber = 1;
     this.Scan(input);
 }
示例#2
0
 public Parser(Scanner scanner)
 {
     this.tokens     = scanner.Tokens;
     this._scanner   = scanner;
     languageSetting = ParserLanguageSetting.GetInstance("languageSetting.xml");
     this.index      = 0;
     // this.result = this.ParseStmt();
 }
示例#3
0
    public Parser(Collections.IList<object> tokens)
    {
        this.tokens = tokens;
        this.indice = 0;
        this.resultado = this.ParseStmt();

        if (this.indice != this.tokens.Count)
            throw new System.Exception("se esperaba el final del archivo");
    }
示例#4
0
    public Parser(Collections.IList<object> tokens)
    {
        this.tokens = tokens;
        this.index = 0;
        this.result = this.ParseStmt();

        if (this.index != this.tokens.Count)
            throw new System.Exception("expected EOF");
    }
示例#5
0
    public Parser(Collections.IList <object> tokens)
    {
        this.tokens = tokens;
        this.index  = 0;
        this.result = this.ParseStmt();

        if (this.index != this.tokens.Count)
        {
            throw new System.Exception("expected EOF");
        }
    }
示例#6
0
    public Parser(Collections.IList <object> tokens)
    {
        this.tokens    = tokens;
        this.indice    = 0;
        this.resultado = this.ParseStmt();

        if (this.indice != this.tokens.Count)
        {
            throw new System.Exception("se esperaba el final del archivo");
        }
    }
示例#7
0
    public Parser(Collections.IList <object> tokens)
    {
        this.tokens     = tokens;
        languageSetting = ParserLanguageSetting.GetInstance("languageSetting.xml");
        this.index      = 0;
        // this.result = this.ParseStmt();
        this.result = this.ParseType();

        if (this.index != this.tokens.Count)
        {
            throw new System.Exception("expected EOF");
        }
    }
示例#8
0
 public Scanner(IO.TextReader input)
 {
     this.resultado = new Collections.List <object>();
     this.Scan(input);
 }
示例#9
0
 public Scanner(TextReader input)
 {
     _result = new Collections.List<object>();
     Scan(input);
 }
示例#10
0
 public Scanner(TextReader input)
 {
     _result = new Collections.List <object>();
     Scan(input);
 }
示例#11
0
 public Scanner(IO.TextReader input)
 {
     this.result     = new Collections.List <object>();
     languageSetting = ParserLanguageSetting.GetInstance("languageSetting.xml");
     this.Scan(input);
 }
示例#12
0
 public Scanner(IO.TextReader input)
 {
     this.result = new Collections.List<object>();
     this.Scan(input);
 }