2009/4/3 Erick Tryzelaar <idade...@users.sourceforge.net> > On Mar 30, 2009, at 9:24 AM, Emmanuel Onzon wrote: > > I've started updating dypgen to the latest released version, and I'm > running into a couple problems. First off, it looks like dypgen now > generates and compiles a temporary file, and is erroring out: >
This temporary file is not compiled but it is used with ocamlc -i to help generate the .mli file. Note that the flag --no-mli prevents from calling ocamlc -i (but it doesn't prevent from creating the temporary file) > > > build/src/compiler/dyp/dypgen/dypgen --ocamlc "-I > build/src/compiler/dyp/dyplib -I build/src/compiler/sex" > build/src/compiler/sex/sex_parse.dyp > File "build/src/compiler/sex/sex_parse.temp.ml", line 1, characters 0-1: > Warning X: bad source file name: "Sex_parse.temp" is not a valid module > name. > File "build/src/compiler/sex/sex_parse.dyp", line 1, characters 8-22: > Error: Unbound module Sex_token > > I'm not sure if we can do anything about the warning, but the error is > happening because my build system can't determine that > build/src/compiler/sex/sex_parse.dyp depends on > build/src/compiler/sex/sex_token.mli and > build/src/compiler/sex/sex_types.mli, and doesn't know that it needs to > compile the .cmi file first. After manually creating it, I'm running into > this: > > > build/src/compiler/dyp/dypgen/dypgen --pv-obj --noemit-token-type > --ocamlc -I build/src/compiler/dyp/dyplib -I build/src/compiler/flx_lex > build/src/compiler/flx_lex/flx_preparse.dyp > File "build/src/compiler/flx_lex/flx_preparse.dyp", from l:103, c:0 to > l:104, c:0 : > Lexing failed with message: lexing: empty token > Several incompatible changes of the syntax have been introduced since 2007. I will look at the files to tell you more about this error. > > Oh, and I see that dypgen dropped support for the '--prio-pt' flag. I have > to admit I'm not sure what does that flag mean. The CHANGES file mentioned > that there are alternative ways of getting that functionality. So is that > related to the error and what do I have to do about it? You don't need this flag anymore, it is irrelevant. There use to be two ways of managing priorities, but now there is only one. I don't know if it is related to the "Lexing failed" message. I am going to look at the file flx_preparse.dyp. > > Thanks for the help.
------------------------------------------------------------------------------
_______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language