xo-parser: feat: + parser.has_incomplete_expr()
This commit is contained in:
parent
99c1ebc7fb
commit
a4848044ea
2 changed files with 11 additions and 0 deletions
|
|
@ -689,6 +689,11 @@ namespace xo {
|
|||
|
||||
// ----- parser -----
|
||||
|
||||
bool
|
||||
parser::has_incomplete_expr() const {
|
||||
return !xs_stack_.empty();
|
||||
}
|
||||
|
||||
void
|
||||
parser::begin_translation_unit() {
|
||||
xs_stack_.push_exprstate
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue