, so building one just holds the three arguments. It mirrors
CodeParser
sown
CodeParser
`TernaryNode
.
▪
The child list always has exactly three elements - the canonical case is a C-style conditional
c?a:b
, whose descriptor might be written
"?"
.
▪
op stays a language-native descriptor string rather than a Wolfram symbol.
▪
TernaryNode
is part of the standard vocabulary, but none of the five sample grammars (calculator, JSON, Lisp, lambda, Brainfuck) define a ternary operator, so they never emit one. The