public Keywords(Interpreter curtInterpreter) { interpreter = curtInterpreter; keywords.Add("var"); keywords.Add("if"); keywords.Add("for"); keywords.Add("function"); keywords.Add("return"); keywords.Add("while"); processors["var"] = ProcessVar; processors["if"] = null; processors["for"] = null; processors["function"] = null; processors["return"] = null; processors["while"] = null; }
protected Interpreter() { CurrentInterpreter = this; }
public Keywords(Interpreter curtInterpreter) { interpreter = curtInterpreter; }
public static Interpreter CreateInstance() { Interpreter result = new Interpreter(); Keyword.Keywords["var"] = new KwVar(); return result; }