Re: Accented characters in identifiers

new topic     » goto parent     » topic index » view thread      » older message » newer message

CChris wrote:
> 
> 
> Currently, if you use characters in the 128-255 range in identifiers, you will
> get incongruous error messages, like "Result of a function must be assigned"
> because you used a รณ.
> 
> This comes from the shrouding method Euphoria had been using long ago. Rob
> himself
> admitted supporting was becoming obsolte.
> 
> Implementationwise, the move is simple: change the character class of all
> those
> chars from KEYWORD or BUILTIN to LETTER in the scanner. Nothing else (a couple
> if branches and constants will become dead code).
> 
> Since characters that display as a letter in some code page may display
> differently
> on another, I think including the whole 128..255 range as valid characters is
> better than restricting it. If a char is valid somewhere, it must be valid
> anywhere,
> even if it displays funny.
> 
> What do you think?

Hi Chris,

It is very good idea, I think, but its implementation is not
too simple. There is Bilingual Euphoria 2.5 in the Archive.
It understands any characters in identifiers and 
English and Russian keywords and has the English or Russian
error messages and can translate the program text from English
to Russian and back, but there is still unknown bug on
Linux platform (DOS32, WIN32 are very stable, I work on it all
the time).

http://www.rapideuphoria.com/ru_eu_11.zip

Sorry, I do not have some spare time to implement these
features in 3.2 now - my vegetable-garden takes all my
summer time   smile

So ask please Rob for that code just to see various details
of that interpreter, if you want. That was strongly licensed
2.5 stuff, that was our co-work with Rob and he didn't want
to open that code that time.


Regards,
Igor Kachan
kinz at peterlink.ru

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu