trivial-branch? ( nodes -- value ? )


Vocabulary
compiler.cfg.builder

Inputs
nodesa sequence of node instances


Outputs
valuethe pushed value or f
?a boolean


Word description
Checks whether nodes is a trivial branch or not. The branch is counted as trivial if all it does is push a literal value on the stack.

Examples
USING: compiler.cfg.builder compiler.tree prettyprint ; { T{ #push { literal 25 } } } trivial-branch? . .
t 25


Definition