Whether a node only matches numbers: an optional sign, digits, and for a float a . and more
digits. digits is the most integer digits it can match, -1 for no limit.
number_shape :: (
node: *Node
) -> (signed: bool, digits: int, is_float: bool, ok: bool)
Whether a node only matches numbers: an optional sign, digits, and for a float a . and more
digits. digits is the most integer digits it can match, -1 for no limit.
Parameters
- node: *Node
Returns
- signed: bool
- digits: int
- is_float: bool
- ok: bool