I'm enjoying playing around with felix's dssls, but there are some things that would make the process a little bit easier than it is right now.
* First off, we really need a way to print out the scheme-converted code pre and post evaluation. There's a lot of guesswork trying to debug a small piece of code. So, it'd be handy if there were two other flxp-like processes. One, lets call flxp-ocs converts the .flx file into an unevaluated scheme file. flxp-sex evaluates that scheme file, and finally flxp prints out the felix form of the code. So, it'd be something like this: the output from flxp-ocs: (define (make-name name . rest) `(ast_name ,name ,rest)) (make-name "foo") ... the output from flxp-sex: `(ast_name "foo") ... the output from flxp: foo ... It looks like it'd be relatively simple to do. All you'd have to do is change what the rule "statement_star" returns to have it not pass the statements to ocs2sex and wrap the old behavior in a helper function. * SCHEME blocks containing more than one define * The platform macros ugly up the output from flxp, which just adds a little more to track down the location. Could these be changed from macros to just "val WIN32 = false; val MACOSX = true"? Or does that cause other problems for the macro expander? * it'd be handy if we could output an file, play around with it, and then pipe it through the next stage in compilation. * there are a lot of ugly arbitrary-seeming options, like the first argument to ast_lambda. I know you can use dlftvs, but I wish we could use something like records and optional arguments so we could just ignore all that other stuff. That'd need some scary scheme extensions though. * pattern matching would be handy * it's great that you can embed felix code in a rule like this: "foo =># (_1 + 2)" but it'd be even more handy if you could use sub-functions, like this "foo bar =># map (fun _1 => _1 + 2) _2)" but that gives a compile error. Having any of this would make things a bit simpler to do. ------------------------------------------------------------------------- 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