I have a MDE environment in VisualWorks in which the model definitions (which are in a sort of DSL) are currently transformed to Smalltalk classes. For the next version of the modeling language I'd like to use something like Newspeak instead of the DSL but I need a way to get my current model definitions transformed to Newspeak and back.O well, handcrafing a parser shouldnt be that much work. Newspeak's grammar seems to be comparable in complexity to Smalltalk.
W
On Wednesday, May 13, 2015 at 4:36:34 PM UTC+2, Gilad Bracha wrote:Indeed, there was one written to bootstrap the system. More precisely, the first version of the parser combinator library was written in Smalltalk, and used to parse the first dialect of Newspeak, NS0. Since then the syntax and semantics evolved thru NS1, NS2 and NS3 (which itself changed gradually, so it's kind of NS4).In short, there never was a Smalltalk parser for full Newspeak, with nested classes etc. As for the Smalltalk version of the parser combinator library, it too is long gone. It had ceased to be by the time of the first open source release, so I doubt it was ever made public.Why do you ask?On Wed, May 13, 2015 at 5:33 AM Wouter Gazendam <wou...@ag5.nl> wrote:Is there a Newspeak parser around implemented in Smalltalk? I can imagine one was written to bootstrap Newspeak development but I only can find one implemented in Newspeak itself.Thanks,Wouter
A lot of work. Just to run hello world, you would need to implement Newspeak's lookup rules in terms of HPS's bytecodes, write some object tracer to convert Behaviors, MethodDictionaries, etc in the bootstrap runtime to their VW counterparts, etc.
It would perform slower than on Cog. And most application code would be easier to port from VW Smalltalk code to Squeak Smalltalk or Newspeak.