Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
        public override void WriteToStream(IndentStream stream)
        {
            stream.Write("CREATE ");
            TableExpr.WriteToStream(stream);

            if (OnPrimary != null)
            {
                stream.Write(" ");
                OnPrimary.WriteToStream(stream);
            }

            if (IsSemicolon)
            {
                stream.Write(" ;");
            }
        }
Exemplo n.º 4
0
 /// <summary>
 /// Evaluates a table declaration.
 /// </summary>
 /// <param name="expr"></param>
 /// <returns></returns>
 public object VisitTable(TableExpr expr)
 {
     return(null);
 }