xo-expression xo-reader: parser improvements, prep type inf/unify
This commit is contained in:
parent
622f08856e
commit
f3fde735da
18 changed files with 274 additions and 45 deletions
|
|
@ -35,6 +35,11 @@ namespace xo {
|
|||
return xs_stack_.top_exprstate();
|
||||
}
|
||||
|
||||
const exprstate &
|
||||
parserstatemachine::lookup_exprstate(size_t i) const {
|
||||
return *xs_stack_[i];
|
||||
}
|
||||
|
||||
void
|
||||
parserstatemachine::push_exprstate(std::unique_ptr<exprstate> x) {
|
||||
xs_stack_.push_exprstate(std::move(x));
|
||||
|
|
@ -45,6 +50,11 @@ namespace xo {
|
|||
return env_stack_.top_envframe();
|
||||
}
|
||||
|
||||
bp<LocalEnv>
|
||||
parserstatemachine::lookup_envframe(std::size_t i) const {
|
||||
return env_stack_[i];
|
||||
}
|
||||
|
||||
void
|
||||
parserstatemachine::push_envframe(const rp<LocalEnv> & x) {
|
||||
constexpr bool c_debug_flag = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue