nsbaci 1.0
Loading...
Searching...
No Matches
lexer.h
Go to the documentation of this file.
1#pragma once
2
11
12#if !defined(yyFlexLexerOnce)
13#include <FlexLexer.h>
14#endif
15
16#include "parser.tab.hh"
17
22namespace nsbaci::compiler {
23
28class Lexer : public yyFlexLexer {
29 public:
30 Lexer(std::istream* in = nullptr) : yyFlexLexer(in) {}
31 virtual ~Lexer() = default;
32
33 int yylex(Parser::semantic_type* yylval, Parser::location_type* yylloc);
34};
35
36} // namespace nsbaci::compiler
Compiler namespace containing all compilation-related stuff.