Case sensitivity control [message #876566] |
Thu, 24 May 2012 17:00  |
Eclipse User |
|
|
|
From Google I found that I can make Case Insensitive Languages.
May be it is simple question, But I need control case sensitivity in my language.
For example when I define new module I can declare
defModule ID
:case-sensitiv? TRUE
and all reference, keywords and ID's in this module should be in UpperCase.
In case :case-sensitiv? FALSE module become fully case insensitive.
I will appreciate any advice especially relating to keywords and reference including references between case sensittive and insensitive modules.
Dmitriy.
|
|
|
|
Re: Case sensitivity control [message #877070 is a reply to message #876566] |
Fri, 25 May 2012 16:43  |
Eclipse User |
|
|
|
Thanks a lot for answer, Sebastian.
Maybe there is some advices about validation of cross-references? Where to begin?
I try to make Eclipse editor for existing language. And in its specification says:
"If :case-sensitive? is supplied as TRUE, symbols in the module will be interned
case-sensitively, otherwise (the default), they will be converted to uppercase before
they get interned. That means that any reference from inside a case-sensitive module
to a non-case-sensitive module will have to use uppercase names for symbols in the
non-case-sensitive module."
Another words, in case insensitive module I can write the way I want case:
where 'defconcept' is keyword. And it will be right, because system "will be converted to uppercase before
they get interned"
And in case-sensitive module I can write only:
I tried it on console-version of this language and it works exactly as I described. Sustem says: "Undefined operator: `defconcept'" in case-sensitive module..
Thanks again,
Dmitriy.
|
|
|
Powered by
FUDForum. Page generated in 0.43575 seconds