From: Hans Aberg (haberg@math.su.se)
Date: Thu May 31 2007 - 12:09:17 CDT
On 31 May 2007, at 13:38, JFC Morfin wrote:
> I have a table of options noted 0), 1), ... y), z). Or variables
> named "ab", "c1", etc. When I change scripting environment, I can
> easily transcode the programming language to enter the translated
> source code, but not the variables. These variables use a given
> syntax whith an inner logic having nothing to do with a particular
> script but with unicity, alpha or numeric constraints, and
> possibily sorting order.
>
> What I am looking for is to build a table where a has greek alpha,
> cyrillic a, etc. as hexatridecimal equivalent. This means selecting
> 26 chars in sorting order in each non-ASCII alphabets. Which one to
> select, what to add up to 26?
The process of encoding one set of identifiers into another is called
"mangling", which is possible if both sets are countable infinite.
For example, if one has a language that admits arbitrary ASCII
identifiers and wants to compile into C, can mangle those into C
identifiers which only admits 0-9A-Za-z and '_'.
You do not say much waht kind of mangling you want. Is it necessary
that the translated version be meaningful to humans as well? Do you
want to translate from ASCII to scripts like Greek and Cyrillic or
the other way around?
Hans Aberg
This archive was generated by hypermail 2.1.5 : Thu May 31 2007 - 12:11:39 CDT