From 94109c93b7f51e9720cd2b7f84b5ee0451390cfa Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Mon, 19 Aug 2024 17:30:15 -0400 Subject: [PATCH] xo-reader: wip: + parser.env_stack [not used] --- include/xo/reader/parser.hpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/xo/reader/parser.hpp b/include/xo/reader/parser.hpp index dae3091f..30dd94ea 100644 --- a/include/xo/reader/parser.hpp +++ b/include/xo/reader/parser.hpp @@ -6,6 +6,7 @@ #pragma once #include "exprstatestack.hpp" +#include "envframestack.hpp" #include namespace xo { @@ -212,6 +213,12 @@ namespace xo { **/ exprstatestack xs_stack_; + /** environment frames for lexical context. + * push a frame on each nested lambda; + * pop when lambda body goes out of scope + **/ + envframestack env_stack_; + }; /*parser*/ inline std::ostream &