예제 #1
0
 public Sintatico(Lexico lx)
 {
     this.inVar    = false;
     this.inConst  = false;
     this.tempVars = new List <string>();
     this.Sem      = new Semantico();
     this.Lex      = lx;
     this.tk       = lx.NextToken();
     if (tk == null)
     {
         Console.WriteLine("Arquivo vazio");
     }
 }
예제 #2
0
 private bool Reconhece(String token)
 {
     if (tk.Descricao == token)
     {
         tk = Lex.NextToken();
         return(true);
     }
     else
     {
         return(false);
     }
 }