@dice-roller/rpg-dice-roller / ast / binary
Function: binary() ​
binary(
op,left,right):BinaryNode
Defined in: src/ast/builders.ts:167
A binary operation, e.g. binary("+", pool(2, 6), 3) for 2d6+3.
Parameters ​
op ​
"+" | "-" | "*" | "/" | "%" | "^"