2009/4/4 Emmanuel Onzon <e.on...@gmail.com> > 2009/4/4 john skaller <skal...@users.sourceforge.net> > >> >> On 05/04/2009, at 12:09 AM, Emmanuel Onzon wrote: >> >> >>> Dyp.Undefined_nt("comma") >>> >>> PARSE ERROR >>> Unknown exception Parsing File >>> >>> >>> U mean like this? but I still don't understand how "comma" can be >>> undefined.. >>> >>> Yes, I mean this exception. >>> comma is well defined, but dypgen believes it is not. >>> >> >> Why? It is even listed: > > > Basically, it is because the way dypgen decides to raise > Undefined_nt is ill-designed and must be changed. > I'm going to work on that for the next version. > dypgen decides to raise Undefined_nt if > it finds in the extension a non terminal that is only in a > right hand side and not in a left hand side, disregarding > whether it is in a left hand side in the initial grammar. > You can call it a bug :) > > >> >> %constructor Obj_sexpr %for ssemi comma colon vbar >> >> It is not a problem though. Just call dypgen with >>> --no-undef-nt >>> or makes the change line 230 >>> >> >> >> >> I'm worried that using that flag will disable some checking we'd >> actually want. (Also I have no idea how to change the build system :) >> > > That's why I pointed the possible temporary change to > line 230 of dyp.ml to still be able to test it. >
By the way this is what I did, and flx_pkgconfig is compiled. The build system is now doing this: [...] checking build/test/regress/rt/rt-1.01.30-0: ok * build/bin/flx.py --test=build : build/test/regress/rt/rt-1.01.31-0.flx -> build/test/regress/rt/ rt-1.01.31-0.so checking build/test/regress/rt/rt-1.01.31-0.so: ok * build/bin/flx.py --test=build : build/test/regress/rt/rt-1.01.31-0.flx -> build/test/regress/rt/rt-1.01.31-0 checking build/test/regress/rt/rt-1.01.31-0: ok * build/bin/flx.py --test=build : build/test/regress/rt/rt-1.01.32-0.flx -> build/test/regress/rt/ rt-1.01.32-0.so checking build/test/regress/rt/rt-1.01.32-0.so: ok * build/bin/flx.py --test=build : build/test/regress/rt/rt-1.01.32-0.flx -> build/test/regre [...]
------------------------------------------------------------------------------
_______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language