using System; using System.Collections.Generic; using System.Text; namespace SuperBASIC { class Library { internal List functions; internal List arities; internal Dictionary nameResolution; public Library() { functions = new List(); arities = new List(); nameResolution = new Dictionary(); } public int AddFunction(IFunction fn, int arity, string name) { int idx = functions.Count; functions.Add(fn); arities.Add(arity); nameResolution[name] = idx; return idx; } } }