generated from norskeld/serpent
-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: proof of concept #7
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- Use separate tsconfigs for build and tests + add path mappings. - Update jest config to support path mappings. - Update package scripts.
- Add basic parser state and result w/ helpers.
- Add test for public API. - Clean up re-exports.
Pull Request Test Coverage Report for Build 1450898329
💛 - Coveralls |
- Takes a parser and returns an object with a single 'method' — `with`, which consumes textual input and parses it.
norskeld
added a commit
that referenced
this pull request
Nov 11, 2021
* chore: vscode launch config * chore: ts & jest configs overhaul - Use separate tsconfigs for build and tests + add path mappings. - Update jest config to support path mappings. - Update package scripts. * feat(combinators/string): implement `string` combinator - Add basic parser state and result w/ helpers. * ci: use the correct script to generate coverage * feat(combinators/regexp): implement `regexp` combinator * refactor(tests): refactor, improve & restructure to mirror `src` - Add test for public API. - Clean up re-exports. * ci: get rid of matrix * feat(combinators/map): implement `map` and `mapTo` * feat(combinators/error): implement `error` combinator * feat(combinators/sequence): implement `sequence` combinator * refactor(tests): clean up and simplify tests * feat(combinators/nothing): implement `nothing` combinator * feat(combinators/choice): implement `choice` combinator * feat(combinators/take): implement `take*` combinators * feat(combinators/many): implement `many` combinator * feat(combinators/list): implement `list` combinator * feat(combinators/optional): implement `optional` combinator * feat(combinators/lazy): implement `lazy` combinator * feat(combinators/defer): implement `defer` combinator * feat(combinators/chain): implement `chainl` combinator * feat(run): implement simple parser runner - Takes a parser and returns an object with a single 'method' — `with`, which consumes textual input and parses it.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Combinators:
chainl
choice
(alt
)defer
error
lazy
many
map
andmapTo
nothing
(nil
)optional
(opt
)regexp
(re
)sequence
(seq
)string
(str
)takeLeft
(tleft
),takeMid
(tmid
) andtakeRight
(tright
)Also some kind of "runner" to wrap a given parser and run it.
Resolves #1