/// <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); }
public override void WriteToStream(IndentStream stream) { stream.Write("CREATE "); TableExpr.WriteToStream(stream); if (OnPrimary != null) { stream.Write(" "); OnPrimary.WriteToStream(stream); } if (IsSemicolon) { stream.Write(" ;"); } }
/// <summary> /// Evaluates a table declaration. /// </summary> /// <param name="expr"></param> /// <returns></returns> public object VisitTable(TableExpr expr) { return(null); }