> Le 10 nov. 2018 à 15:08, Egor Pugin <[email protected]> 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