|
Mana
|
Functions | |
| bool | Initialize (const std::shared_ptr< mana::ParsingDriver > &parsingDriver, const std::string_view &filename) |
| void | Finalize () |
| bool | Open (const std::string_view &filename, const bool check) |
| bool | Close () |
| const std::string & | GetCurrentFilename () |
| void | SetCurrentFilename (const std::string &filename) |
| int | GetCurrentLineNo () |
| void | SetCurrentLineNo (const int lineNo) |
| bool mana::lexer::Close | ( | ) |
close file
| true | scanning complete. |
| false | still need scanning. |
| void mana::lexer::Finalize | ( | ) |
finalize scanner
| const std::string & mana::lexer::GetCurrentFilename | ( | ) |
get current file name
| int mana::lexer::GetCurrentLineNo | ( | ) |
get current line number
| bool mana::lexer::Initialize | ( | const std::shared_ptr< mana::ParsingDriver > & | parsingDriver, |
| const std::string_view & | filename | ||
| ) |
initialize scanner
| [in] | parsingDriver | Bison parser object |
| [in] | filename | file name |
| true | success |
| false | failed |
| bool mana::lexer::Open | ( | const std::string_view & | filename, |
| const bool | check | ||
| ) |
open file
| filename | file name |
| check | Checks for duplicate file openings |
| true | success |
| false | failed |
| void mana::lexer::SetCurrentFilename | ( | const std::string & | filename | ) |
set current file name
| [in] | filename | current file name pointer |
| void mana::lexer::SetCurrentLineNo | ( | const int | lineNo | ) |
set current line number
| [in] | lineNo | current line number |