Emery Hemingway
65195a5eb7
schemas: improve "include" parsing
2022-11-20 14:14:22 -06:00
Emery Hemingway
e1ab43578a
Schema: parse annotations
2022-11-20 14:13:44 -06:00
Emery Hemingway
99a1cd4d15
Symbol escaping
2022-11-06 11:04:16 -06:00
Emery Hemingway
9f8321a748
Textualize the zero length symbol as ||
2022-11-06 11:03:53 -06:00
Emery Hemingway
2d2df1f918
Parse past annotations
2022-11-02 13:58:37 -05:00
Emery Hemingway
4e795cb92a
Another getOrDefault
2022-10-30 21:09:17 -05:00
Emery Hemingway
489d6b31d5
Fix string escaping
2022-10-30 18:43:11 -05:00
Emery Hemingway
201cb7c68e
Check for zero-length binary streams
2022-10-30 17:26:55 -05:00
Emery Hemingway
154ffb6cd8
Validate that set elements are unique during parse
2022-10-30 17:26:55 -05:00
Emery Hemingway
d0af002b4a
Validate that dict keys are unique during parse
2022-10-30 17:26:55 -05:00
Emery Hemingway
270e13b27b
Custom unescaping of byte-strings
2022-10-30 17:26:55 -05:00
Emery Hemingway
11661d453c
Replace concat with writeText
...
Write to a stream rather than concatentate a string.
2022-10-30 17:26:55 -05:00
Emery Hemingway
7e72c2a515
Parser: fix escaping in #"…"
2022-10-30 17:10:26 -05:00
Emery Hemingway
4ee41a7fce
Parser: allow whitespace in hex and base64
2022-10-30 17:10:26 -05:00
Emery Hemingway
b4756b13ae
isRecord: add variant with a label
2022-10-27 15:29:45 -05:00
Emery Hemingway
7125eadd49
Use step rather than [] for dictionaries
2022-10-25 17:42:04 -05:00
Emery Hemingway
5c72729f23
xmlhooks: parse attributes
...
Parse attribute values to booleans and numbers. This isn't best
practices for handling XML (if there is such a thing) but it
reduces the internal representation and allows typed pattern
matching without further processing.
2022-10-25 12:18:31 -05:00
Emery Hemingway
62480318cc
BufferedDecoder: feed by pointer
2022-10-23 23:39:37 -05:00
Emery Hemingway
5fe041fa45
New BufferedDecoder object
2022-10-22 18:40:24 -05:00
Emery Hemingway
85e67603ed
Rewrite xmlhooks to match xml-infoset.prs
2022-10-20 14:19:24 -05:00
Emery Hemingway
f92cb4d8ba
Found a problem with C++
2022-10-18 17:31:20 -05:00
Emery Hemingway
918d4d3e2e
Fix encoding and decoding of embedded values
2022-10-16 15:32:09 -05:00
Emery Hemingway
5b6f673951
Convert Preserves sets to JSON arrays
...
A one way conversion but still useful.
2022-10-13 23:08:53 -05:00
Emery Hemingway
54ec2d439a
Allocate new TableRefs when necessary
2022-10-13 23:05:37 -05:00
Emery Hemingway
a97f1e8554
Fix schema includes
2022-09-04 13:15:52 -05:00
Emery Hemingway
8c0af37694
Use set[T] rather than HashSet[T] for enum sets
2022-08-30 11:45:22 -05:00
Emery Hemingway
895a8695d2
Use BiggestInt in generated code
2022-07-09 08:08:11 -05:00
Emery Hemingway
cc0472da3d
Add apply procedure
2022-06-25 16:19:42 -05:00
Emery Hemingway
abb39e02a5
I'm using that, sometimes
2022-06-12 23:05:35 -05:00
Emery Hemingway
55da079955
Update upstream URLs
2022-06-12 23:05:15 -05:00
Emery Hemingway
5043d8595a
Set type conversions
2022-05-18 13:57:40 -05:00
Emery Hemingway
aaf5e7ce39
Remove old imports of parse module
2022-04-25 11:53:17 -05:00
Emery Hemingway
ddc26f0c71
Add pragma accessors
...
This library requires a forked macros module, so export accessors
that would prevent a downstream library from having the same
problems with std/macros.
2022-04-25 11:33:37 -05:00
Emery Hemingway
f32e783e0b
Unembed during fromPreserve
2022-04-22 00:28:36 -05:00
Emery Hemingway
a3c55238f5
Generate `data` fields for anonymous patterns
2022-03-19 09:13:23 -05:00
Emery Hemingway
e8d1bf2c57
Refactor mapEmbeds
2022-03-18 18:57:37 -05:00
Emery Hemingway
1dcad539f4
Move preserves/parse module into preserves
...
Some macros in preserves call `parsePreserves` so include that
proc implicitly.
2022-03-18 11:26:52 -05:00
Emery Hemingway
5408cb859a
Add `step` func as a no-effects substitue for `[]` proc
...
ehmry/xdg_open_ng#2
2022-03-18 10:08:39 -05:00
Emery Hemingway
a6b31247cf
Fix indentation bug
2022-03-14 14:28:37 -05:00
Emery Hemingway
5f746706b6
Add forked macros module
...
This one has a more premissive version of "hasCustomPragma".
2022-03-10 23:41:14 -06:00
Emery Hemingway
633cb0a3c4
Tweak fromPreserve for floats and objects
2022-03-10 23:41:14 -06:00
Emery Hemingway
8b52e3baf9
Index into compound types by Preserve keys
2022-03-10 23:41:13 -06:00
Emery Hemingway
db06066e17
Trace to stderr, not stdout
...
This would interfer with stdio communications.
2022-03-08 15:22:49 -06:00
Emery Hemingway
3924e48deb
Distinct Symbol strings
...
More type buracracy makes schema conversion less lossy.
2022-02-20 09:23:49 -06:00
Emery Hemingway
486443a098
Remove submodule
2022-02-19 10:33:16 -06:00
Emery Hemingway
6c4cfa0885
Fix fromPreserve for distinct types
...
This is an example of why bypassing the type system with "when"
is dangerous.
2022-02-11 15:36:30 -06:00
Emery Hemingway
1cf0df255f
bump version number
2021-12-28 18:11:17 +01:00
Emery Hemingway
ba4d567791
Careful with those variable length tuples
2021-12-24 00:38:02 +01:00
Emery Hemingway
e25e06efba
Don't convert Table[string,string] to {symbol:string...:...}
...
Should not assume that table keys can be treated at symbols. This
also makes the resulting dictionary convertable to JSON.
2021-12-22 23:49:06 +01:00
Emery Hemingway
84b28ec55a
XML: use tuples rather than records for elements
2021-12-22 22:27:18 +01:00