Skip to content

Commit

Permalink
Enable packrat parsing to improve performance
Browse files Browse the repository at this point in the history
Ref. #305
  • Loading branch information
treiher committed Jun 26, 2020
1 parent 115153b commit 9eedf1a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rflx/parser/grammar.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
Literal,
Optional,
ParseFatalException,
ParserElement,
ParseResults,
QuotedString,
Regex,
Expand Down Expand Up @@ -70,6 +71,8 @@
Then,
)

ParserElement.enablePackrat()


def comma() -> Token:
return Suppress(Literal(",")).setName('","')
Expand Down

0 comments on commit 9eedf1a

Please sign in to comment.