On Sat, 2007-08-25 at 14:44 -0700, Erick Tryzelaar wrote: > I couldn't figure out if there's any way to dump out the scheme code > before it's processed by sex2flx. Did I miss an option somewhere, or > is this not currently exposed on the command line?
Run flxp instead of flxg. It sets the 'pdebug' flag: let run() = let raw_options = parse_options Sys.argv in let compiler_options = get_felix_options raw_options in Flx_pdoc.document_grammar := compiler_options.document_grammar; Flx_parse.global_data.pdebug := compiler_options.print_flag; (*^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^*) Only flxp does this. BTW: I think flxp has a bug, you cannot say flxp x.flx you have to say flxp x and so you cannot parse a *.flxh file directly using it, you have to write a dummy *.flx file that #import it. That is how I document the nugrammar... :) -- John Skaller <skaller at users dot sf dot net> Felix, successor to C++: http://felix.sf.net ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language