public void TestTypesToString() { var list = new List<string>() { "1", "2", "3" }; var s = new CallableSymbol("", "test", "int", list); Assert.AreEqual("1, 2, 3", s.TypesToString()); }
public void EnterFunction(string target, string name, string type, List<string> callArgTypes, bool builtin = false) { if (functionsTable.ContainsKey(target + name)) { throw new CallableSymbolAlreadyDefinedException(name); } var s = new CallableSymbol(target, name, type, callArgTypes); s.BuiltIn = builtin; functionsTable[target + name] = s; }