Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify generated code #61

Merged
merged 3 commits into from
Aug 14, 2023
Merged

Commits on Aug 13, 2023

  1. Configuration menu
    Copy the full SHA
    bc3d249 View commit details
    Browse the repository at this point in the history
  2. Allow position to target just at string end (past last char)

    tiny_markdown example fails otherwise.
    It were broken with mine
    cf8f511 "add more tests to position handling and fix them"
    funny-falcon committed Aug 13, 2023
    Configuration menu
    Copy the full SHA
    946f47c View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2023

  1. Simplify generated code

    - rename `get_byte`->`match_dot`, add `match_char_range`
    - abuse choice variants reset position by themself
    - abuse optional rule reset position by itself
    - simplify sequence with resetting position after block instead of after each element
    - unify `+` and numbered repetition
    - strip actions body
    
    Also fix issue with nested repetition collection:
    - names `_ary` and `_count` were erroneously reused
    funny-falcon committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    0c3d2fd View commit details
    Browse the repository at this point in the history