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

Improved position API #146

Merged
merged 2 commits into from
Jan 19, 2023
Merged

Improved position API #146

merged 2 commits into from
Jan 19, 2023

Conversation

j-mie6
Copy link
Owner

@j-mie6 j-mie6 commented Jan 19, 2023

This adds a new position object to house the existing position functionality (deprecating the old functionality), and exposes a new offset combinator.

@j-mie6 j-mie6 merged commit 68db738 into staging/4.2 Jan 19, 2023
@j-mie6 j-mie6 deleted the minor/position branch January 19, 2023 15:41
j-mie6 added a commit that referenced this pull request Jan 22, 2023
* Version bump to 4.2

* Fixed badges

* Improved `position` API (#146)

* Added positions object

* deprecated old position stuff

* Stopped coverage run unless it's actually needed (pr to master, or on master)

* Fixed CI test coverage skipping

* Apparently base_ref is a different style to ref...

* Changed deprecation for Lexer inheritance to now, backport/4.1 needs to undo its deprecation

* Deprecated old error combinators, added unexpectedLegacy (#147)

* disabled test coverage for deprecated fastfail and fastunexpected

* Replaced deprecated implementations by slow (but stable versions)

* Error pattern combinators (#148)

* Added the VerifiedErrors extension class in patterns object, added correct partial amending semantics

* satisfied MiMA

* Changed names of new combinators, no need to jump through so many hoops now!

* verify -> verified

* Added intrinsic, needs testing

* Added correct partial amend behaviour onto deprecated deoptimised combinators

* Fixed bug where string terminal escapes relabelling

* removed partial amend semantics on verifiedX, because it's evil: we won't be exposing it!

* Added comment about the future improved partial amend

* Fix name of instruction

* Doc stubs

* Add `dislodge` and `amendThenDislodge` combinators (#149)

* Exposed amendThenDislodge and dislodge

* Added tests

* documentation

* Introduce `unexpectedWhenWithReason` (#151)

* Added combinator and generalised machinery

* Removed defunct combinators from lexer

* documentation

* tests written

* Added comment about spanWith, I'm not going to include it for now

* Renamed combinator, it's a bit better with the When at the end

* Documented the 1 indexing

* Added position tests

* position module description

* Added positions to rootdoc

* patterns documentation

* sbt and README updated

* update workflow

* Fixed style issues

* Added tests for verifiedFail

* Full testing of new verified errors combinators
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant