Re: Accented characters in identifiers
- Posted by CChris <christian.cuvier at agricult?re.go?v.fr> May 29, 2008
- 723 views
Igor Kachan wrote: > > 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). > > <a > href="http://www.rapideuphoria.com/ru_eu_11.zip">http://www.rapideuphoria.com/ru_eu_11.zip</a> > > Sorry, I do not have some spare time to implement these > features in 3.2 now - my vegetable-garden takes all my > summer time > > 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 You may be aware that Euphoria has been open source for one year now. I'm not sure using any licensed material with restrictions worse than GPL would be possible or desirable. I may be wrong there though. Could you elaborate on how the bug shows up on Linux? Inasmuch as this doesn't infringe on any NDA of course. CChris