getRuleLexemes method

List<String> getRuleLexemes(
  1. String ruleName
)

Computes all lexemes for a given rule name in the parse tree. Uses a visited set to protect against infinite recursion if the parse tree contains cycles.

Implementation

List<String> getRuleLexemes(String ruleName) =>
    _getRuleLexemes(ruleName, <ParseResult>{});