Example #1
0
 public static Semantico GetInstance()
 {
     if (instance == null)
     {
         instance = new Semantico();
     }
     return(instance);
 }
Example #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())
            {
                ;
            }
        }
Example #3
0
 internal static void GetLimpa()
 {
     instance = null;
 }