On Sat, 2007-07-14 at 21:12 +0200, Emmanuel Onzon wrote: > Each action that is added by the user is numbered increasingly, > and instead of just returning an s-expression it also returns > its number. > Then you can write a merge function that selects the AST that is > coupled with the highest number, this ensures that you keep the > tree that was built by the most recent action.
But I'd need to write it for every non-terminal, including user defined ones .. hmm .. it's the same function for all of them of course. -- 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