xo-reader: fix hardwired debug flag
This commit is contained in:
parent
68bc2bb54c
commit
628fcc44a1
7 changed files with 20 additions and 15 deletions
|
|
@ -165,7 +165,11 @@ namespace xo {
|
|||
**/
|
||||
explicit parser(bool debug_flag);
|
||||
|
||||
/** true if parser is at top-level, i.e. ready for next top-level expression **/
|
||||
bool debug_flag() const { return psm_.debug_flag(); }
|
||||
|
||||
/** true if parser is at top-level,
|
||||
* i.e. ready for next top-level expression
|
||||
**/
|
||||
bool is_at_toplevel() const { return stack_size() == 0; }
|
||||
|
||||
/** for diagnostics: number of entries in parser stack **/
|
||||
|
|
|
|||
|
|
@ -80,6 +80,8 @@ namespace xo {
|
|||
public:
|
||||
explicit reader(bool debug_flag);
|
||||
|
||||
bool debug_flag() const { return parser_.debug_flag(); }
|
||||
|
||||
/** call once before calling .read_expr()
|
||||
* for a new interactive session
|
||||
**/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue