[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [gmt-dev] JavaCC for textual DSLs and integration with code g enerator
|
Hi Markus
>> My personal preference is for meta-models to be drawn graphically and
then
>> all their derivates generated by transformations.
>Good principle... however, how do you generate
l>iterals and other stuff related to parsing concrete
>syntax?
You obviously use text for class-names. OCL is good for the clever bits.
>> I also have a strong preference to CUP rather than JavaCC, since I regard
LL
>> parsers as a step back into the dark ages in comparison to the benefits
of
LALR that
>> bison and yacc made standard. Having written two JavaCC parsers and
rewritten in CUP,
>> I can accept that JavaCC is much friendlier, but it just doesn't cut it
for
>> non-trivial grammars and error recovery.
>that may be true. I am not an expert in this area.
>However, based on the fact that *I* could be
>productive with it meant to me that it was use-
>ful and easily understandable :-) So I thought
>it would be useful for others, too.
Yes. Sun did the Java community a disservice by providing such a good but
technically inferior tool. There is no real reason why the ease of use of
JavaCC
couldn't be incorporated in CUP obviating the need for JFlex.
Regards
Ed Willink
------------------------------------------------------------------------
E.D.Willink, Email: mailto:EdWillink@xxxxxxx
Thales Research and Technology (UK) Ltd, Tel: +44 118 923 8278 (direct)
Worton Drive, or +44 118 986 8601 (ext 8278)
Worton Grange Business Park, Fax: +44 118 923 8399
Reading, RG2 0SB
ENGLAND http://www.computing.surrey.ac.uk/personal/pg/E.Willink
------------------------------------------------------------------------
(formerly Racal Research and Thomson-CSF)