Tony Garnock-Jones
8a8facc080
More tests
2023-11-01 17:09:10 +01:00
Tony Garnock-Jones
d11ec61714
Restrict positions where commas may exist
2023-11-01 14:45:58 +01:00
Tony Garnock-Jones
fb63ac24b0
Merge branch 'main' into comment-syntax-hash-space
2023-10-31 21:15:41 +01:00
Tony Garnock-Jones
8276a50552
Repair error in Rust integer width calculation
2023-10-31 13:27:03 +01:00
Tony Garnock-Jones
cf50e00f80
Repair failing TS bigint tests
2023-10-31 12:53:54 +01:00
Tony Garnock-Jones
c053102d07
Merge branch 'main' into comment-syntax-hash-space
2023-10-31 10:51:36 +01:00
Tony Garnock-Jones
1a2657fe33
Simplify and firm up test suite. Known failures: TS, wrt bigint
2023-10-30 17:28:33 +01:00
Tony Garnock-Jones
7c0fc8f358
Repairs after merge
2023-10-29 22:32:27 +01:00
Tony Garnock-Jones
1aedfe46b7
Merge branch 'main' into comment-syntax-hash-space
2023-10-29 22:22:40 +01:00
Tony Garnock-Jones
b8fb7abab1
New tests and fixes for bad surrogate pair situations. Closes #43
2023-10-29 21:30:54 +01:00
Tony Garnock-Jones
9595872177
Test cases and implementation updates for delimiters following Boolean and SymbolOrNumber. Closes #47
2023-10-29 21:04:52 +01:00
Tony Garnock-Jones
ccf277cddb
Switch to "# "-prefixed text comment annotation syntax
2023-10-18 10:20:30 +02:00
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
a8d7fda89e
merge-preserves
2022-11-28 22:38:23 +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
850678a80a
New test of very long integer
2022-01-13 23:29:47 +01:00
Tony Garnock-Jones
32ebebec34
Move racket preserves-tool out of the way (in favour of the rust one)
2021-08-10 08:40:11 -04:00
Tony Garnock-Jones
9b100ab9aa
Tweak base64 variant handling
2021-08-02 11:41:45 +02:00
Tony Garnock-Jones
790782fc87
Hex and Base64 encodings in preserves-tool
2021-07-13 15:58:05 +02:00
Tony Garnock-Jones
f808e37e89
Fix very stupid mistake in order.rkt
2021-06-16 21:36:09 +02:00
Tony Garnock-Jones
0d4d1e738c
Coerce integers to floats/doubles during unparse
2021-06-09 20:02:06 +02:00
Tony Garnock-Jones
a4d61017d8
Repair error wrt `float` struct test
2021-06-08 09:26:35 +02:00
Tony Garnock-Jones
ade9b0a0f1
map-embeddeds
2021-06-08 09:26:10 +02:00
Tony Garnock-Jones
c05180c492
Some tool docs; improve help message of preserves-tool
2021-06-04 17:47:16 +02:00
Tony Garnock-Jones
b23acdaf5a
Default to text output from preserves-tool
2021-06-01 15:37:45 +02:00
Tony Garnock-Jones
cb88c587b6
Include a copy of samples.pr so that tests run OK on the buildserver
2021-05-26 21:11:45 +02:00
Tony Garnock-Jones
e6efd03be7
Introduce explicit embedded wrapper
2021-05-26 21:09:06 +02:00
Tony Garnock-Jones
7ab12108e4
Inline reader module; add port->preserves
2021-05-26 13:56:37 +02:00
Tony Garnock-Jones
6c9071fd88
Optionally omit commas when writing preserves
2021-05-25 11:05:16 +02:00
Tony Garnock-Jones
8b2aa0fb87
preserve=?
2021-05-25 11:05:03 +02:00
Tony Garnock-Jones
5c644624c4
detect-preserve-syntax, file->preserves
2021-05-25 11:04:51 +02:00
Tony Garnock-Jones
4ed8fd2c92
Add "annotations" procedure
2021-05-25 11:02:36 +02:00
Tony Garnock-Jones
e4a2503899
The Great Renaming: Pointer -> Embedded
2021-05-17 14:54:06 +02:00
Tony Garnock-Jones
c27aa7579e
Repair detection of "easily-printable" symbols
2021-03-08 15:31:50 +01:00
Tony Garnock-Jones
532e811894
Introduce pointers
2021-01-29 12:03:28 +01:00
Tony Garnock-Jones
2c5ed693f5
Tool works on multiple inputs now
2021-01-23 22:54:27 +01:00
Tony Garnock-Jones
8459521db5
No more `StreamingTest`s
2021-01-23 22:54:27 +01:00
Tony Garnock-Jones
749747ca05
Remove #:read-annotations?, to ensure a consistent output format from the reader
2021-01-23 22:54:27 +01:00
Tony Garnock-Jones
77fd8e86bf
Ah, of course a 0-byte integer has value 0
2021-01-23 22:54:27 +01:00
Tony Garnock-Jones
85fe7b3b07
Update Racket implementation
2021-01-23 22:54:27 +01:00
Tony Garnock-Jones
c4f90ef86b
Remove placeholders from spec and implementations 5/5
...
Update Racket implementation: remove placeholders; reject zero-length
streamed binary chunks.
2020-05-28 23:23:19 +02:00
Tony Garnock-Jones
8e0ab95d82
Autodetectability of binary vs text; documented test case schema a little
2020-05-13 12:56:13 +02:00
Tony Garnock-Jones
d883ad9a75
Move racket implementation one subdirectory deeper, to allow package name inference to work
2020-04-27 21:07:20 +02:00