c280135e4b
update readme to make it clear this is more or less a scratch repository.
CI / Lints and checks (push) Has been cancelled
CI / Test using Rust stable on macos-latest (push) Has been cancelled
CI / Test using Rust stable on ubuntu-latest (push) Has been cancelled
2024-12-25 13:47:09 +11:00
David Aguilar
9c90b43f3b
garden: add a remote for mkniewallner
CI / Lints and checks (push) Waiting to run
CI / Test using Rust stable on macos-latest (push) Waiting to run
CI / Test using Rust stable on ubuntu-latest (push) Waiting to run
2024-12-25 13:43:48 +11:00
David Aguilar
2fd31f4ba2
parser: elide the lifetime as suggested by clippy
2024-12-25 13:43:48 +11:00
David Aguilar
478ae92e41
garden: consolidate configuration into a single the top-level file
2024-12-25 13:43:48 +11:00
Mathieu Kniewallner
f6900ce9fe
docs: fix example
2024-12-25 13:43:48 +11:00
Ethiraric
368b865f2e
Add a lower-level YamlEmitter
.
2024-11-28 04:36:57 +01:00
Ethiraric
87e46b68a2
Reorder declarations.
2024-11-11 15:34:43 +01:00
Ethiraric
2e24853ef3
Minor documentation improvements in emitter.
2024-11-11 15:33:41 +01:00
Ethiraric
a8ee8c31c2
Change names to saphyr_serde
.
2024-10-26 00:13:20 +02:00
Ethiraric
71cb7f162f
Add @dtolnay's serde-yaml
in subdirectory.
2024-10-26 00:12:17 +02:00
Ethiraric
f09c879450
Squashed 'serde/' content from commit 2009506d
...
git-subtree-dir: serde
git-subtree-split: 2009506d33767dfc88e979d6bc0d53d09f941c94
2024-10-26 00:11:59 +02:00
Ethiraric
c81784cc01
Update to v0.0.3.
2024-10-24 18:38:46 +02:00
Ethiraric
dd10913840
Remove Cargo.lock
files.
2024-10-20 19:48:52 +02:00
Ethiraric
d295777899
Add changelog entries.
2024-10-20 18:53:32 +02:00
Ethiraric
62c10c012d
Run all tests on both StrInput and BufferedInput.
2024-10-20 18:32:39 +02:00
Ethiraric
ee10eebcc2
Add @eduardosm's UTF-8 tests.
2024-10-20 17:42:51 +02:00
Ethiraric
e6c4d042e4
Fix use of byte count instead of char count.
2024-10-20 16:57:16 +02:00
Ethiraric
e925308e82
Match error message in fuzzing test.
2024-10-20 16:56:58 +02:00
Ethiraric
9812dacc28
Fuzz with both StrInput
and BufferedInput
.
2024-10-20 16:21:25 +02:00
Ethiraric
9d1bd1c929
Fix nightly warning.
2024-10-20 16:20:52 +02:00
Ethiraric
0f71c8e68a
Run yaml-test-suite over both input variants.
2024-10-20 16:09:29 +02:00
Ethiraric
6069e1d0e3
Add and fix another fuzz test.
2024-10-19 19:08:28 +02:00
Ethiraric
d997b53c8d
Add fuzz test and fix it.
2024-10-19 18:53:51 +02:00
Ethiraric
e052a63458
Test issues input with both str/iter variants.
2024-10-19 18:53:36 +02:00
Ethiraric
ccf6394d9f
Add more debug prints.
...
When running tests that involve 2 runs of the parser, one with the
`StrInput` and another with the `BufferedInput`, the output of debug
prints can be confusing as it's unclear where one parser ends parsing
and the other starts. These 2 prints allow us to know when each is
started and, if one errors but not the other, to know which did.
2024-10-19 18:53:18 +02:00
Ethiraric
3358629dd1
Fix infinite loop on {...
.
2024-10-19 04:14:50 +02:00
Ethiraric
a704716f86
Add just fuzz
convenience command.
2024-10-19 03:29:01 +02:00
jneem
42c84079c3
Add fuzzing ( #15 )
2024-10-19 03:22:23 +02:00
Ethiraric
3cade858fa
Add test for issue 13, just in case.
2024-10-17 20:02:09 +02:00
Joe Neeman
982407774e
Add regression test for infinite loop.
2024-10-17 19:36:20 +02:00
Ethiraric
26707be38d
Move CI from subprojects to root.
2024-10-17 19:25:19 +02:00
Ethiraric
7fa54dcb24
Run issue tests through BufferedInput
.
2024-10-17 19:18:45 +02:00
Ethiraric
55858d15d9
Add Parser::new_from_iter
.
2024-10-17 19:17:26 +02:00
Ethiraric
53dc2b9aba
Add a justfile
with before_commit
at the root.
2024-10-13 16:24:28 +02:00
Ethiraric
979f8eabf9
Fix rustdoc warnings.
...
This requires making the `input` mod public, as some items in
`char_traits` are referenced in `Input`'s function doccomments.
The items have been exposed in `input` directly, rather than in a
`saphyr::input::char_traits` submod.
2024-10-13 16:21:37 +02:00
Ethiraric
9e3317c179
Add tools to the workspace.
2024-10-13 16:21:03 +02:00
Ethiraric
95fe3fea16
Fix issue with ---
in the middle of a scalar.
...
This issue arises in the `yaml-test-suite` not in a test, but rather in
the test description files themselves. Since we now use the library
itself to load the test files, this made the `yaml-test-suite` fail.
2024-10-13 16:19:58 +02:00
Ethiraric
dc429b7ef7
Deduplicate tools.
2024-10-13 16:18:44 +02:00
jneem
d82866555a
Look ahead before testing for EOF. ( #12 )
...
Look ahead before testing for EOF.
This fixes panics in saphyr's test_multiline_trailing_newline and
test_multiline_leading_newline tests, in which `self.input.next_is_z`
would be called on an empty buffer and panic in `peek`
2024-10-13 14:48:06 +02:00
jneem
434f4521dd
Better tracking for beginning and ending positions of mappings. ( #10 )
...
Previously, we often used the scanner state to infer the positions of
mappings. This is sometimes wrong, because the scanner has already
scanned ahead by the time the mapping is parsed.
This commit adds a check to the test suite, asserting that parser event
positions are all observed in order, and it fixes the scanner and parser
to make the new check pass.
2024-10-13 14:47:41 +02:00
Eduardo Sánchez Muñoz
833343757a
Make StrInput
type publicly visible
...
For cases where you might need to, e.g, define a function with a `Parser<StrInput<'_>>` as argument
2024-10-13 14:43:33 +02:00
Ethiraric
59048f68ae
Code cleanup after monorepo-ing.
2024-10-13 14:42:50 +02:00
Ethiraric
8ee4921e5e
Some cleanup after monorepo-ing.
...
- Update root `README.md`
- Remove `bench/` tools we no longer need
- Remove `.gitmodules` for `yaml-test-suite`
2024-10-12 16:29:33 +02:00
Ethiraric
3f9b8c22a3
Add yaml-test-suite
as subtree.
2024-10-12 16:15:46 +02:00
Ethiraric
e303cbe543
Squashed 'parser/tests/yaml-test-suite/' content from commit ccfa74e5
...
git-subtree-dir: parser/tests/yaml-test-suite
git-subtree-split: ccfa74e56afb53da960847ff6e6976c0a0825709
2024-10-12 16:15:38 +02:00
David Aguilar
4e781f56c9
cargo: merge Cargo.toml files into a cargo workspaces
2024-10-04 00:35:06 -07:00
David Aguilar
3978720dc9
.gitignore: merge gitignores into a single top-level file
2024-10-04 00:34:35 -07:00
Ethiraric
57d2ff4b19
Convert to monorepo.
2024-10-03 13:55:58 +02:00
Ethiraric
5be327f855
Add changelog entry for last commit.
2024-09-25 16:32:56 +02:00
Ethiraric
fd5a606b19
Make LoadError
Clone
.
...
Fixes #11
2024-09-25 16:31:59 +02:00