bison-patches
[Top][All Lists]
Advanced

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

Re: Initial %include implementation


From: Akim Demaille
Subject: Re: Initial %include implementation
Date: Sun, 11 Nov 2018 18:05:51 +0100


> Le 10 nov. 2018 à 15:08, Egor Pugin <address@hidden> a écrit :
> 
>> Let '#include' die, welcome ‘import'.
> 
> I see.
> But, isn’t include and import could be orthogonal in bison?

I don’t want to have two features to maintain.

> It's nice to have common prologues/epilogues, also parts of grammar,
> as you said.
> Maybe %include is nice to have feature, before future possible imports?

I confess that I’m kind of worried about %import: the infrastructure
of Bison is far from being ready.  We don’t really have an AST for
instance, so parsing several different files will not be convenient.
And I’m not particularly impatient of writing an AST in C.  I wish
Bison were in C++…




reply via email to

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