Ejemplo n.º 1
0
        /// <summary>
        /// Adds a function to the global scope
        /// </summary>
        public void AddFunction(INamedFunction function, CompilationContext context)
        {
            if (GetFunction(function.Name, context) != null)
            {
                context.LogError("ELE0002", $"Duplicate function named {function.Name}");
            }

            _functions.Add(function);
        }
Ejemplo n.º 2
0
 public static void Compile(INamedFunction block, Stream stream, CompilationContext compilationContext) => LoadBlock(block, stream, compilationContext);