L1VM - RPN math
L1VM RPN math expressions
Ich entwickelte einen neuen Parser für RPN (reversed polish notation) Matheausdrücke. Hier sind zwei Beispiele:
{a = x y + z x * *} {a = x y z + *}
In infix Schreibweise sieht das dann so aus:
In infix writing it looks like:
a = (x + y) * z * x a = (y + z) * x
I developed a new parser for RPN (reversed polish notation) math expressions.
Above are two examples.
Update: automatisches umwandeln von infix zu RPN:
automatic conversion from infix to RPN:
{ret = (y + z) * ((z + y) * foo)} {ret = (y * foo * z)}
Wenn der Parser die runden Klammern findet: “()”, dann wird von infix zu RPN umgewandelt.
If the parser finds the round brackets: “()” then it will convert from infix to RPN.