selectLexer.h
Go to the documentation of this file.
1 // $Id$
2 // Author: John Wu <John.Wu at acm.org>
3 // Lawrence Berkeley National Laboratory
4 // Copyright (c) 2007-2016 the Regents of the University of California
5 #ifndef IBIS_SELECTLEXER_H
6 #define IBIS_SELECTLEXER_H
7 
11 #ifndef YY_DECL
12 // the new lex function to satisfy the reentrant parser requirement
13 #define YY_DECL ibis::selectParser::token_type ibis::selectLexer::lex \
14  (ibis::selectParser::semantic_type* yylval, \
15  ibis::selectParser::location_type* yylloc)
16 #endif
17 #include "selectParser.hh" // class selectParser
18 
19 // rename yyFlexLexer to _sLexer
20 #undef yyFlexLexer
21 #define yyFlexLexer _sLexer
22 #include <FlexLexer.h>
23 //#undef yyFlexLexer
24 
25 namespace ibis {
33  class selectLexer : public ::_sLexer {
34  public:
35  selectLexer(std::istream* in=0, std::ostream* out=0);
36  virtual ~selectLexer();
37 
38  // The new lex function. It carries the value of token and its type.
39  // The value of the token is returned as the first argument and the
40  // corresponding type is the return value of this function.
41  virtual selectParser::token_type
42  lex(selectParser::semantic_type*, selectParser::location_type*);
43 
44  void set_debug(bool);
45  }; // ibis::selectLexer
46 } // namespace ibis
47 #endif
The current implementation of FastBit is code named IBIS; most data structures and functions are in t...
Definition: bord.h:16
Defines a new class with the desired lex function for C++ output of bison.
Definition: selectLexer.h:33

Make It A Bit Faster
Contact us
Disclaimers
FastBit source code
FastBit mailing list archive