2009/3/30 john skaller <skal...@users.sourceforge.net>

>
> On 30/03/2009, at 10:33 PM, john skaller wrote:
>
>
>> What would be cool is if Felix "nested grammars" could work
>> efficiently.
>>
>
> The other thing that would be useful is a way to "insert" new productions
> at "priorities" between others. The obvious example is expressions where
> you want to add a new operator with a precedence between others.
>
> Dypgen at one stage had dynamically adjustable priority relations
> which would have supported this if it had worked (but it is clearly
> very difficult to get right in case there are several parallel parses
> running).
>

The way dypgen extend the automaton has been revised early 2008.
It is now very simple to add new priorities: just use their strings in
new rules that need them. Making the relation true between two
priorities or several at once is easy too.


>
> Roughly Felix would benefit from ability to add new productions by
> "pushing" them onto a grammar stack, and later "forget" these productions.
>
> I conceive this as a purely functional operation, not a modification,
> working just like "scopes" in programming languages (because that's
> precisely the context in which the feature is needed :)
>

This is exactly how extending the grammar works with dypgen,
unless I'm missing something.

Emmanuel
------------------------------------------------------------------------------
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to