Sounds good - we have a DSL that's used at work this could be really great for.
Cheers, Tim On 15/05/2009 17:47, "Charles F. Munat" <[email protected]> wrote: > > I've seen this demonstrated and the conceptual part is actually > drop-dead simple. But maybe watching it work helps a lot. > > I might also add that watching Greg write some straightforward BNF to > describe a complex relationship between objects in a simple DSL and then > generate a Lift app from in -- all in about half an hour -- was so > astonishing that I haven't been able to stop thinking about it and can > barely wait to run into him again to ask questions about it. > > I'm not very bright, so Greg can correct me if I'm wrong here, but > essentially you just write up your DSL in BNF, then you run the BNF > compiler and out pops some Java classes (which you dump in your model > directory). Then you extend those classes using Scala and you're good to go. > > Chas. > > Timothy Perrett wrote: >> Greg, I find this very interesting. >> >> How can I help you out here? I can certainly review your lift code, >> not so sure about some of the crazy conceptual stuff though! >> >> Cheers, Tim >> >> On May 14, 8:41 pm, Meredith Gregory <[email protected]> wrote: >>> Lifted, >>> >>> i've added support to the rlambda lift >>> project<http://code.google.com/p/rlambda/>taking it within range of >>> being a candidate DSL-archetype. At this point it >>> is possible simply to supply a .cf file in the src/main/bnfc directory and >>> it will generate everything from that. i've still got to conditionally >>> include the Eval and Compile functionality for DSL that have/don't have this >>> capability. >>> >>> i've two remaining questions for this leg of the work. >>> >>> - Does anyone know how to reference maven dependencies within some flavor >>> of maven-antrun-plugin? The original version does not appear to have this >>> functionality and Sun's maven-antrun-extended-plugin (which is supposed >>> to >>> supply this functionality) has so little documentation (that i could >>> find) >>> that i couldn't get it to work after an hour our so. >>> - This version requires that BNFC, as an executable, be available on the >>> path. Is there a blessed way to handle this sort of dependency? >>> - i've got a hare-brained scheme that will fix this -- a >>> meta-compiler-compiler from BNFC's input format to ANTLR's. i >>> could include >>> such a transform as a part of the project or a dependency and >>> test for the >>> availability of BNFC and fall back to ANTLR if it's not available. >>> >>> If anybody wanted to give this round of updates a whirl, even give me a code >>> review, i would be very grateful. >>> >>> Best wishes, >>> >>> --greg >>> >>> -- >>> L.G. Meredith >>> Managing Partner >>> Biosimilarity LLC >>> 1219 NW 83rd St >>> Seattle, WA 98117 >>> >>> +1 206.650.3740 >>> >>> http://biosimilarity.blogspot.com >>> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
