Skip to content

Commit

Permalink
strip fancy api for now
Browse files Browse the repository at this point in the history
the api has an unsound problem. The `Parser` trait is implemented on the
`&Operator` but inside `parse_next` a mutable ref and
`ReffCell::borrow_mut` are used which can lead to potential problems.

We can return to the API later. But for now lets keep only the essential
algorithm and pass affix parsers as 3 separate entities

Also add left_binding_power and right_binding_power to the operators
based on
winnow-rs#614 (comment)
  • Loading branch information
39555 committed Nov 16, 2024
1 parent d9a023c commit ff8dfe8
Showing 1 changed file with 69 additions and 322 deletions.
Loading

0 comments on commit ff8dfe8

Please sign in to comment.