repeatLexer top-level property

Parser<RepeatParser> repeatLexer
final

identifies repeats

Implementation

final Parser<RepeatParser> repeatLexer =
    (string('repeat(') | string('.repeat(')).map((_) => RepeatParser());