Debian Codegraph @

yo/concrete/bisonc++/scanner/scanner.h

raw
1 // Generated by Flexc++ V0.94.00 on Fri, 24 Feb 2012 10:34:13 +0100
2
3 #ifndef Scanner_H_INCLUDED_
4 #define Scanner_H_INCLUDED_
5
6 // $insert baseclass_h
7 #include "scannerbase.h"
8
9
10 // $insert classHead
11 class Scanner: public ScannerBase
12 {
13 public:
14 explicit Scanner(std::istream &in = std::cin,
15 std::ostream &out = std::cout);
16
17 // $insert lexFunctionDecl
18 int lex();
19
20 private:
21 int lex__();
22 int executeAction__(size_t ruleNr);
23
24 void print();
25 void preCode(); // re-implement this function for code that must
26 // be exec'ed before the patternmatching starts
27 };
28
29 // $insert scannerConstructors
30 inline Scanner::Scanner(std::istream &in, std::ostream &out)
31 :
32 ScannerBase(in, out)
33 {}
34
35
36 inline void Scanner::preCode()
37 {
38 // optionally replace by your own code
39 }
40
41 inline void Scanner::print()
42 {
43 print__();
44 }
45
46
47 #endif // Scanner_H_INCLUDED_