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