Exemplo n.º 1
0
 public static Semantico GetInstance()
 {
     if (instance == null)
     {
         instance = new Semantico();
     }
     return(instance);
 }
Exemplo n.º 2
0
        public void parse(Lexico scanner, Semantico semanticAnalyser)
        {
            this.scanner          = scanner;
            this.semanticAnalyser = semanticAnalyser;

            stack.Clear();
            stack.Push((DOLLAR));
            stack.Push((parserConst.START_SYMBOL));

            currentToken = scanner.nextToken();

            while (!step())
            {
                ;
            }
        }
Exemplo n.º 3
0
 internal static void GetLimpa()
 {
     instance = null;
 }