Beispiel #1
0
 /// <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;
 }
Beispiel #2
0
 /// <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;
 }
Beispiel #3
0
 /// <summary>
 /// Evaluates a table declaration.
 /// </summary>
 /// <param name="expr"></param>
 /// <returns></returns>
 public object VisitTable(TableExpr expr)
 {
     return null;
 }