Mana
Lexer.h
Go to the documentation of this file.
1 
8 #pragma once
9 #include "../runner/common/Setup.h"
10 
11 extern void yyerror(const char* message);
12 extern int yynerrs;
13 
14 namespace mana
15 {
16  class ParsingDriver;
17 
18  namespace lexer
19  {
27  extern bool Initialize(const std::shared_ptr<mana::ParsingDriver>& parsingDriver, const std::string_view& filename);
28 
32  extern void Finalize();
33 
41  extern bool Open(const std::string_view& filename, const bool check);
42 
48  extern bool Close();
49 
54  extern const std::string& GetCurrentFilename();
55 
60  extern void SetCurrentFilename(const std::string& filename);
61 
66  extern int GetCurrentLineNo();
67 
72  extern void SetCurrentLineNo(const int lineNo);
73  }
74 }
int yynerrs
Definition: ParserDeclaration.inl:10
void yyerror(const char *message)
bool Open(const std::string_view &filename, const bool check)
Definition: LexerDefinition.inl:37
bool Close()
Definition: LexerDefinition.inl:42
bool Initialize(const std::shared_ptr< mana::ParsingDriver > &parsingDriver, const std::string_view &filename)
Definition: LexerDefinition.inl:18
void SetCurrentLineNo(const int lineNo)
Definition: LexerDefinition.inl:62
void Finalize()
Definition: LexerDefinition.inl:28
const std::string & GetCurrentFilename()
Definition: LexerDefinition.inl:47
int GetCurrentLineNo()
Definition: LexerDefinition.inl:57
void SetCurrentFilename(const std::string &filename)
Definition: LexerDefinition.inl:52
Definition: CodeBuffer.cpp:12