This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
xrpl:rpl_language_overview [2019/07/26 15:52] – add Symbol Aliasing Karsten75 | xrpl:rpl_language_overview [2019/12/02 09:14] – Karsten75 | ||
---|---|---|---|
Line 8: | Line 8: | ||
When we talk about common aspects of all the languages, it's easiest to write xRPL where the " | When we talk about common aspects of all the languages, it's easiest to write xRPL where the " | ||
- | xRPL programming is similar to programming a HP calculator or Forth language programming. If this is not something you have done, read on for a brief introduction to xRPL and stack-based programming. <wrap info>For a more detailed CRPL explanation, | + | xRPL programming is similar to programming a HP calculator or Forth language programming. If this is not something you have done, read on for a brief introduction to xRPL and stack-based programming. <wrap info>For a more detailed CRPL explanation, |
An xRPL instruction either use arguments (data) that is on a " | An xRPL instruction either use arguments (data) that is on a " | ||
Line 117: | Line 117: | ||
==== Symbol Aliasing ==== | ==== Symbol Aliasing ==== | ||
- | Many arithmetic operators | + | Many arithmetic operators |
- | ^ Operator | + | ^ Operator ^ Symbol ^ |
- | | ADD | "+" | + | | ADD | + | |
- | | SUB | "-" | + | | SUB | - | |
- | | MUL | "*" | + | | MUL | * | |
- | | DIV | "/" | + | | DIV | / | |
- | | MOD | "%" | + | | MOD | % | |
- | | AND | "&&"| | + | | AND | && | |
- | | OR | "%%||%%"| | + | | OR | %%||%% | |
- | | NOT | "!" | + | | NOT | ! | |
- | | POW | "^" | + | | POW | %%^%% | |
- | | GT | ">" | + | | GT | > | |
- | | GTE | ">="| | + | | GTE | >=| |
- | | LT | "<" | + | | LT | < | |
- | | LTE | "<=" | + | | LTE | <= | |
- | | EQ | "==" | + | | EQ | == | |
- | | NEQ | "!=" | | | + | | NEQ | != | |
==== Code translator ==== | ==== Code translator ==== |