On Thu, 06 Apr 2006 14:21:58 -0500, Gilles wrote:
> I'm searching an editor (with color syntax and easy input function)
> for creating, editing and easy transfer with an HP49G+...
Color syntax -- it would have to understand UserRPL,
so it would have to be made for this specific environment,
unless it has a user-specifiable lexical analyzer.
Well, I never knew of one, but I grew up watching
black and white TV, so when I use Notepad (or even
compose in my email or newsgroup reader in plain text mode),
I just imagine the colors :)
Of course, with any HTML editor or word processor (even WritePad),
you can actually have colors, provided you set them yourself :)
Once you transfer programs to the actual calculator,
all you get for syntax clues is just indenting,
which you can also do on your computer.
> If the tests of the program could be easy with an emulate 49G+
> it would be perfect.
Whatever editor you finally decide upon, if it has a "copy" function,
you can easily transfer program text to Emu48 --
use either a special version for 49G+ or the plain 49G emulator;
my programs run exactly the same on either, and only the plain
original version happens to allow storing into emulated flash,
so I keep using Emu48, even for my 49G+
If your editor natively uses the same ISO-8859-1 (Latin-1)
character set as the calculator, then no translation is needed,
but I'm happy with the "pure ascii" scheme where \xx is used
to represent each 8-bit character, e.g. \<< R\->B \>>
So I put a couple of little "translate" programs in my emulator
(and even in my real calc, which gets restored from my emulator);
this has the advantage of universal compatibility
with all computers, text email, web and newsgroup postings.
Ascii translation on the calculator (or Emu48) itself:
http://groups.google.com/group/comp.sys.hp48/msg/78ccdda2a7e971a6
The 8-bit characters employed in UserRPL programming
are basically just these few:
Num Sym Description
--- --- -----------
128 \<) angle symbol
131 \v/ square root
132 \.S integral symbol
133 \GS Greek Sigma (\GSLIST)
135 \pi pi
136 \.d derivative symbol
137 \<= less or equal
138 \>= greater or equal
139 \=/ unequal
141 \-> right arrow (\->LIST, \-> a b c)
142 \<- left arrow (\<-local)
143 \|v down arrow (\|vMATCH)
144 \|^ up arrow (\|^MATCH)
156 \PI capital pi (\PILIST)
159 \oo infinity
171 \<< program delimiters
187 \>>
092 \\ backslash
Most of these conveniently "look like"
the very characters which they represent;
a few others used in formulas and equations might be:
Greek lower-case: \Ga (alpha), \Gb (beta), etc.
Greek upper-case: \GD (Delta), \GW (Omega), \GS (Sigma)
For any other character, you can use \nnn
with the 3-digit decimal character number,
which you can obtain from the CHARS application in the calc.
[r->] [OFF]
|