Omnimaga
Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: yrinfish on June 14, 2011, 02:16:14 am
-
As some of you know I'm working on a programming language for the TI83/84 etc, but I've got a question:
Do you guys want operator precedence?
It would be less optimized (pushes and pops), but since the compiler is not on-calc, I can work on this. It would also mean more work for me (but that's not really bad)
-
IMHO, operator precedence is a must, unless it have unconventional syntax (does not look like C at all) or the editor is on-calc (like Axe).
-
When you say partial, no difference between +- and */, that is how PEMDAS works anyways. Subtraction is the same as addition anyway, so the partial and full options are the same :P
-
By partial I meant that 23+1/4 is 6 and not 23.25.
The syntax will be C-like
-
Well, it depends on what type of language it is that you're writing. Is it like RPL, BASIC, C, or something else? I suggest if you go with a language similar to C for example, that most of the language is the same as the one you're modeling from (C). I think operator precendence is something you worry about later -- first figure out how you're going to even use a stack, and use no precedence as a placeholder.