public override PerCederberg.Grammatica.Runtime.Node ExitFunctionCallExpression(PerCederberg.Grammatica.Runtime.Production node)
		{
			var childValues = this.GetChildValues(node);
			string name = (string)childValues[0];
			childValues.RemoveAt(0);
			var args = new ArgumentList(childValues);
			var funcCall = new FunctionCallElement(name, args);
			node.AddValue(funcCall);
			return node;
		}
		public override PerCederberg.Grammatica.Runtime.Node ExitIndexExpression(PerCederberg.Grammatica.Runtime.Production node)
		{
			var childValues = this.GetChildValues(node);
			var args = new ArgumentList(childValues);
			var e = new IndexerElement(args);
			node.AddValue(e);
			return node;
		}
Example #3
0
		internal FunctionCallElement(string name, ICollection<MethodInfo> methods, ArgumentList arguments)
		{
			MyName = name;
			MyArguments = arguments;
			MyMethods = methods;
		}
Example #4
0
		public IndexerElement(ArgumentList indexer)
		{
			MyIndexerElements = indexer;
		}
Example #5
0
		public FunctionCallElement(string name, ArgumentList arguments)
		{
			this.MyName = name;
			MyArguments = arguments;
		}