fromLexer.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) 2009-2016 the Regents of the University of California
5 #ifndef IBIS_FROMLEXER_H
6 #define IBIS_FROMLEXER_H
7 
11 #ifndef YY_DECL
12 // the new lex function to satisfy the reentrant parser requirement
13 #define YY_DECL ibis::fromParser::token_type ibis::fromLexer::lex \
14  (ibis::fromParser::semantic_type* yylval, \
15  ibis::fromParser::location_type* yylloc)
16 #endif
17 #include "fromParser.hh" // class fromParser
18 
19 // rename yyFlexLexer to _fLexer
20 #undef yyFlexLexer
21 #define yyFlexLexer _fLexer
22 #include <FlexLexer.h>
23 //#undef yyFlexLexer
24 
25 namespace ibis {
33  class fromLexer : public ::_fLexer {
34  public:
35  fromLexer(std::istream* in=0, std::ostream* out=0);
36  virtual ~fromLexer();
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 fromParser::token_type
42  lex(fromParser::semantic_type*, fromParser::location_type*);
43 
44  void set_debug(bool);
45  }; // ibis::fromLexer
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: fromLexer.h:33

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