Related articles |
---|
compiler for Chinese development language gentlezhao@126.com (gentlezhao) (2005-10-13) |
Re: compiler for Chinese development language owong@castortech.com (Oliver Wong) (2005-10-14) |
Re: compiler for Chinese development language haberg@math.su.se (2005-10-14) |
Re: compiler for Chinese development language sgganesh@gmail.com (Ganny) (2005-10-17) |
Re: compiler for Chinese development language djg@tramontana.co.hu (DEÁK JAHN, Gábor) (2005-10-19) |
Re: compiler for Chinese development language gentlezhao@126.com (gentlezhao) (2005-10-19) |
Re: compiler for Chinese development language torbenm@app-6.diku.dk (2005-10-19) |
Re: compiler for Chinese development language owong@castortech.com (Oliver Wong) (2005-10-19) |
[22 later articles] |
From: | "Oliver Wong" <owong@castortech.com> |
Newsgroups: | comp.compilers |
Date: | 14 Oct 2005 17:23:08 -0400 |
Organization: | GlobeTrotter |
References: | 05-10-085 |
Keywords: | i18n |
Posted-Date: | 14 Oct 2005 17:23:08 EDT |
"gentlezhao" <gentlezhao@126.com> wrote in message
> Hi, I am a student from China.I want to design a compiler for Chinese
> development language on linux, but I don't know whether it is
> feasible. I need some suggestion.
>
> Thanks!
> [I don't see why not. Unicode support is getting pretty good, and once
> you're
> pass the lexical stage, the source character set doesn't affect the
> language.
> -John]
For what it's worth, the Java language has had unicode since its
inception, I believe. If you don't mind the keywords being in English (e.g.
"if", "then", "else", "public", etc.), you can just name all your variables,
methods and classes with chinese characters (or Japanese Hiragana, or Arabic
characters or pretty much anything else you want).
Otherwise you could probably write a simple compiler (perhaps even using
only regular expressions) that does some sort of one-to-one conversion of
the keywords (e.g. converts "??" to "public").
- Oliver
Return to the
comp.compilers page.
Search the
comp.compilers archives again.