User Tools

Site Tools


xrpl:rpl_language_overview

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
xrpl:rpl_language_overview [2019/05/05 15:31] – [Code translator] fleshed out. Karsten75xrpl:rpl_language_overview [2019/08/27 06:27] – Note Symbol ALiasing relevant to 4RPL only Karsten75
Line 115: Line 115:
 Both the above statements assign 7 to the variable "x". Choose which format you prefer and you think makes your code most readable - then be consistent. :) Both the above statements assign 7 to the variable "x". Choose which format you prefer and you think makes your code most readable - then be consistent. :)
  
 +==== Symbol Aliasing ====
 +
 +Many arithmetic operators  can be substituted with shorthand symbols **(4RPL only)**. 
 +
 +^ Operator ^ Symbol ^
 +| ADD | + | 
 +| SUB | - | 
 +| MUL | * | 
 +| DIV | / | 
 +| MOD | % | 
 +| AND | && | 
 +| OR  | %%||%% | 
 +| NOT | ! | 
 +| POW | %%^%% | 
 +| GT  | > | 
 +| GTE | >=| 
 +| LT  | < | 
 +| LTE | <= |  
 +| EQ  | == | 
 +| NEQ | != | 
 + 
 ==== Code translator ==== ==== Code translator ====
 [[https://github.com/Arin112}Arin112]] wrote a code translator that can translate in-fix ((Infix notation is the notation commonly used in arithmetical and logical formulae and statements. It is characterized by the placement of operators between operands—"infixed operators"—such as the plus sign in 2 + 2.)) code to the xRPL post-fix notation.  [[https://github.com/Arin112}Arin112]] wrote a code translator that can translate in-fix ((Infix notation is the notation commonly used in arithmetical and logical formulae and statements. It is characterized by the placement of operators between operands—"infixed operators"—such as the plus sign in 2 + 2.)) code to the xRPL post-fix notation.