j-mie6 / parsley

A fast and modern parser combinator library for Scala
https://j-mie6.github.io/parsley/
BSD 3-Clause "New" or "Revised" License
175 stars 15 forks source link

Removed the type casts within the `expr` machinery #173

Closed j-mie6 closed 1 year ago

j-mie6 commented 1 year ago

By defining extra private functional on the Fixity type itself, it is possible to avoid the asInstanceOf and pattern matching previously used to define the logic for precedence (namely, the casts in GOps)

codeclimate[bot] commented 1 year ago

Code Climate has analyzed commit f2b01ee4 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 91.0% (0.0% change).

View more on Code Climate.