we're trying to build a solution in mps, where the syntax is like this (very short)
expr ::= 'd'+expr
| expr # expr
(and so on)
we have started by making a super node called expression, and then creating a concept which extends expression, for each way to make an expr. Dice ('d'+expr) and numer ( n ).
the expression_editor is like : %Expr% and links to itself.
the Dice_editor is like: 'd'+%a link to the Expression_concept%..
when we try it in the solution, we're able to select either Dice or Number, but when we choose one (Dice).. we have to update All java classes before a 'd' appears.. and then again we can choose (for instans a number) but then again have to update all java classes.. this isn't exactly agile! ;-)
any comments about this?.. are we doing it all wrong ?
is there an code example of something implementing a syntax??
Thanks in advance.. ;-)
ps. if you don't understand.. plz tell. and I'll try to explain in more details..