Thorin 1.9.0
The Higher ORder INtermediate representation
|
#include <thorin/ast/lexer.h>
Public Member Functions | |
Lexer (AST &, std::istream &, const fs::path *path=nullptr, std::ostream *md=nullptr) | |
Creates a lexer to read Thorin files (see Lexical Structure). | |
AST & | ast () |
const fs::path * | path () const |
Loc | loc () const |
Tok | lex () |
Friends | |
class | fe::Lexer< 3, Lexer > |
thorin::ast::Lexer::Lexer | ( | AST & | ast, |
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.
|
inline |
Tok thorin::ast::Lexer::lex | ( | ) |
Definition at line 31 of file lexer.cpp.
References ast(), thorin::ast::AST::error(), and loc().
|
inline |