3 ms·
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.
by Santosh83 7y ago
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.
- est31 7y agoProviding 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/ https://unicode.org/reports/tr10/
- JBorrow 7y agoWell, 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...