Re: Is it always possible to make a non-reentrant parser reentrant?

Hans Åberg <[email protected]>
Newsgroups gmane.comp.parsers.bison.general
Message-ID <[email protected]>
> On 9 Feb 2019, at 00:21, Peng Yu <[email protected]> wrote:
> 
>> %x INITIAL HEREDOC
> 
> I see %x is from flex. Bash can support nested heredoc. How can it be
> implemented in flex?

For nested environments one uses a stack, if there are local variables to keep track of. Such switches will then appropriately have to be turned on and off.



_______________________________________________
[email protected] https://lists.gnu.org/mailman/listinfo/help-bison
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.