Re:قلب: a non-ASCII programming language written in Arabic
by Santosh83 on Friday October 25, 2019 @03:50AM
(#21352772)
A translator that takes say C code written in a non-English language and spits out ASCII C (except for variable/function names) ought to be simple.
[ Parent
| on HN ]
Re:قلب: a non-ASCII programming language written in Arabic
by est31 on Friday October 25, 2019 @03:56AM
(#21352793)
Providing a mapping from utf-8 to ASCII is easy, e.g. punycode. The problems arise when it comes to things like checking equality of two identifiers, as it becomes non-trivial in general Unicode: https://unicode.org/reports/tr10/
Re:قلب: a non-ASCII programming language written in Arabic
by JBorrow on Friday October 25, 2019 @03:57AM
(#21352798)
Well, yeah. That already exists if you go to any non-english speaking country and look at the coursework of people doing introductory C classes...
#define pour for #define ent int etc...
I think these don't really capture the whole idea around creating a programming language in another language, though...