Re: compiler for Chinese development language

glen herrmannsfeldt <gah@ugcs.caltech.edu>
20 Oct 2005 00:00:17 -0400

          From comp.compilers

Related articles
[7 earlier articles]
Re: compiler for Chinese development language owong@castortech.com (Oliver Wong) (2005-10-19)
Re: compiler for Chinese development language Juergen.Kahrs@vr-web.de (=?ISO-8859-1?Q?J=FCrgen_Kahrs?=) (2005-10-19)
Re: compiler for Chinese development language kenrose@tfb.com (Ken Rose) (2005-10-19)
Re: compiler for Chinese development language DrDiettrich@compuserve.de (Hans-Peter Diettrich) (2005-10-19)
Re: compiler for Chinese development language haberg@math.su.se (2005-10-19)
Re: compiler for Chinese development language gah@ugcs.caltech.edu (glen herrmannsfeldt) (2005-10-19)
Re: compiler for Chinese development language gah@ugcs.caltech.edu (glen herrmannsfeldt) (2005-10-20)
Re: compiler for Chinese development language mailbox@dmitry-kazakov.de (Dmitry A. Kazakov) (2005-10-20)
Re: compiler for Chinese development language Satyam@satyam.com.ar (Satyam) (2005-10-20)
Re: compiler for Chinese development language sgganesh@gmail.com (Ganny) (2005-10-20)
Re: compiler for Chinese development language henry@spsystems.net (2005-10-20)
Re: compiler for Chinese development language henry@spsystems.net (2005-10-20)
Re: compiler for Chinese development language marcov@stack.nl (Marco van de Voort) (2005-10-22)
[10 later articles]
| List of all articles for this month |

From: glen herrmannsfeldt <gah@ugcs.caltech.edu>
Newsgroups: comp.compilers
Date: 20 Oct 2005 00:00:17 -0400
Organization: Compilers Central
References: 05-10-107 05-10-128
Keywords: i18n

> "Ganny" <sgganesh@gmail.com> wrote:


>>Ok, one basic question. Why is that the programming languages (like
>>C++) have reserved keywords in English? Why not some other
>>language/alternative?


Note that some languages have no reserved words, though that isn't
really what you were asking...


And our moderator wrote:


>>[Historically, modern software development started in the US and UK, where
>>people speak English. At least as far back as the early 1960s there were
>>versions of programming languages with the keywords other languages, but
>>they never caught on. A compiler doesn't care of an "if" keyword is
>>the two letters IF or SI or the Chinese equivalent, after all. -John]


Either the C or PL/I preprocessor could easily substitute keywords.
For other languages it could be done with an external preprocessor,
similar to those used for extending/modernizing languages such as
RATFOR and MORTRAN.


I have seen C code with


#define BEGIN {
#define END }


The intent to make C look more like Pascal.


Doing it with a preprocessor would allow one to send the processed
version to someone else who understands a different language.


Even with the keywords in english, one can still use other languages
for identifiers such as variable names. Java allows unicode for
identifiers. One could write wrapper classes to allow class and
method names in a different language.


-- glen



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.