Problem with grammar Terminal element [message #716058] |
Tue, 16 August 2011 07:10  |
Eclipse User |
|
|
|
Hi,
Plz,i have a problem with the following grammar, what i tried to do is that any thing typed betwwen '>' and '</' should be considerded as Text but something is missing
Racine returns Racine:
{Racine}
'<racine '
('id' '=' id=String0)?
'>'
(tronc=Tronc)?
</racine>
Tronc returns Tronc :
{Tronc}
'<tronc '
('id' '=' id=String0)?
'>'
(leafs+=Leafs)*
'</tronc>'
;
Leafs returns Leafs:
Text ;
Text returns Text:
{Text}
value = String3
;
String3 returns type::String:
TEXTSTRUCT /* TODO: implement this rule and an appropriate IValueConverter */
;
terminal TEXTSTRUCT: '>' -> '</';
Any ideas
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.45001 seconds