Skip to content

Tags: pointfreeco/swift-parsing

Tags

0.14.1

Toggle 0.14.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Attempt to safely bitcast for printing of parameter packs (#369)

0.14.0

Toggle 0.14.0's commit message
Run swift-format

0.13.0

Toggle 0.13.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Bump to Case Paths 1.0 (#306)

0.12.1

Toggle 0.12.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Fix `Formatted` parser (#301)

* Fix `Formatted` parser

It should only consume the match range.

* wip

0.12.0

Toggle 0.12.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Swift 5.8 Support (#289)

* Swift 5.8 Support

Co-authored-by: Jaap Wijnen <jaapjaap@passivelogic.com>

* wip

* wip

* wip

* wip

* wip

* omit some benchmarks from swift 5.7

* wip

* FromSubstring ParseBuilder needs Substring as Input (#292)

* Downstream ParseBuilder should use Downstream.Input as Input (#291)

* Downstream ParseBuilder should use Downstream.Input as Input

The ParseBuilder is for Downstream so it should use it’s input. Or Upstream.Output as pipe runs the downstream parser on the output of the upstream parser. Which is why Upstream.Output == Downstream.Input.

With the 5.8 changes pipe uses the wrong input here. This only causes issues, if Upstream and Downstream have a different Input type.

* Pipe - Use Upstream.Output instead of Downstream.Input

* wip

* wip

* wip

* wip

* wip

* fix

* wip

---------

Co-authored-by: Jaap Wijnen <jaapjaap@passivelogic.com>
Co-authored-by: Brandon Williams <mbrandonw@hey.com>
Co-authored-by: Kai Oelfke <KaiOelfke@users.noreply.github.com>

0.11.0

Toggle 0.11.0's commit message
Run swift-format

0.10.0

Toggle 0.10.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Add minimum platform requirements (#237)

0.9.2

Toggle 0.9.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Add `Body()` parser (#205)

* Add `Body()` parser

* wip

* wip

0.9.1

Toggle 0.9.1's commit message
Remove warning

0.9.0

Toggle 0.9.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Parser-printers (#194)

* wip

* don't backtrack

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* rank one of errors

* rank errors by most processed

* nested

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* from

* wip

* wip

* wip

* Update benches

* wip

* idiomatic

* wip

* wip

* wip

* truncate

* wip

* wip

* wip

* wip

* clean up

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* Some docs and update tests to use public conversion

* removed testable imports

* lots of docs

* wip

* wip

* wip

* many terminator failure

* wip

* add loop error

* force MapConversion to work only on printers

* bye bye exactly

* wip

* wip

* Added reversion to original if any parsers in `Zip` variations throw an error (#107)

* Added reversion to original if any parsers in `Zip` variations throw an error.

* Updated ParserBuilderTests to check correct consumption of the input

* wip

* fix

* wip

* wip

* wip

* wip

* wip

* wip

* fix

* wip

* wip

* wip

* wip

* Bump package tools version

* wip

* fix

* backtrack printing

* wip

* wip

* wip

* wip

* wip

* New VoidMap parser and updated race parser.

* wip

* pullback

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* docs

* wip

* wip

* wip

* wip

* wip

* wip

* wiop

* print tests for PrefixUpTo/Through

* Printer prepending instead of appending (#145)

* Pointing `swift-custom-dump` to the "main" branch, since `0.4.0` hasn't been released publicly yet.

* Switched printing to `prepend` rather than `append`

Consequentially, all parsers that compose multiple parsers work backwards through provided parsers, and the `input` is built up from the back to the front.

This allows print to check that the output is correct for cases like `Rest`, `Prefix`, `Not`, and `Peek`.

* Added `Many` tests, fixed terminator bug

* Whitespace cleanup

* Fixed typo in test name.

* Updated `End` to check input when printing.

Added related tests.

* Switched `Literal` printing to append rather than insert

They now append into a copy of themselves, then append the `input`.

* Updated `PrependableCollection` to use `append` internally

* Improved error output for OneOfMany

* Adds backtracking to `Optionally`

* Added unit test to check backtracking

* Updated the `testBacktracking` case

Makes it clearer under what circumstances it will fail without backtracking.

* Added backtracking to Optionally

Also updated documentation about backtracking in general.

* Removed incorrectly merged test case.

* Added `Expect`

Which can be both parsed and printed.

* Made the unexpected `Peek` success a passing test

Added notes about why it doesn't throw an error.

* wip

* wip

* wip

* wip

* wip

* Update README.md

Co-authored-by: Brandon Williams <135203+mbrandonw@users.noreply.github.com>

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* fixes

Co-authored-by: Stephen Celis <stephen@stephencelis.com>
Co-authored-by: Stephen Celis <stephen.celis@gmail.com>
Co-authored-by: Brandon Williams <135203+mbrandonw@users.noreply.github.com>

* wip

* wip

* Updates Optionally to throw any internal `wrapped.print(...)` error (#167)

* Pointing `swift-custom-dump` to the "main" branch, since `0.4.0` hasn't been released publicly yet.

* Made Optionally fail if the wrapped parser fails

Added test cases for printing, and example of failing an invalid print.

* Remove `.map` overload on Always

* wip

* wip

* Make Rest.print fail on empty output.

* roundtripping doc

* wip

* struct conversion docs

* rename .struct to .memberwise

* fixes

* lots of docs

* docs

* wip

* wip

* Revert "wip"

This reverts commit cde658d.

* Printer -> ParserPrinter

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* basic errors

* wip

* wip

* fix

* Simplify `Consumed`

* wip

* wip

* wip

* decumulator

* wip

* wip

* wip

* wip

* wip

* wip

* clean up

* wip

* wip

* wip

* wip

* wip

* wip

* fix

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* fix docc warnings

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* fix

Co-authored-by: Stephen Celis <stephen@stephencelis.com>
Co-authored-by: David Peterson <david@randombits.org>
Co-authored-by: Stephen Celis <stephen.celis@gmail.com>