public Contextualiser(LetCommand root) { _compilerUtils = CompilerUtils.getInstance(); this.root = root; declaList = new LinkedList <LinkedList <DeclarationCommand> >(); table = new Dictionary <string, string>(); }
public Parser(LinkedList <Line> code) { _compilerUtils = CompilerUtils.getInstance(); Scanner scan = new Scanner(code); TokenList = scan.getTokens(); parse(); }
public static CompilerUtils getInstance() { if (_compilerUtils == null) { _compilerUtils = new CompilerUtils(); } return(_compilerUtils); }