Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMT (Generative Modeling Technologies) » [TCS] Case sensitive keywords
[TCS] Case sensitive keywords [message #378110] Tue, 12 June 2007 16:16 Go to next message
Guillaume Hillairet is currently offline Guillaume Hillairet
Messages: 81
Registered: July 2009
Member
Hi all,

Just a little problem with keywords.
How to make them not case sensitive ?

Regards
Re: [TCS] Case sensitive keywords [message #378112 is a reply to message #378110] Tue, 12 June 2007 17:11 Go to previous messageGo to next message
Frédéric Jouault is currently offline Frédéric Jouault
Messages: 572
Registered: July 2009
Senior Member
Hello,

> Just a little problem with keywords.
> How to make them not case sensitive ?

ANTLR has some case sensitivity options:
http://www.antlr2.org/doc/lexer.html#Case_sensitivity

Please, let us know how well it works ;-).


Best regards,

Frédéric Jouault
Re: [TCS] Case sensitive keywords [message #378118 is a reply to message #378112] Wed, 13 June 2007 05:57 Go to previous messageGo to next message
Guillaume Hillairet is currently offline Guillaume Hillairet
Messages: 81
Registered: July 2009
Member
Hi,

I've add the option caseSensitive=false in the lexer option in the tcs
file.
The jar build works well but when parsing a file, it still remains error
if there is different case sensitivity.
I'll look closer to ANTLR to see how i can fix it.

Regards
Re: [TCS] Case sensitive keywords [message #378120 is a reply to message #378118] Wed, 13 June 2007 06:08 Go to previous messageGo to next message
Frédéric Jouault is currently offline Frédéric Jouault
Messages: 572
Registered: July 2009
Senior Member
Hello,

> I've add the option caseSensitive=false in the lexer option in the tcs
> file.
> The jar build works well but when parsing a file, it still remains error
> if there is different case sensitivity.
> I'll look closer to ANTLR to see how i can fix it.

Ok.

By the way, the TCS extractor already supports case insensitive keywords
via its kwCheckIgnoreCase parameter.


Regards,

Frédéric Jouault
Re: [TCS] Case sensitive keywords [message #378122 is a reply to message #378120] Wed, 13 June 2007 06:22 Go to previous messageGo to next message
Guillaume Hillairet is currently offline Guillaume Hillairet
Messages: 81
Registered: July 2009
Member
> By the way, the TCS extractor already supports case insensitive keywords
> via its kwCheckIgnoreCase parameter.

Is it a parameter for the ant file i guess ?

Does it works for an injector ?
Re: [TCS] Case sensitive keywords [message #378124 is a reply to message #378122] Wed, 13 June 2007 06:28 Go to previous message
Frédéric Jouault is currently offline Frédéric Jouault
Messages: 572
Registered: July 2009
Senior Member
Hello,

>> By the way, the TCS extractor already supports case insensitive
>> keywords via its kwCheckIgnoreCase parameter.
>
> Is it a parameter for the ant file i guess ?

It is a parameter of the TCS extractor.

You can use it in an ant file, or programmatically.

> Does it works for an injector ?

It is a parameter of the TCS *extractor* ;-).


Regards,

Frédéric Jouault
Re: [TCS] Case sensitive keywords [message #601778 is a reply to message #378110] Tue, 12 June 2007 17:11 Go to previous message
Frédéric Jouault is currently offline Frédéric Jouault
Messages: 572
Registered: July 2009
Senior Member
Hello,

> Just a little problem with keywords.
> How to make them not case sensitive ?

ANTLR has some case sensitivity options:
http://www.antlr2.org/doc/lexer.html#Case_sensitivity

Please, let us know how well it works ;-).


Best regards,

Frédéric Jouault
Re: [TCS] Case sensitive keywords [message #601795 is a reply to message #378112] Wed, 13 June 2007 05:57 Go to previous message
Guillaume Hillairet is currently offline Guillaume Hillairet
Messages: 81
Registered: July 2009
Member
Hi,

I've add the option caseSensitive=false in the lexer option in the tcs
file.
The jar build works well but when parsing a file, it still remains error
if there is different case sensitivity.
I'll look closer to ANTLR to see how i can fix it.

Regards
Re: [TCS] Case sensitive keywords [message #601801 is a reply to message #378118] Wed, 13 June 2007 06:08 Go to previous message
Frédéric Jouault is currently offline Frédéric Jouault
Messages: 572
Registered: July 2009
Senior Member
Hello,

> I've add the option caseSensitive=false in the lexer option in the tcs
> file.
> The jar build works well but when parsing a file, it still remains error
> if there is different case sensitivity.
> I'll look closer to ANTLR to see how i can fix it.

Ok.

By the way, the TCS extractor already supports case insensitive keywords
via its kwCheckIgnoreCase parameter.


Regards,

Frédéric Jouault
Re: [TCS] Case sensitive keywords [message #601809 is a reply to message #378120] Wed, 13 June 2007 06:22 Go to previous message
Guillaume Hillairet is currently offline Guillaume Hillairet
Messages: 81
Registered: July 2009
Member
> By the way, the TCS extractor already supports case insensitive keywords
> via its kwCheckIgnoreCase parameter.

Is it a parameter for the ant file i guess ?

Does it works for an injector ?
Re: [TCS] Case sensitive keywords [message #601813 is a reply to message #378122] Wed, 13 June 2007 06:28 Go to previous message
Frédéric Jouault is currently offline Frédéric Jouault
Messages: 572
Registered: July 2009
Senior Member
Hello,

>> By the way, the TCS extractor already supports case insensitive
>> keywords via its kwCheckIgnoreCase parameter.
>
> Is it a parameter for the ant file i guess ?

It is a parameter of the TCS extractor.

You can use it in an ant file, or programmatically.

> Does it works for an injector ?

It is a parameter of the TCS *extractor* ;-).


Regards,

Frédéric Jouault
Previous Topic:[TCS] Case sensitive keywords
Next Topic:Re: Cannot get MOFScript Editor or Pref Pages to Appear
Goto Forum:
  


Current Time: Fri Jul 25 13:41:27 EDT 2014

Powered by FUDForum. Page generated in 0.01734 seconds