/// <summary> /// Evaluates a table declaration. /// </summary> /// <param name="expr"></param> /// <returns></returns> public object VisitTable(TableExpr expr) { var table = new LTable(new List<object>()); table.Fields = expr.Fields; return table; }
/// <summary> /// Creates an array expression from the parameters supplied. /// </summary> /// <param name="fields"></param> /// <param name="token"></param> /// <returns></returns> public static Expr Table(List<string> fields, TokenData token) { var exp = new TableExpr(); exp.Fields = fields; SetupContext(exp, token); return exp; }
/// <summary> /// Evaluates a table declaration. /// </summary> /// <param name="expr"></param> /// <returns></returns> public object VisitTable(TableExpr expr) { return null; }