|
MimIR 0.1
MimIR is my Intermediate Representation
|
#include <mim/ast/lexer.h>
Public Member Functions | |
| Lexer (AST &, std::istream &, const fs::path *path=nullptr, std::ostream *md=nullptr) | |
Creates a lexer to read *.mim files (see Lexical Structure). | |
| AST & | ast () |
| const fs::path * | path () const |
| Tok | lex () |
Friends | |
| class | fe::Lexer< 3, Lexer > |
| mim::ast::Lexer::Lexer | ( | AST & | ast, |
| std::istream & | istream, | ||
| const fs::path * | path = nullptr, | ||
| std::ostream * | md = nullptr ) |
Creates a lexer to read *.mim files (see Lexical Structure).
If md is not nullptr, a Markdown output will be generated.
Definition at line 12 of file lexer.cpp.
References ast(), mim::CODE, MIM_KEY, MIM_SUBST, and path().
Referenced by fe::Lexer< 3, Lexer >.
|
inline |
| Tok mim::ast::Lexer::lex | ( | ) |
Definition at line 31 of file lexer.cpp.
References ast(), and mim::ast::AST::error().
|
inline |
|
friend |