C2G: Difference between revisions

1 byte removed ,  9 June 2020
m
no edit summary
(Add section about basic syntax (RPN))
mNo edit summary
Line 64: Line 64:


=== Syntax ===
=== Syntax ===
The syntax of the .c2m file appears to be a mix of [Reverse Polish Notation](https://en.wikipedia.org/wiki/Reverse_Polish_notation) expressions and simple statements.  For example, to set the global "flags" variable to (reg1 + 42) * 3, you would write:
The syntax of the .c2m file appears to be a mix of [https://en.wikipedia.org/wiki/Reverse_Polish_notation Reverse Polish Notation] expressions and simple statements.  For example, to set the global "flags" variable to (reg1 + 42) * 3, you would write:
   reg1 42 + 3 * flags =
   reg1 42 + 3 * flags =


trusted-editors
10

edits