boolLiteral method

Parser<Expression> boolLiteral()

Implementation

Parser<Expression> boolLiteral() =>
    (string('true').or(string('false')))
        .mapWithPosition((v, start, end) =>
    Literal(v == 'true', v)..start = start..end = end);