RPN output and flavor? #282
RobertZenz
started this conversation in
General
Replies: 1 comment 1 reply
-
Hi @RobertZenz , The open open parenthesis is used to mark the start (or end in evaluation stack) of the parameter list, this trick was introduced to support functions with a variable numbers of parameters. Each parameter token is assumed to be an expression on the stack, when it comes to evaluating the expression.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been looking at the RPN output that it is being generated (because of another project), and two questions popped into my mind:
"(" is used to denote the beginning of an argument list, however, "plain" RPN does not seem to state that. Is that from a certain RPN "flavor" or just for EvalEx?
Am I seeing this correct that the RPN output with multiple arguments to a function, the arguments are only separated by two arguments following each other? Assuming the following:
As far as I can see, the only way to separate the arguments is because two numbers are following each other "in the middle of the expression".
Beta Was this translation helpful? Give feedback.
All reactions