Skip to contents

Returns a single space-separated string. Constants are formatted via format(); variables print as their name; each eml node emits an E after its operands. Matches the paper's RPN convention: for log(x), returns "1 1 x E 1 E E" (7 tokens, K=7).

Usage

eml_rpn(expr)

Arguments

expr

an EML expression.

Value

Character scalar.

See also

Other eml_inspectors: eml_K(), eml_depth(), eml_leafcount()

Examples

eml_rpn(quote(eml(x, 1))) # "x 1 E"
#> [1] "x 1 E"
eml_rpn(quote(eml(1, eml(eml(1, x), 1)))) # "1 1 x E 1 E E"
#> [1] "1 1 x E 1 E E"