bug-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I need simpler examples (was: RE: Enhancement request: enabling Vari


From: Uxio Prego
Subject: Re: I need simpler examples (was: RE: Enhancement request: enabling Variant in C parsers)
Date: Sat, 8 Dec 2018 21:29:12 +0100


> On 8 Dec 2018, at 07:19, Akim Demaille <address@hidden> wrote:
> 
> Hi!
> 
>> Le 7 déc. 2018 à 20:30, Uxio Prego <address@hidden> a écrit :
>> 
>> I don't know of this division of parsers in pure and impure.
>> 
>> Are pure approaches like GLR while LALR(k) are impure?
> 
> No, it's unrelated to the parsing technology, it's only a question
> of API: whether you exchange information with the scanner via global
> variables, or additional arguments.
> 
> https://www.gnu.org/software/bison/manual/html_node/Pure-Decl.html

Oh, alright (oops). Simply the widely understood jargon of pure
and impure functions.

Bitten by surprise because my Bison use isn't pure yet. I had
read a bit about the topic, and decided to postpone that as a
to do, and I long had forgot. However from a maintainability
perspective, that looks like a horrendously big mistake towards
my future self, that I should amend as soon as possible.

Thanks,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]