Commit Graph
100 Commits
Author SHA1 Message Date
sashakoshka c70c23d137 generate: Fix testGenerateRun so that it actually works 2025-07-08 11:38:00 -04:00
sashakoshka a9d5bb83a2 generate: Add framework for testing output of generated code 2025-07-07 16:00:25 -04:00
sashakoshka f1df5fa84d generate: Add stub return to generateDecodeValue so it compiles 2025-07-07 15:13:18 -04:00
sashakoshka 76a8f9444a tape: Ignore type names when encoding primitives using reflection 2025-07-05 22:10:55 -04:00
sashakoshka 0f20c4cdab tape: Fix TestEncodeDecodeAny using int instead of uint32 2025-07-05 19:14:36 -04:00
sashakoshka 1b82f2cd83 tape: Use tu.Describe() in tests 2025-07-05 18:47:57 -04:00
sashakoshka 6ba70ed046 internal/testutil: Create function to closely examine any data 2025-07-05 18:47:08 -04:00
sashakoshka c118a4d7ef tape: Change name of test to TestEncodeDecodeAnyTable 2025-07-04 14:30:23 -04:00
sashakoshka 877698d402 tape: Remove print statements 2025-07-04 14:18:56 -04:00
sashakoshka 5989a82bee tape: Fix negative slice length 2025-07-04 14:18:30 -04:00
sashakoshka c8a2f03ca1 tape: Fix peekSlice not using the correct tag 2025-07-04 12:22:49 -04:00
sashakoshka 07fc77c83e tape: WIP 2025-07-02 06:25:24 -04:00
sashakoshka 2138d47f07 tape: Flush writer after encoding for testing 2025-06-29 13:22:46 -04:00
sashakoshka e9633770ad internal/testutil: Formatting fix 2025-06-29 13:22:21 -04:00
sashakoshka dcf923b1f3 internal/testutil: Snake.String and HexBytes return "EMPTY" when input is empty 2025-06-29 11:06:58 -04:00
sashakoshka 8f8cd91b5d tape: Fix usage of Encoder/Decoder in dynamic tests 2025-06-29 10:30:32 -04:00
sashakoshka 81ac10508b tape: Change how slice skeletons are generated, support nested OTAs 2025-06-29 10:27:40 -04:00
sashakoshka 4930215166 tape: Make decoder inherit bufio.Writer 2025-06-28 11:24:32 -04:00
sashakoshka e1f58a194a tape: In progress testing of dynamic encoding/decoding 2025-06-28 06:24:44 -04:00
sashakoshka 37eccc91c0 tape: Progress on dynamically decoding OTAs 2025-06-28 06:23:51 -04:00
sashakoshka 08fe3d45dd tape: Encoder inherits bufio.Writer, need to do same for decoder 2025-06-28 06:23:18 -04:00
sashakoshka 3eb826735b tape: Send reflect values where possible instead of pointers 2025-06-27 19:05:17 -04:00
sashakoshka 2a4e88d949 tape: Fix size decoding math 2025-06-27 17:04:20 -04:00
sashakoshka aa718cfe9f tape: DecodeAny only returns an error when there is one 2025-06-27 14:03:49 -04:00
sashakoshka b174015319 tape: Fix KTV decoding not recognizing the any type 2025-06-27 14:02:38 -04:00
sashakoshka e16fec3a81 tape: Fixes to dynamic encoding 2025-06-24 16:08:35 -04:00
sashakoshka 712b4f521c internal/testutil: Fix Snake giving false positives for long data 2025-06-24 15:00:20 -04:00
sashakoshka 604faf0995 tape: Fix comment 2025-06-24 14:43:03 -04:00
sashakoshka 9932abd6c4 tape: Implement dynamic decoding (untested) 2025-06-24 14:39:16 -04:00
sashakoshka 1bc0788ff2 tape: Fix Encoder.WriteUintN not using the value AT ALL! 2025-06-24 14:38:01 -04:00
sashakoshka 477e56d359 tape: Add String method to Tag 2025-06-24 14:37:45 -04:00
sashakoshka e3487d26a1 internal/testutil: Add test utility package 2025-06-24 14:37:06 -04:00
sashakoshka 89153dd7bd tape: Add Tag.WithoutCN for easier comparison 2025-06-21 19:27:58 -04:00
sashakoshka 65e8d51590 tape: Remove GBEU 2025-06-21 19:27:31 -04:00
sashakoshka 7b8240cec6 tape: Add tag functions to the encoder 2025-06-21 19:26:15 -04:00
sashakoshka 663cab6b77 tape: Add float functions to the encoder 2025-06-21 18:33:25 -04:00
sashakoshka 376a3f1b46 generate: Use tape.EncodeAny for encoding undefined tables 2025-06-20 18:41:11 -04:00
sashakoshka c4407d9759 tape: Implement encoding for "any" values 2025-06-20 18:39:16 -04:00
sashakoshka 285e83d995 Merge codec and tape packages 2025-06-20 15:55:37 -04:00
sashakoshka ce503c4689 Big nasty commit to add code generation for encoding 2025-06-20 15:05:58 -04:00
sashakoshka a1f297e5b5 generate: Remove commented out import 2025-06-08 06:01:28 -04:00
sashakoshka 272a4da3c2 Remove markdown, add goparse from go.modo 2025-06-07 22:39:12 -04:00
sashakoshka 6bc98b3f77 generate: Add PDL language structures 2025-06-07 22:38:20 -04:00
sashakoshka 8ece6436b8 generate: Add PDL parser 2025-06-07 22:38:02 -04:00
sashakoshka 127aa23a61 generate: Add PDL lexer 2025-06-05 22:06:22 -04:00
sashakoshka bb5fc89cc5 design: Remove requirement for magic bytes in PDL file 2025-06-05 20:28:23 -04:00
sashakoshka 0ed55bcbc2 design: Rename pdl.md to pdl-language.md 2025-06-04 13:02:55 -04:00
sashakoshka ee94e87a6a design: EBNF correction 2025-06-04 13:01:51 -04:00
sashakoshka 64eea2b5fa design: Separate PDL language and compiler documents 2025-06-04 13:01:34 -04:00
sashakoshka 44b174c161 design: Flesh out PDL document 2025-06-04 12:46:20 -04:00
sashakoshka ec965caa27 codec: Add Encodable, Decodable interfaces 2025-06-04 12:20:04 -04:00
sashakoshka 1f62f6d973 design: PDL Idents should always start with capitals 2025-06-04 10:40:14 -04:00
sashakoshka 385c5a5972 design: Markdown fixes lol 2025-06-04 10:38:42 -04:00
sashakoshka d67a4fb9f2 generate: Clean slate 2025-06-04 10:37:03 -04:00
sashakoshka b261aa32f1 design: Initial PDL design 2025-06-04 10:36:01 -04:00
sashakoshka b85f3e7866 tape: Clean slate 2025-06-01 23:06:28 -04:00
sashakoshka 38132dc58c design: Add note about TAPE root values 2025-06-01 23:04:24 -04:00
sashakoshka 99392d50fc design: Remove description of NIL value 2025-05-31 06:18:03 -04:00
sashakoshka c4a985f622 design: New TAPE design 2025-05-30 21:34:31 -04:00
sashakoshka 58514f6afe codec: Add missing WriteByte function 2025-05-30 07:08:43 -04:00
sashakoshka 83fa77ba13 codec: Add codec package to handle encoding and decoding ints, etc 2025-05-30 07:05:55 -04:00
sashakoshka 717754644c tape: Fix capitalization of Uint 2025-05-23 00:15:56 -04:00
sashakoshka 134daacc03 tape: Switch StringArray over to using VILA 2025-05-23 00:04:57 -04:00
sashakoshka a927b9519e tape: Update tape.String to include ~[]byte 2025-05-23 00:03:39 -04:00
sashakoshka 32df336c3e tape: Add DecodeVILAIter 2025-05-22 23:44:20 -04:00
sashakoshka 2b3a53052f tape: Implement PASTA and VILA encoding/decoding 2025-05-22 13:26:42 -04:00
sashakoshka 23c3efa845 tape: Improve table tests 2025-05-18 21:32:08 -04:00
sashakoshka 0e7e935374 tape: Make table decoding more robust 2025-05-18 17:59:05 -04:00
sashakoshka dd5325b351 tape: Fix table decoding restarting after each pull 2025-05-18 16:34:28 -04:00
sashakoshka 37c3e49833 tape: Fix types_test.go not getting values for n in some cases 2025-05-18 16:32:27 -04:00
sashakoshka 6e5a7115d3 tape: Fix "n" size returned by DecodeGBEU 2025-05-18 16:26:08 -04:00
sashakoshka f4fb5e80b9 tape: Test "n" sizes of integer types 2025-05-18 16:22:52 -04:00
sashakoshka 3a88619f9b tape: Add back iter compatibility for table decoding 2025-05-18 16:12:55 -04:00
sashakoshka 568431f4c3 tape: Improve table decoding 2025-05-18 16:08:47 -04:00
sashakoshka f50b2ca0cd tape: Remove old "pairs" encoding 2025-05-18 15:51:45 -04:00
sashakoshka 3d8a012477 tape: Add table encoding/decoding functions 2025-05-18 15:50:24 -04:00
sashakoshka 4f3b256821 tape: Integer encoding accepts oversize buffers now 2025-05-18 14:49:43 -04:00
sashakoshka 2080d60793 tape: Remove array tests from types_test.go 2025-05-18 14:47:11 -04:00
sashakoshka c3337641bc tape: Break out array code into separate file 2025-05-18 00:06:50 -04:00
sashakoshka 4438210963 tape: Add N length support to all types 2025-05-17 23:55:56 -04:00
sashakoshka 8d5ba2fa39 tape: EncodeGBEU returns the amount of bytes written 2025-05-17 10:38:50 -04:00
sashakoshka a05c034313 tape: Clean up 2025-05-16 21:42:40 -04:00
sashakoshka 1b25e306a6 tape: Add GBEU encoding/decoding support 2025-05-16 21:27:11 -04:00
sashakoshka dd5e7e96d5 design: Remove note about this limitation 2025-05-15 17:56:41 -04:00
sashakoshka 835d623087 Change the protocol definition for tape to conform to #2 2025-05-15 17:49:29 -04:00
sashakoshka 83443b8c88 design: Fix documentation on message payload length 2025-05-14 15:15:03 -04:00
sashakoshka 0b98c768b3 Fix some outdated doc comments 2025-05-14 14:44:27 -04:00
sashakoshka 218949bd46 Remove quic
It's clear it won't survive this change because I can't even test
it, so who knows if its good enough to have in main.
2025-05-14 14:39:19 -04:00
sashakoshka 2fdf7d490d Remove unneeded code 2025-05-14 13:52:03 -04:00
sashakoshka d60beccbcd Finally fix A... this took too long 2025-05-14 13:44:06 -04:00
sashakoshka 23c37c3d1f Fix transaction ID counting 2025-04-25 19:57:33 -04:00
sashakoshka a83aedc128 Break METADAPT-A client/server environment from TestConnA 2025-04-25 18:38:01 -04:00
sashakoshka c0bfcc02f7 Send a close message when METADAPT-A transactions close 2025-04-25 18:19:43 -04:00
sashakoshka 7a0bf64c17 Implement SendWriter for METADAPT-B 2025-04-25 18:15:38 -04:00
sashakoshka 9d2bbec7f9 Update METADAPT-A implementation 2025-04-25 18:14:47 -04:00
sashakoshka dd89245c34 Change the result of Trans.SendWriter to a WriteCloser 2025-04-25 18:06:00 -04:00
sashakoshka 41f5cfefab Implement SendWriter for METADAPT-A 2025-04-25 17:53:12 -04:00
sashakoshka 8a3df95491 Clarify concurrency in Trans methods 2025-04-25 16:06:17 -04:00
sashakoshka c51a81bc13 Add a SendWriter method to Trans 2025-04-25 16:02:23 -04:00
sashakoshka 47645a8fce Pass TestDecodeMessageBErr 2025-04-25 15:26:12 -04:00