Quoting skaller <[EMAIL PROTECTED]>:

> Note: if you try something like:
>
>       statement := "int" sname ; =># ...
>
> then
>
>       int x;
>
> will also be parsed as
>
>       call int x;
>
> [that is, as a call of procedure 'int' on argument 'x']
>
> 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.

But it will work if the ambiguity is caused by the same rule
having two different actions, i.e. if you added a rule that already
existed but with an associated action that is different, then
the latest action will be used. (and no merge function is used in
this case).

The name of the default merge function "keep_older" is misleading and
I should change it for "keep_one" instead.

Emmanuel


-------------------------------------------------------------------------
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