Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » GMT (Generative Modeling Technologies) » xText: any text rule
xText: any text rule [message #375966] Wed, 21 February 2007 17:10 Go to next message
Ilya Klyuchnikov is currently offline Ilya KlyuchnikovFriend
Messages: 74
Registered: July 2009
Member
Hi.

I have read short documentation on xText framework, server-side article
and have seen screen casts.

But I have not found answer on following question.

Is there is any possibility to create rule "Any text"?

In my model domain text to be analyzed is arbitrary but I need to
proceed in some logic way text fragments like

{action name='my_name'}

So for me it doesn't matter what text is before and after.
For example of text:

<!-- fdfdf -->
#sdfsdf
*dddd {action name='my_name1'} 090909
*dddd {action name='my_name2'} 090909
<!-- fdfdf -->

The only interesting parts for me are

{action name='my_name1'}
{action name='my_name2'}

Is there is some built-in rule/token like ANY_TEXT?

If there is no such rule could you help me to prototype xText grammar
for such language?

Thanks in advance.

Ilya
Re: xText: any text rule [message #375969 is a reply to message #375966] Fri, 23 February 2007 08:05 Go to previous messageGo to next message
Bernd Kolb is currently offline Bernd KolbFriend
Messages: 57
Registered: July 2009
Member
Hi Ilya,

sorry for the late reply.

We'll release a new version of oaw before the EclipseCon (I think mid to
end next week)

In the new release we ported the grammar from ANTLR 2 to 3 and added
some features. The new version is backward compatible.

With the current version you can't solve your problem.
With the new version you can :-)

It'll be possible to specify a 'NativeLexerRule'. In there you'll be
able to write your own rule in Antlr format.

The syntax will look like this:
'NativeLexerRule' ruleName ':' STRING ';'


Hope that helps.

Best regards,

Bernd




Ilya Klyuchnikov wrote:
> Hi.
>
> I have read short documentation on xText framework, server-side article
> and have seen screen casts.
>
> But I have not found answer on following question.
>
> Is there is any possibility to create rule "Any text"?
>
> In my model domain text to be analyzed is arbitrary but I need to
> proceed in some logic way text fragments like
>
> {action name='my_name'}
>
> So for me it doesn't matter what text is before and after.
> For example of text:
>
> <!-- fdfdf -->
> #sdfsdf
> *dddd {action name='my_name1'} 090909
> *dddd {action name='my_name2'} 090909
> <!-- fdfdf -->
>
> The only interesting parts for me are
>
> {action name='my_name1'}
> {action name='my_name2'}
>
> Is there is some built-in rule/token like ANY_TEXT?
>
> If there is no such rule could you help me to prototype xText grammar
> for such language?
>
> Thanks in advance.
>
> Ilya
>
Re: xText: any text rule [message #375971 is a reply to message #375969] Fri, 23 February 2007 09:10 Go to previous messageGo to next message
Ilya Klyuchnikov is currently offline Ilya KlyuchnikovFriend
Messages: 74
Registered: July 2009
Member
It's very cool that I'll be able to create Antlr rules!

BTW, will docs/tutorials be upgraded in short terms?

Thanks

Ilya

Bernd Kolb wrote:
> Hi Ilya,
>
> sorry for the late reply.
>
> We'll release a new version of oaw before the EclipseCon (I think mid to
> end next week)
>
> In the new release we ported the grammar from ANTLR 2 to 3 and added
> some features. The new version is backward compatible.
>
> With the current version you can't solve your problem.
> With the new version you can :-)
>
> It'll be possible to specify a 'NativeLexerRule'. In there you'll be
> able to write your own rule in Antlr format.
>
> The syntax will look like this:
> 'NativeLexerRule' ruleName ':' STRING ';'
>
>
> Hope that helps.
>
> Best regards,
>
> Bernd
>
>
>
>
> Ilya Klyuchnikov wrote:
>> Hi.
>>
>> I have read short documentation on xText framework, server-side
>> article and have seen screen casts.
>>
>> But I have not found answer on following question.
>>
>> Is there is any possibility to create rule "Any text"?
>>
>> In my model domain text to be analyzed is arbitrary but I need to
>> proceed in some logic way text fragments like
>>
>> {action name='my_name'}
>>
>> So for me it doesn't matter what text is before and after.
>> For example of text:
>>
>> <!-- fdfdf -->
>> #sdfsdf
>> *dddd {action name='my_name1'} 090909
>> *dddd {action name='my_name2'} 090909
>> <!-- fdfdf -->
>>
>> The only interesting parts for me are
>>
>> {action name='my_name1'}
>> {action name='my_name2'}
>>
>> Is there is some built-in rule/token like ANY_TEXT?
>>
>> If there is no such rule could you help me to prototype xText grammar
>> for such language?
>>
>> Thanks in advance.
>>
>> Ilya
>>
Re: xText: any text rule [message #375985 is a reply to message #375971] Fri, 23 February 2007 18:27 Go to previous messageGo to next message
Bernd Kolb is currently offline Bernd KolbFriend
Messages: 57
Registered: July 2009
Member
Ilya Klyuchnikov wrote:
> It's very cool that I'll be able to create Antlr rules!
>
> BTW, will docs/tutorials be upgraded in short terms?


Hopefully. As soon as we find the time. We are always grateful for help ;-)

Bernd


>
> Thanks
>
> Ilya
>
> Bernd Kolb wrote:
>> Hi Ilya,
>>
>> sorry for the late reply.
>>
>> We'll release a new version of oaw before the EclipseCon (I think mid
>> to end next week)
>>
>> In the new release we ported the grammar from ANTLR 2 to 3 and added
>> some features. The new version is backward compatible.
>>
>> With the current version you can't solve your problem.
>> With the new version you can :-)
>>
>> It'll be possible to specify a 'NativeLexerRule'. In there you'll be
>> able to write your own rule in Antlr format.
>>
>> The syntax will look like this:
>> 'NativeLexerRule' ruleName ':' STRING ';'
>>
>>
>> Hope that helps.
>>
>> Best regards,
>>
>> Bernd
>>
>>
>>
>>
>> Ilya Klyuchnikov wrote:
>>> Hi.
>>>
>>> I have read short documentation on xText framework, server-side
>>> article and have seen screen casts.
>>>
>>> But I have not found answer on following question.
>>>
>>> Is there is any possibility to create rule "Any text"?
>>>
>>> In my model domain text to be analyzed is arbitrary but I need to
>>> proceed in some logic way text fragments like
>>>
>>> {action name='my_name'}
>>>
>>> So for me it doesn't matter what text is before and after.
>>> For example of text:
>>>
>>> <!-- fdfdf -->
>>> #sdfsdf
>>> *dddd {action name='my_name1'} 090909
>>> *dddd {action name='my_name2'} 090909
>>> <!-- fdfdf -->
>>>
>>> The only interesting parts for me are
>>>
>>> {action name='my_name1'}
>>> {action name='my_name2'}
>>>
>>> Is there is some built-in rule/token like ANY_TEXT?
>>>
>>> If there is no such rule could you help me to prototype xText grammar
>>> for such language?
>>>
>>> Thanks in advance.
>>>
>>> Ilya
>>>
Re: xText: any text rule [message #376305 is a reply to message #375985] Mon, 12 March 2007 13:02 Go to previous message
Ilya Klyuchnikov is currently offline Ilya KlyuchnikovFriend
Messages: 74
Registered: July 2009
Member
Hi Bernd,

3 weeks passed since your reply but there is no new oaw release.

Could I ask you when it will be released?

Thanks

Ilya

Bernd Kolb wrote:
> Ilya Klyuchnikov wrote:
>> It's very cool that I'll be able to create Antlr rules!
>>
>> BTW, will docs/tutorials be upgraded in short terms?
>
>
> Hopefully. As soon as we find the time. We are always grateful for help ;-)
>
> Bernd
>
>
>>
>> Thanks
>>
>> Ilya
>>
>> Bernd Kolb wrote:
>>> Hi Ilya,
>>>
>>> sorry for the late reply.
>>>
>>> We'll release a new version of oaw before the EclipseCon (I think mid
>>> to end next week)
>>>
>>> In the new release we ported the grammar from ANTLR 2 to 3 and added
>>> some features. The new version is backward compatible.
>>>
>>> With the current version you can't solve your problem.
>>> With the new version you can :-)
>>>
>>> It'll be possible to specify a 'NativeLexerRule'. In there you'll be
>>> able to write your own rule in Antlr format.
>>>
>>> The syntax will look like this:
>>> 'NativeLexerRule' ruleName ':' STRING ';'
>>>
>>>
>>> Hope that helps.
>>>
>>> Best regards,
>>>
>>> Bernd
>>>
>>>
>>>
>>>
>>> Ilya Klyuchnikov wrote:
>>>> Hi.
>>>>
>>>> I have read short documentation on xText framework, server-side
>>>> article and have seen screen casts.
>>>>
>>>> But I have not found answer on following question.
>>>>
>>>> Is there is any possibility to create rule "Any text"?
>>>>
>>>> In my model domain text to be analyzed is arbitrary but I need to
>>>> proceed in some logic way text fragments like
>>>>
>>>> {action name='my_name'}
>>>>
>>>> So for me it doesn't matter what text is before and after.
>>>> For example of text:
>>>>
>>>> <!-- fdfdf -->
>>>> #sdfsdf
>>>> *dddd {action name='my_name1'} 090909
>>>> *dddd {action name='my_name2'} 090909
>>>> <!-- fdfdf -->
>>>>
>>>> The only interesting parts for me are
>>>>
>>>> {action name='my_name1'}
>>>> {action name='my_name2'}
>>>>
>>>> Is there is some built-in rule/token like ANY_TEXT?
>>>>
>>>> If there is no such rule could you help me to prototype xText
>>>> grammar for such language?
>>>>
>>>> Thanks in advance.
>>>>
>>>> Ilya
>>>>
Re: xText: any text rule [message #571629 is a reply to message #375966] Fri, 23 February 2007 08:05 Go to previous message
Bernd Kolb is currently offline Bernd KolbFriend
Messages: 57
Registered: July 2009
Member
Hi Ilya,

sorry for the late reply.

We'll release a new version of oaw before the EclipseCon (I think mid to
end next week)

In the new release we ported the grammar from ANTLR 2 to 3 and added
some features. The new version is backward compatible.

With the current version you can't solve your problem.
With the new version you can :-)

It'll be possible to specify a 'NativeLexerRule'. In there you'll be
able to write your own rule in Antlr format.

The syntax will look like this:
'NativeLexerRule' ruleName ':' STRING ';'


Hope that helps.

Best regards,

Bernd




Ilya Klyuchnikov wrote:
> Hi.
>
> I have read short documentation on xText framework, server-side article
> and have seen screen casts.
>
> But I have not found answer on following question.
>
> Is there is any possibility to create rule "Any text"?
>
> In my model domain text to be analyzed is arbitrary but I need to
> proceed in some logic way text fragments like
>
> {action name='my_name'}
>
> So for me it doesn't matter what text is before and after.
> For example of text:
>
> <!-- fdfdf -->
> #sdfsdf
> *dddd {action name='my_name1'} 090909
> *dddd {action name='my_name2'} 090909
> <!-- fdfdf -->
>
> The only interesting parts for me are
>
> {action name='my_name1'}
> {action name='my_name2'}
>
> Is there is some built-in rule/token like ANY_TEXT?
>
> If there is no such rule could you help me to prototype xText grammar
> for such language?
>
> Thanks in advance.
>
> Ilya
>
Re: xText: any text rule [message #571655 is a reply to message #375969] Fri, 23 February 2007 09:10 Go to previous message
Ilya Klyuchnikov is currently offline Ilya KlyuchnikovFriend
Messages: 74
Registered: July 2009
Member
It's very cool that I'll be able to create Antlr rules!

BTW, will docs/tutorials be upgraded in short terms?

Thanks

Ilya

Bernd Kolb wrote:
> Hi Ilya,
>
> sorry for the late reply.
>
> We'll release a new version of oaw before the EclipseCon (I think mid to
> end next week)
>
> In the new release we ported the grammar from ANTLR 2 to 3 and added
> some features. The new version is backward compatible.
>
> With the current version you can't solve your problem.
> With the new version you can :-)
>
> It'll be possible to specify a 'NativeLexerRule'. In there you'll be
> able to write your own rule in Antlr format.
>
> The syntax will look like this:
> 'NativeLexerRule' ruleName ':' STRING ';'
>
>
> Hope that helps.
>
> Best regards,
>
> Bernd
>
>
>
>
> Ilya Klyuchnikov wrote:
>> Hi.
>>
>> I have read short documentation on xText framework, server-side
>> article and have seen screen casts.
>>
>> But I have not found answer on following question.
>>
>> Is there is any possibility to create rule "Any text"?
>>
>> In my model domain text to be analyzed is arbitrary but I need to
>> proceed in some logic way text fragments like
>>
>> {action name='my_name'}
>>
>> So for me it doesn't matter what text is before and after.
>> For example of text:
>>
>> <!-- fdfdf -->
>> #sdfsdf
>> *dddd {action name='my_name1'} 090909
>> *dddd {action name='my_name2'} 090909
>> <!-- fdfdf -->
>>
>> The only interesting parts for me are
>>
>> {action name='my_name1'}
>> {action name='my_name2'}
>>
>> Is there is some built-in rule/token like ANY_TEXT?
>>
>> If there is no such rule could you help me to prototype xText grammar
>> for such language?
>>
>> Thanks in advance.
>>
>> Ilya
>>
Re: xText: any text rule [message #571845 is a reply to message #375971] Fri, 23 February 2007 18:27 Go to previous message
Bernd Kolb is currently offline Bernd KolbFriend
Messages: 57
Registered: July 2009
Member
Ilya Klyuchnikov wrote:
> It's very cool that I'll be able to create Antlr rules!
>
> BTW, will docs/tutorials be upgraded in short terms?


Hopefully. As soon as we find the time. We are always grateful for help ;-)

Bernd


>
> Thanks
>
> Ilya
>
> Bernd Kolb wrote:
>> Hi Ilya,
>>
>> sorry for the late reply.
>>
>> We'll release a new version of oaw before the EclipseCon (I think mid
>> to end next week)
>>
>> In the new release we ported the grammar from ANTLR 2 to 3 and added
>> some features. The new version is backward compatible.
>>
>> With the current version you can't solve your problem.
>> With the new version you can :-)
>>
>> It'll be possible to specify a 'NativeLexerRule'. In there you'll be
>> able to write your own rule in Antlr format.
>>
>> The syntax will look like this:
>> 'NativeLexerRule' ruleName ':' STRING ';'
>>
>>
>> Hope that helps.
>>
>> Best regards,
>>
>> Bernd
>>
>>
>>
>>
>> Ilya Klyuchnikov wrote:
>>> Hi.
>>>
>>> I have read short documentation on xText framework, server-side
>>> article and have seen screen casts.
>>>
>>> But I have not found answer on following question.
>>>
>>> Is there is any possibility to create rule "Any text"?
>>>
>>> In my model domain text to be analyzed is arbitrary but I need to
>>> proceed in some logic way text fragments like
>>>
>>> {action name='my_name'}
>>>
>>> So for me it doesn't matter what text is before and after.
>>> For example of text:
>>>
>>> <!-- fdfdf -->
>>> #sdfsdf
>>> *dddd {action name='my_name1'} 090909
>>> *dddd {action name='my_name2'} 090909
>>> <!-- fdfdf -->
>>>
>>> The only interesting parts for me are
>>>
>>> {action name='my_name1'}
>>> {action name='my_name2'}
>>>
>>> Is there is some built-in rule/token like ANY_TEXT?
>>>
>>> If there is no such rule could you help me to prototype xText grammar
>>> for such language?
>>>
>>> Thanks in advance.
>>>
>>> Ilya
>>>
Re: xText: any text rule [message #578022 is a reply to message #375985] Mon, 12 March 2007 13:02 Go to previous message
Ilya Klyuchnikov is currently offline Ilya KlyuchnikovFriend
Messages: 74
Registered: July 2009
Member
Hi Bernd,

3 weeks passed since your reply but there is no new oaw release.

Could I ask you when it will be released?

Thanks

Ilya

Bernd Kolb wrote:
> Ilya Klyuchnikov wrote:
>> It's very cool that I'll be able to create Antlr rules!
>>
>> BTW, will docs/tutorials be upgraded in short terms?
>
>
> Hopefully. As soon as we find the time. We are always grateful for help ;-)
>
> Bernd
>
>
>>
>> Thanks
>>
>> Ilya
>>
>> Bernd Kolb wrote:
>>> Hi Ilya,
>>>
>>> sorry for the late reply.
>>>
>>> We'll release a new version of oaw before the EclipseCon (I think mid
>>> to end next week)
>>>
>>> In the new release we ported the grammar from ANTLR 2 to 3 and added
>>> some features. The new version is backward compatible.
>>>
>>> With the current version you can't solve your problem.
>>> With the new version you can :-)
>>>
>>> It'll be possible to specify a 'NativeLexerRule'. In there you'll be
>>> able to write your own rule in Antlr format.
>>>
>>> The syntax will look like this:
>>> 'NativeLexerRule' ruleName ':' STRING ';'
>>>
>>>
>>> Hope that helps.
>>>
>>> Best regards,
>>>
>>> Bernd
>>>
>>>
>>>
>>>
>>> Ilya Klyuchnikov wrote:
>>>> Hi.
>>>>
>>>> I have read short documentation on xText framework, server-side
>>>> article and have seen screen casts.
>>>>
>>>> But I have not found answer on following question.
>>>>
>>>> Is there is any possibility to create rule "Any text"?
>>>>
>>>> In my model domain text to be analyzed is arbitrary but I need to
>>>> proceed in some logic way text fragments like
>>>>
>>>> {action name='my_name'}
>>>>
>>>> So for me it doesn't matter what text is before and after.
>>>> For example of text:
>>>>
>>>> <!-- fdfdf -->
>>>> #sdfsdf
>>>> *dddd {action name='my_name1'} 090909
>>>> *dddd {action name='my_name2'} 090909
>>>> <!-- fdfdf -->
>>>>
>>>> The only interesting parts for me are
>>>>
>>>> {action name='my_name1'}
>>>> {action name='my_name2'}
>>>>
>>>> Is there is some built-in rule/token like ANY_TEXT?
>>>>
>>>> If there is no such rule could you help me to prototype xText
>>>> grammar for such language?
>>>>
>>>> Thanks in advance.
>>>>
>>>> Ilya
>>>>
Previous Topic:[MOFScript] Java Api howto
Next Topic:[GEMS] JPLException?
Goto Forum:
  


Current Time: Thu Apr 25 12:15:32 GMT 2024

Powered by FUDForum. Page generated in 0.04223 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top