From: | Hans-Peter Diettrich <DrDiettrich1@aol.com> |
Newsgroups: | comp.compilers |
Date: | Mon, 11 Jun 2012 18:18:52 +0200 |
Organization: | Compilers Central |
References: | 12-03-012 12-03-014 12-06-008 12-06-010 12-06-013 12-06-014 12-06-029 |
Keywords: | i18n |
Posted-Date: | 12 Jun 2012 00:50:16 EDT |
Alex McDonald schrieb:
>> For an Arabic programming language, all bets are off.
>
> ! c + b a
>
> My first example reversed. The arity of the operators make it easy to
> parse left to right too; "Store in c the sum of a and b". It would be
> a trivial modification to a stack-based compiler to parse right to
> left.
Note: even Arabic text is *stored* in low-to-high address order, so
that there is no need for reverse parsing. It's only the GUI that
flips the strings and their horizontal alignments.
DoDi
Return to the
comp.compilers page.
Search the
comp.compilers archives again.