complexLiteral method

Parser<ConstantNode> complexLiteral()
inherited

Implementation

Parser<ConstantNode> complexLiteral() => [
  ref0(floatLiteral),
  ref0(decimalLiteral),
].toChoiceParser().seq(pattern('jJ')).flatten().map((s) => ConstantNode(s));