Commit Graph

288 Commits

Author SHA1 Message Date
Tony Garnock-Jones 3b89cbe880 Switch back to prefix-format binary annotations 2023-10-15 00:35:25 +02:00
Tony Garnock-Jones b7a2acf65b Update implementations for simplified binary syntax.
As part of this, I noticed a problem when updating the Rust
implementation. With the BF..84 design for annotations, if you are
wanting to skip annotations—for example, if you're parsing
incrementally, SAX-style, ignoring annotations—then with any
parenthesised form you have to remember to check for and skip something
after reading a term. This is awkward, so I want to revisit the design
of annotations and go back to the prefix-form (85..) of the
current-mainline design.
2023-10-14 21:29:09 +02:00
Tony Garnock-Jones 930964ca05 cargo fmt 2023-07-21 18:15:30 +02:00
Tony Garnock-Jones 32ee76f7d8 Add rustfmt_skip to generated files 2023-07-21 18:14:47 +02:00
Tony Garnock-Jones 08e62fd681 Merge remote-tracking branch 'origin/mr/11' 2023-07-21 17:42:26 +02:00
Bruce Mitchener a618987545 preserves-schema: Remove useless `vec!`.
Since `decode_lit` takes a `&[u8]`, no `vec!` is needed here.
2023-07-17 11:59:43 +07:00
Bruce Mitchener acfacd636b preserves-tools: deps: Update to clap 3 release.
This was previously using a beta release. This helps move towards
updating to the current v4 release.
2023-07-17 11:46:48 +07:00
Tony Garnock-Jones 26d65a4dd9 Release independent packages
preserves-schema@3.2.1

Generated by cargo-workspaces
2023-02-07 11:13:12 +01:00
Tony Garnock-Jones d73118fc77 Update implementations 2023-02-07 10:42:30 +01:00
Tony Garnock-Jones c5974e0b00 Release independent packages
preserves-schema@3.2.0

Generated by cargo-workspaces
2023-01-31 15:08:45 +01:00
Tony Garnock-Jones b413d458f0 Include bundle (binary-encoded) in compiled output 2023-01-31 15:08:29 +01:00
Tony Garnock-Jones a51fc34700 Release independent packages
preserves-path@4.1.0
preserves-schema@3.1.0

Generated by cargo-workspaces
2023-01-28 22:39:11 +01:00
Tony Garnock-Jones 7f387d6d71 Support xrefs in schema compiler; offer Arc for languages 2023-01-28 22:38:14 +01:00
Tony Garnock-Jones 04d8201e08 Release independent packages
preserves@3.0.0
preserves-path@4.0.2
preserves-schema@3.0.3
preserves-tools@3.0.2

Generated by cargo-workspaces
2023-01-16 14:56:04 +01:00
Tony Garnock-Jones 5bee5fb247 Major bump to rust preserves because of the new numerics/symbol syntax 2023-01-16 14:55:08 +01:00
Tony Garnock-Jones 560267d0d4 Release independent packages
preserves-schema@3.0.2

Generated by cargo-workspaces
2023-01-08 13:13:00 +01:00
Tony Garnock-Jones fcf58f0dc0 Reader, it was *not* right. 2023-01-08 13:11:49 +01:00
Tony Garnock-Jones 269ed2391a Repair text syntax for numbers and symbols. Closes #19/#36/#37/#38.
Numbers and (bare) Symbols are now disambiguated after reading, which
permits leading `+`, leading `0`, and a wider range of acceptable
Symbols.

Updates spec text, test cases, and implementations. Some ancillary fixes
to Python's comparison routines are also included.
2022-11-08 19:56:24 +01:00
Tony Garnock-Jones 351feba8d2 Benchmark profiling 2022-10-29 13:16:52 +02:00
Tony Garnock-Jones fd676e8f53 Allow ag to ignore scratch directory 2022-10-26 16:52:55 +02:00
Tony Garnock-Jones 0b94af3a52 Release independent packages
preserves@2.5.0

Generated by cargo-workspaces
2022-10-26 16:01:48 +02:00
Tony Garnock-Jones 52de025c21 Parsing and reading via TextReader/TextWriter 2022-10-26 16:00:48 +02:00
Tony Garnock-Jones b5e2eeae46 Release independent packages
preserves@2.4.1
preserves-path@4.0.1
preserves-schema@3.0.1
preserves-tools@3.0.1

Generated by cargo-workspaces
2022-10-26 13:31:17 +02:00
Tony Garnock-Jones 1804fa3918 Prepare to try out cargo-workspaces as release tool 2022-10-26 13:30:45 +02:00
Tony Garnock-Jones ad1aec3d89 Reject odd number of hexits rather than ignoring the lone trailing hexit 2022-10-26 12:49:49 +02:00
Tony Garnock-Jones fd121cfb4c Bump versions 2022-10-24 14:39:07 +02:00
Tony Garnock-Jones f88e3ca85c Unused arg 2022-10-24 14:38:51 +02:00
Tony Garnock-Jones be7b8e6477 Adjust quantification for Deserialize trait 2022-10-24 14:30:43 +02:00
Tony Garnock-Jones c49b8673f7 READMEs for Schema implementations 2022-06-09 13:49:59 +02:00
Tony Garnock-Jones 0bc742d7a2 (cargo-release) version {{version}} 2022-06-08 16:27:04 +02:00
Tony Garnock-Jones 7fdf50b963 Support comma style option to preserves-tool 2022-06-08 16:10:33 +02:00
Tony Garnock-Jones 00eb9e97b6 Implement count function 2022-06-06 15:28:11 +02:00
Tony Garnock-Jones 80e6e4aa3f Prepare for move away from preserves.gitlab.io/preserves toward preserves.dev 2022-05-24 13:32:54 +02:00
Tony Garnock-Jones 3d1b151462 (cargo-release) version {{version}} 2022-01-19 14:27:14 +01:00
Tony Garnock-Jones 261395beaf `rec!` macro; access to `io::Write` inside `Writer`s 2022-01-19 14:25:52 +01:00
Tony Garnock-Jones 76ca8fe12b (cargo-release) version {{version}} 2022-01-14 15:49:36 +01:00
Tony Garnock-Jones 35e5d54683 Silence warning 2022-01-14 15:48:22 +01:00
Tony Garnock-Jones 8f7ef3ff69 Repair case-conversion of type names for names like "IOList" -> "IoList" 2022-01-14 15:48:10 +01:00
Tony Garnock-Jones ed63d46348 Experimental schema interpreter and preserves-path support 2021-11-16 22:10:04 +01:00
Tony Garnock-Jones b38d180956 Targets for uniformish cross-build 2021-11-16 22:06:56 +01:00
Tony Garnock-Jones b7c9efc3a1 Explicitly select beta.2 of clap, since beta.5 isn't compiling for me 2021-11-12 13:35:37 +01:00
Tony Garnock-Jones b2c3032e7a arm-binary target 2021-10-08 16:56:35 +02:00
Tony Garnock-Jones 668ac9f680 (cargo-release) version {{version}} 2021-10-04 14:32:51 +02:00
Tony Garnock-Jones 77c305a4cf into_string, into_bytestring, into_symbol 2021-10-04 14:28:56 +02:00
Tony Garnock-Jones 5260f85952 Fix value_owned for ArcValue 2021-10-02 11:49:40 +02:00
Tony Garnock-Jones b73e0c7025 (cargo-release) version {{version}} 2021-09-30 13:12:27 +02:00
Tony Garnock-Jones e2a4e3d6cb Inline the heck out of the binary codec for a ~5% speedup 2021-09-30 13:12:06 +02:00
Tony Garnock-Jones e31cf739df (cargo-release) version {{version}} 2021-09-30 12:45:19 +02:00
Tony Garnock-Jones 486a631e73 Add strip_annotations function and expose it in preserves-tool 2021-09-30 12:41:29 +02:00
Tony Garnock-Jones 29a882f953 Shrink commonest annotationless representation 2021-09-30 11:15:26 +02:00