Hi!

-------- Original-Nachricht --------
> Datum: Thu, 17 Apr 2008 10:18:48 +0200
> Von: "Thomas N." <[EMAIL PROTECTED]>
> An: [email protected]
> Betreff: Re: [argouml-dev] Re: ANTLR java.g (was JavaRecognizer)

> Hi Andreas, old friend!
> 
> (Andreas helped me a lot with my first steps in ArgoUML more than 7 years
> ago, kudos to him!)

Well, you did more work in those days, than I did, so the credits should go 
to you...

> > I have a question: do you think it's feasable to use the rules in the
> > Java grammar just as hooks and keep the Argo code in a separate file?
> > So the java grammar could be updated without adding the entire Argo
> > code every time?
> 
> Too many hooks required! Significant changes in the structure of the
> grammar would lead to changes in that hook interface. I think it's sufficient 
> to
> keep all ArgoUML and model specifig code separated in Modeller.java, and
> let token specific string manipulations in the grammar.
> 
> Here an example of a grammar rule in the original grammar, compared to the
> ArgoUML version, which would require 5 hooks (without restructuring), and
> there are many of them:

--<snip>--

I know...I wrote some of this stuff...but it was more or less a hack to get
the JavaCC version going with Antlr. There should be a better way to do this...
Some kind of code generator to merge grammar and code...
The grammar usually don't change that fundamentally in a new version...
 
> > I once had a velocity based solution running, where one could edit the
> > templates
> > to change the generated code. But it was very rough and far from
> > complete...
> 
> It was always a dream to control the code generation by a template! is
> there any chance that someone will build a clean and complete solution from
> that? Would make a nice GSOC project, but I won't do it.

It's a lot of work to set the templates vars for each and every aspect of the
model. So it's not a very simple solution... :-(

> Greetings from Berlin,

Ciao from Kaiserslautern,
Andreas

-- 
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to