[Top][All Lists]

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

Re: access to parser stack in SMIE

From: Stephen Leake
Subject: Re: access to parser stack in SMIE
Date: Tue, 09 Oct 2012 07:23:07 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (windows-nt)

Stephen Leake <address@hidden> writes:

> Stefan Monnier <address@hidden> writes:
>>> I'll still play with semantic; there are front-end tools like code
>>> completion and function call template that rely on it. But it's less
>>> urgent.
>> Semantic support would be really neat, yes.
>> [ Hopefully, at some point SMIE and Semantic will get closer, to the
>>   point where a given language mode doesn't need to give 2 different
>>   specifications of the language.  ]
> You could write a translator from the bison BNF format to the current
> SMIE BNF format, that should not be too hard. 

I take this back; the SMIE grammar needs refined tokens, which the BNF
does not. Most of the work in building a SMIE indentation engine is
figuring out what tokens to refine, and how to refine them.

-- Stephe

reply via email to

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