decimalLiteral method

Parser<ConstantNode> decimalLiteral()
inherited

Implementation

Parser<ConstantNode> decimalLiteral() =>
    (digit() & (digit() | char('_')).star()).flatten().map(
      (s) => ConstantNode(int.parse(s.replaceAll('_', ''))),
    );