Thorin 1.9.0
The Higher ORder INtermediate representation
|
#include <thorin/fe/lexer.h>
Public Member Functions | |
Lexer (World &world, std::istream &istream, const fs::path *path=nullptr, std::ostream *md=nullptr) | |
Creates a lexer to read Thorin files (see Lexical Structure). | |
World & | world () |
const fs::path * | path () const |
Loc | loc () const |
Tok | lex () |
thorin::Lexer::Lexer | ( | World & | world, |
std::istream & | istream, | ||
const fs::path * | path = nullptr , |
||
std::ostream * | md = nullptr |
||
) |
Creates a lexer to read Thorin files (see Lexical Structure).
If md
is not nullptr
, a Markdown output will be generated.
Definition at line 12 of file lexer.cpp.
References CODE, THORIN_KEY, and THORIN_SUBST.
Tok thorin::Lexer::lex | ( | ) |
Definition at line 31 of file lexer.cpp.
References thorin::error(), loc(), and world().