BadgerDB
/afs/cs.wisc.edu/u/n/w/nwilliam/private/workspace/Quut/src/parser/SqlParser.cpp
00001 //
00002 // Author: Jignesh M. Patel
00003 //         EECS Department, University of Michigan
00004 // Date:   August 2000
00005 //
00006 
00013 //#include <stdio.h>
00014 #include <iostream>
00015 #include "SqlParser.h"
00016 
00017 const char* PxxParser::Prompt = "--> ";
00018 
00019 void PxxPredExpr::Set(PxxPnode* exprVal)
00020 {
00021    switch (exprVal->MyType())
00022    {
00023    case PxxPnode::AttrName: 
00024       {
00025          _type = Attribute;
00026          _val._attr = (PxxAttrName*) exprVal;
00027          break;
00028       }
00029    case PxxPnode::Literal: 
00030       {
00031          _type = Literal;
00032          _val._literal = (PxxLiteral*) exprVal;
00033          break;
00034       }
00035    default: assert ("Invalid node type");
00036    }
00037    
00038    return;
00039 }
 All Classes Namespaces Functions Variables Typedefs Enumerations Friends