On Sat, 2007-07-14 at 20:08 +0200, Emmanuel Onzon wrote:
> Quoting skaller <[EMAIL PROTECTED]>:

> > Dypgen will then call a merge function which by default
> > choses the latest definition, our new one.
> 
> Note that it is not possible to know which AST is chosen by the
> default merge function. That's why the default merge function
> should be only used when the two AST are the same.

Ouch. Is there a way to fix that, eg priorities?

Typically, a user shouldn't hijack correct code.
But in the 'int x;' case that's exactly what will
happen.

It will also happen in C++ parser where there are known
ambiguities with a specified disambiguation rule.

At present, there's no way for a user to define
a merge function .. if I add that feature it would
have to be a Scheme program comparing s-expressions .. 
(it isn't clear what syntax to use either).

-- 
John Skaller <skaller at users dot sf dot net>
Felix, successor to C++: http://felix.sf.net

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Felix-language mailing list
Felix-language@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/felix-language

Reply via email to