yo/concrete/poly/scanner/scanner.h
raw| 1 | #ifndef SCANNER_H_ |
| 2 | #define SCANNER_H_ |
| 3 | |
| 4 | #include "../semantic/semantic.h" |
| 5 | |
| 6 | #if ! defined(SKIP_FLEXLEXER_) && ! defined(SYSINC_FLEXLEXER_H_) |
| 7 | #include <FlexLexer.h> |
| 8 | #define SYSINC_FLEXLEXER_H_ |
| 9 | #endif |
| 10 | |
| 11 | class Scanner: public yyFlexLexer |
| 12 | { |
| 13 | Semantic *d_semval; |
| 14 | |
| 15 | public: |
| 16 | Scanner(Semantic *semval); |
| 17 | int yylex(); |
| 18 | }; |
| 19 | |
| 20 | inline Scanner::Scanner(Semantic *semval) |
| 21 | : |
| 22 | d_semval(semval) |
| 23 | {} |
| 24 | |
| 25 | #endif |