Exemplo n.º 1
0
		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;
		}
Exemplo n.º 2
0
		protected Interpreter() {
			CurrentInterpreter = this;
		}
Exemplo n.º 3
0
		public Keywords(Interpreter curtInterpreter)
		{
			interpreter = curtInterpreter;
		}
Exemplo n.º 4
0
		public static Interpreter CreateInstance()
		{
			Interpreter result = new Interpreter();
            Keyword.Keywords["var"] = new KwVar();
            return result;
		}