Commit Graph

883 Commits

Author SHA1 Message Date
Tony Garnock-Jones ad3da3896b Publish
- @preserves/core@0.22.1
 - @preserves/schema@0.22.4
2023-10-02 21:00:09 +02:00
Tony Garnock-Jones c395265c3b Generalize preserves formatter 2023-10-02 20:59:14 +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 54b9bb6f25 Repair machineword reads 2023-06-23 22:34:38 +02:00
Tony Garnock-Jones ae02cff81d Fix annotations; progress on integers 2023-06-23 22:28:31 +02:00
Tony Garnock-Jones 3c76819687 Annotations draft 2023-06-23 16:54:19 +02:00
Tony Garnock-Jones 9c5368b69b Binary writer draft 2023-06-23 15:40:05 +02:00
Tony Garnock-Jones 60f23286e2 Fix EOF handling; BigNum 2023-06-23 09:07:19 +02:00
Tony Garnock-Jones 8788a72a8d Binary codec (not yet working) 2023-06-21 00:45:04 +02:00
Tony Garnock-Jones 3c8d9dcf98 Google Test C++ library 2023-06-19 23:53:23 +02:00
Tony Garnock-Jones 1f06ff9422 Publish
- @preserves/core@0.22.0
 - @preserves/schema@0.22.3
2023-06-16 12:45:18 +02:00
Tony Garnock-Jones ac6a138a00 forEachEmbedded 2023-06-16 12:44:22 +02:00
Tony Garnock-Jones 69010737b9 Begin sketch of C++ implementation 2023-06-12 23:16:47 +02:00
Tony Garnock-Jones fe12a8d775 Publish
- @preserves/schema@0.22.2
2023-06-09 16:46:07 +02:00
Tony Garnock-Jones b41c0125b0 Treat `arguments` as a JavaScript keyword too. 2023-06-09 16:44:34 +02:00
Tony Garnock-Jones 0081e290ca Publish
- @preserves/core@0.21.1
 - @preserves/schema@0.22.1
2023-05-12 11:26:47 +02:00
Tony Garnock-Jones 134de6989b parse, parseAll 2023-05-12 11:26:06 +02:00
Tony Garnock-Jones a167e97c00 ValueClass 2023-05-12 11:25:56 +02:00
Tony Garnock-Jones 7e088ef8b3 Remove .dir-locals.el (now that we have lsp-clients-typescript-prefer-use-project-ts-server) 2023-05-05 14:03:15 +02:00
Tony Garnock-Jones 10768bd83e Publish
- @preserves/core@0.21.0
 - @preserves/schema@0.22.0
2023-05-03 10:26:44 +03:00
Tony Garnock-Jones 741b664970 Make field numbers accessible 2023-05-03 10:22:47 +03:00
Tony Garnock-Jones d53ca13cd7 Improve links a little 2023-03-17 15:45:19 +01:00
Tony Garnock-Jones 316c2dd407 Document preserves.schema 2023-03-17 15:24:53 +01:00
Tony Garnock-Jones fac24309aa Remove code snippets from heading (because otherwise it renders funny in the toc) 2023-03-17 10:34:02 +01:00
Tony Garnock-Jones b74f9a708b Always better to use quotes 2023-03-17 10:30:31 +01:00
Tony Garnock-Jones 1fc45a5365 Repair symlink 2023-03-17 10:29:44 +01:00
Tony Garnock-Jones d89896a6a7 Be cleverer about unreleased doc versions 2023-03-17 10:26:53 +01:00
Tony Garnock-Jones 8c033fa111 Document and repair path.py 2023-03-17 10:21:56 +01:00
Tony Garnock-Jones 2a7eaa5ae3 Versioned docs! 2023-03-17 09:07:53 +01:00
Tony Garnock-Jones 5314958086 Enable last-modified-date 2023-03-17 00:31:47 +01:00
Tony Garnock-Jones e96faede83 site_url, repo_url 2023-03-17 00:26:23 +01:00
Tony Garnock-Jones 9645c11051 serve-docs target 2023-03-17 00:22:24 +01:00
Tony Garnock-Jones 019cd35932 Bump version 2023-03-17 00:07:49 +01:00
Tony Garnock-Jones a4403cf6f3 More docs. That's the lot for python now except path and schema. 2023-03-17 00:07:27 +01:00
Tony Garnock-Jones c7687772b0 Update compare.py docs 2023-03-16 21:57:21 +01:00
Tony Garnock-Jones 514dc04920 Tweak 2023-03-16 21:43:47 +01:00
Tony Garnock-Jones a6c98159ce Another stab at long_description for python package 2023-03-16 21:42:25 +01:00
Tony Garnock-Jones 47e579068a Fix long_description 2023-03-16 21:38:45 +01:00
Tony Garnock-Jones 6b2b266a8f python 0.17.1 2023-03-16 21:31:37 +01:00
Tony Garnock-Jones 2bad9a6bca README.md for python 2023-03-16 21:31:24 +01:00
Tony Garnock-Jones 2ab814333c Deploy docs 2023-03-16 21:19:42 +01:00
Tony Garnock-Jones e3e1dd4944 Better __init__.py docs 2023-03-16 21:04:37 +01:00
Tony Garnock-Jones 7cbd1a2813 Docs for preserves.binary; better encoding annotations with canonicalization 2023-03-16 20:55:49 +01:00
Tony Garnock-Jones 99258be1ef Fix doctest module loading to avoid double-creation of modules 2023-03-16 20:12:17 +01:00
Tony Garnock-Jones 031575ad82 Python preserves doctest runner, and mkdocs documentation stubs 2023-03-16 17:53:02 +01:00
Andrew Elgert b1f9eb45d2 Compiler can load from file-like objects 2023-03-14 11:45:30 -04:00
Tony Garnock-Jones 8dc51d70e7 Publish
- @preserves/schema@0.21.10
2023-02-11 18:10:54 +01:00
Tony Garnock-Jones d027fc4ed6 Repair setof codegen 2023-02-11 18:10:36 +01:00
Tony Garnock-Jones 55d55d9ccf Publish
- @preserves/schema@0.21.9
2023-02-11 17:29:46 +01:00
Tony Garnock-Jones cd996bcbc7 Repair set schema parsing 2023-02-11 17:28:03 +01: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 eef675cc0c Bump python version 2023-02-07 10:52:09 +01:00
Tony Garnock-Jones 156777cfa6 Publish
- @preserves/core@0.20.6
 - @preserves/schema@0.21.8
2023-02-07 10:50:12 +01:00
Tony Garnock-Jones d73118fc77 Update implementations 2023-02-07 10:42:30 +01:00
Tony Garnock-Jones 23dbf3cb43 Repair multiple-glob common path usage. Closes #39 2023-02-04 17:07:16 +01:00
Tony Garnock-Jones 333503c772 Update dependencies 2023-02-04 11:58:51 +01:00
Tony Garnock-Jones 9559558831 Hack to allow external module paths to be symbols instead of strings 2023-02-02 21:56:12 +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 502e83c26d Publish
- @preserves/core@0.20.5
 - @preserves/schema@0.21.7
2023-01-05 15:14:06 +01:00
Tony Garnock-Jones 340f809c55 isSequence 2023-01-05 15:13:23 +01: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 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 4b98acf8ba preserves-python version 0.16.1 2022-07-22 10:24:30 +02:00
Tony Garnock-Jones 3544bf18fa Ugh, python 3.7 doesn't have the PEP 570 "/" positional-only syntax. 2022-07-22 10:23:54 +02:00
Tony Garnock-Jones 1f495eef1e Repair typo that caused annotations not to work properly with fromJS 2022-06-16 10:10:38 +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 aff94bbb2f python: bump version to 0.16.0 2022-06-08 16:23:56 +02:00
Tony Garnock-Jones 8b8da80f61 Explain why parsing failed 2022-06-08 16:22:10 +02:00
Tony Garnock-Jones 7fdf50b963 Support comma style option to preserves-tool 2022-06-08 16:10:33 +02:00
Tony Garnock-Jones 2e8d53c779 Another schema test 2022-06-07 21:59:05 +02:00
Tony Garnock-Jones 7ebe538c42 python: bump version to 0.15.0 2022-06-07 21:47:23 +02:00
Tony Garnock-Jones 34183a9519 Stub out some schema tests 2022-06-07 21:46:06 +02:00
Tony Garnock-Jones e019148065 Fix positional initializers for schema values, and allow keyword initializers 2022-06-07 21:45:56 +02:00
Tony Garnock-Jones c9c973ce9c Preserves-order for Python 2022-06-07 21:45:12 +02:00
Tony Garnock-Jones 00eb9e97b6 Implement count function 2022-06-06 15:28:11 +02:00
Tony Garnock-Jones 4ef1341883 Remove old import of distutils 2022-06-03 21:21:44 +02:00
Tony Garnock-Jones 2e50591946 python: Bump version 2022-06-03 21:14:24 +02:00
Tony Garnock-Jones c0d3f37905 python: merge(), and support for and-pattern unparsing 2022-06-03 21:13:59 +02:00
Tony Garnock-Jones 597e993c05 Support and-schemas in python 2022-06-03 16:50:03 +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 0b21fc4a3f Publish
- @preserves/schema@0.21.6
2022-05-04 09:29:19 +02:00
Tony Garnock-Jones 8595034190 Repair schema distribution 2022-05-04 09:28:49 +02:00
Tony Garnock-Jones b45306db03 Distribute schema.prs 2022-05-04 09:27:04 +02:00
Tony Garnock-Jones 859a88adc2 Publish
- @preserves/schema@0.21.5
2022-05-03 17:13:05 +02:00
Tony Garnock-Jones e3a1be80e9 Repair preserves-schema-ts watch mode 2022-05-03 17:12:34 +02:00
Tony Garnock-Jones 5d24902de1 Publish
- @preserves/core@0.20.4
 - @preserves/schema@0.21.4
2022-04-27 22:08:34 +03:00
Tony Garnock-Jones 800e9ccf80 Repair stringification of nontrivial embedded values 2022-04-27 22:07:53 +03:00
Tony Garnock-Jones 9c71df9abb PRESERVES_COMPACT 2022-03-04 09:18:59 +01:00
Tony Garnock-Jones 4a41fac6ec Crude measurement; multiple input values 2022-03-04 09:18:43 +01:00
Tony Garnock-Jones fad9111241 Utility for tagging 2022-02-11 11:57:29 +01:00
Tony Garnock-Jones 7f65f9ecb1 Add _ALL superclass for Enumeration subclasses, for @extend purposes 2022-02-11 11:56:08 +01:00
Tony Garnock-Jones 32544c544a Optional commas in pretty-printer 2022-02-11 11:38:29 +01:00
Tony Garnock-Jones 0f49b8b1b4 Python release 0.11.0 (canonicalizing binary encoder) 2022-02-09 15:05:55 +01:00
Tony Garnock-Jones a1f5a6ee13 Publish
- @preserves/core@0.20.3
 - @preserves/schema@0.21.3
2022-02-09 15:04:14 +01:00
Tony Garnock-Jones 356ff74058 Experimentally (?) use fromJS in stringify 2022-02-09 15:03:36 +01:00
Tony Garnock-Jones 21de8b799a Canonicalizing binary encoder 2022-02-09 14:59:50 +01:00
Tony Garnock-Jones 0596d877f8 Publish
- @preserves/core@0.20.2
 - @preserves/schema@0.21.2
2022-01-26 16:42:06 +01:00
Tony Garnock-Jones d9ee80093b Repair stringifyEmbeddedWrite 2022-01-26 16:41:16 +01:00
Tony Garnock-Jones a461657cde Publish
- @preserves/core@0.20.1
 - @preserves/schema@0.21.1
2022-01-26 16:03:33 +01:00
Tony Garnock-Jones 574209966b Better stringification 2022-01-26 16:03:13 +01:00
Tony Garnock-Jones c5094f8b8f Publish
- @preserves/core@0.20.0
 - @preserves/schema@0.21.0
2022-01-26 14:16:19 +01:00
Tony Garnock-Jones 0129901dab Javascript pretty-printer 2022-01-26 14:15:35 +01:00
Tony Garnock-Jones 6cd8cb2c37 Repair test 2022-01-24 13:41:58 +01:00
Tony Garnock-Jones bdbffad5d3 Update package.json script names 2022-01-24 13:39:19 +01:00
Tony Garnock-Jones 2c58066380 Publish
- @preserves/core@0.19.0
 - @preserves/schema@0.20.0
2022-01-24 13:01:17 +01:00
Tony Garnock-Jones f6999938f8 More ergonomic definition of variant name 2022-01-22 23:53:07 +01:00
Tony Garnock-Jones 382bf8d956 Expose reflection typedefs 2022-01-22 23:45:24 +01:00
Tony Garnock-Jones e4792ddccd Improve protocols for (de)coding JS/Preserves somewhat 2022-01-22 23:38:02 +01:00
Tony Garnock-Jones ae6eaa663e Expose a touch more static information, e.g. __as_preserve__ and __from_preserve__. 2022-01-22 23:25:16 +01:00
Tony Garnock-Jones d8615175a5 I guess I'm developing a convention for how these things should look now 2022-01-22 23:21:05 +01:00
Tony Garnock-Jones a98aa357d4 Repair command-line handling 2022-01-22 23:20:35 +01: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 9a718548c0 First steps toward a C library for Preserves 2022-01-14 00:27:18 +01:00
Tony Garnock-Jones 2721ce81c4 Repair lexicographic ordering among Bytes instances, which in turn repairs canonicalizing binary output, which in turn fixes the tests now there's just been a very long test name symbol added. 2022-01-13 23:30:28 +01:00
Tony Garnock-Jones 850678a80a New test of very long integer 2022-01-13 23:29:47 +01:00
Tony Garnock-Jones c3af4656c1 Version 0.10.2 2022-01-12 14:07:51 +01:00
Tony Garnock-Jones 61ef91a958 Allow schema encoding (auto-)escapes 2022-01-12 14:07:32 +01:00
Tony Garnock-Jones 8f99f14b92 Oops. Forgot to git add copies of test sample data 2022-01-12 12:27:01 +01:00
Tony Garnock-Jones f348701169 Avoid x.__preserve__(), preferring preserve(x) 2022-01-12 11:40:05 +01:00
Tony Garnock-Jones ed518a9c71 Version 0.10.0 2022-01-12 02:04:49 +01:00
Tony Garnock-Jones b70352bc85 Publish
- @preserves/core@0.18.2
 - @preserves/schema@0.19.7
2022-01-12 02:03:23 +01:00
Tony Garnock-Jones ddfd2e24a6 Indented text printing 2022-01-12 02:02:36 +01:00
Tony Garnock-Jones 3cc875bce3 Handle no-whitespace-after-a-number 2022-01-12 02:02:11 +01:00
Tony Garnock-Jones fb6a5caf38 Update LSP settings 2022-01-12 02:01:54 +01:00