pointlander / peg

Peg, Parsing Expression Grammar, is an implementation of a Packrat parser generator.
BSD 3-Clause "New" or "Revised" License
1.01k stars 120 forks source link

Remove unnecessary "if" block #131

Closed AsaiYusuke closed 1 year ago

AsaiYusuke commented 1 year ago

The result with the -switch option includes not only the decision based on the case, but also the duplication of "if" blocks that make the same result.

In this PR, I removed this unnecessary if-block.

pointlander commented 1 year ago

Thanks!