public CurriedFunctionParser(string functionName, Parameters firstParameters, Object.VisibilityType visibility, bool overriding) : base("^ /(|sp| '(')") { this.functionName = functionName; this.firstParameters = firstParameters; this.visibility = visibility; this.overriding = overriding; parametersParser = new ParametersParser(); freeParser = new FreeParser(); functionBodyParser = new FunctionBodyParser(); }
public void AddHelperFunction(string functionName, bool multiCapable = false, Object.VisibilityType visibilityType = Object.VisibilityType.Public, bool _override = false, bool global = false, bool autoInvoke = false) { var createFunction = builder.CreateFunction(functionName, multiCapable, visibilityType, _override, global); if (helperFunctions == null) { helperFunctions = new List <CreateFunction>(); } helperFunctions.Add(createFunction); }
public void Parameter(string name, Value defaultValue = null, Object.VisibilityType visibility = Object.VisibilityType.Public, bool readOnly = false, bool lazy = false) { builder.Parameter(name, defaultValue, visibility, readOnly, lazy); }