gingerBill
c987b84292
Move bash.djbx33a to hash.odin
2021-12-29 12:24:47 +00:00
gingerBill
a9b17b5a37
Add hash.djbx33a
2021-12-29 12:01:07 +00:00
gingerBill
a66f859fb4
Minor improvements to core:container/small_array
2021-12-29 11:58:27 +00:00
gingerBill
c46e7eda1d
Add core:container/small_array
2021-12-29 11:26:22 +00:00
Andrea Piseri
92e70b9a58
use multipointers instead of simple pointers
2021-12-28 16:22:34 +01:00
Andrea Piseri
822da9d12d
Merge branch 'master' into slice_scanner
2021-12-28 16:12:15 +01:00
Jeroen van Rijn
b0817d136b
Merge pull request #1354 from Kelimion/bit_vector
...
[core:container/bit_array] Create new package.
2021-12-28 15:51:45 +01:00
Jeroen van Rijn
53e30e4621
[core:container/bit_vector] Create new package.
...
A dynamic bit array, optionally allowing negative indices.
2021-12-28 15:38:12 +01:00
gingerBill
dbf42d2469
make slice.as_ptr return [^]E
2021-12-28 14:16:27 +00:00
gingerBill
36c61aeacf
Merge pull request #1350 from thePHTest/json-typo
...
Fix 'unmarsal' typo in core/encoding/json/unmarshal.odin
2021-12-28 14:11:27 +00:00
gingerBill
5d653a9d8e
Merge branch 'master' of https://github.com/odin-lang/Odin
2021-12-28 14:05:18 +00:00
gingerBill
7f61a90ea1
Remove core:container contents
2021-12-28 14:05:09 +00:00
Jeroen van Rijn
6f370fdbf2
Merge pull request #1394 from Tetralux/parse-allman-for
...
core:odin/parser: Fix parsing of Allman style braces in for loops
2021-12-25 20:24:30 +01:00
Tetralux
a60667e900
core:odin/parser: Fix parsing of Allman style braces in for loops
2021-12-25 19:18:29 +00:00
Tetralux
9b2fe56d14
Parse #no_nil on unions
2021-12-25 18:58:08 +00:00
Andrea Piseri
5d80e24224
Add slice/scanner proc
2021-12-23 12:49:40 +01:00
gingerBill
84d774c7b4
Merge pull request #1382 from Tetralux/rename-to-dynamic
...
Rename slice.to_dynamic to slice.clone_to_dynamic
2021-12-21 10:26:36 +00:00
Tetralux
e2b36c4004
Rename slice.to_dynamic to slice.clone_to_dynamic
2021-12-21 02:17:24 +00:00
CiD-
ebdb3ab43a
added notes about _unix_alloc
2021-12-17 12:04:05 -05:00
CiD-
29ca6ee420
add zeroing to new region from realloc
2021-12-17 10:41:49 -05:00
gilles
4ebdb6740e
fix math.prod
...
accumulator was not initialized to one
2021-12-16 18:55:51 +01:00
gingerBill
4423bc0706
Fix typo
2021-12-12 01:10:40 +00:00
Jeroen van Rijn
938744b276
[math/big] Rename internal_int_shl_digit to _private_int_shl_leg.
...
Same for the SHR variant. These are pure implementation details to shift by a leg/word at a time.
Prevent accidental usage.
2021-12-11 15:22:24 +01:00
gingerBill
84b84d9f7d
Fix rat_set_f64
2021-12-11 12:47:05 +00:00
gingerBill
85f8c8df91
Fix fields_proc in strings and bytes
2021-12-11 12:04:34 +00:00
gingerBill
c889591333
Merge branch 'master' of https://github.com/odin-lang/Odin
2021-12-11 12:02:33 +00:00
gingerBill
e2f53ee107
Fix #1362 strings.index_any
2021-12-11 12:02:23 +00:00
Jeroen van Rijn
c771ea9794
Merge pull request #1358 from Kelimion/big_math_fix
...
[math/big] Return 0, .Integer_Underflow if T = unsigned and bigint is negative.
2021-12-09 16:41:37 +01:00
gingerBill
94bad4d786
Merge branch 'master' of https://github.com/odin-lang/Odin
2021-12-09 15:36:12 +00:00
gingerBill
1d7c9cf872
Make strconv more robust
2021-12-09 15:35:00 +00:00
gingerBill
1e17d5d86f
Add utility procedures to get low values
2021-12-09 15:34:35 +00:00
gingerBill
1e9b30666f
Minor style change
2021-12-09 15:34:17 +00:00
Jeroen van Rijn
b2b79b86f0
[math/big] Return 0, .Integer_Underflow if trying to get a negative number to an unsigned int.
2021-12-09 16:31:54 +01:00
Jeroen van Rijn
c94098c2ab
[math/big] Fix int_set and int_get.
2021-12-09 16:14:04 +01:00
gingerBill
9d4fe90356
Fix bugs in big.Rat caused by typos
2021-12-07 17:35:41 +00:00
Jeroen van Rijn
6e61abc7d0
[xml] Initial optimization.
2021-12-06 12:04:59 +01:00
Phil H
a7138b22a5
Fix 'unmarsal' typo
2021-12-05 19:04:14 -08:00
Jeroen van Rijn
7ec88d2430
[xml] Add option.
2021-12-05 21:06:33 +01:00
Jeroen van Rijn
d65d6edb0e
[xml] Improve XML tests, test core:encoding/entity.
2021-12-05 02:52:23 +01:00
Jeroen van Rijn
3d72e80ccf
[xml] Implement optional unboxing of CDATA and decoding of tag values.
2021-12-05 02:52:23 +01:00
Jeroen van Rijn
2dd67dba89
[core:encoding/entity] Add new package to decode &<entity>; entities.
...
Includes generator to generate a lookup for named entitiess.
2021-12-05 02:52:23 +01:00
Jeroen van Rijn
5807214406
[xml] Improvements.
2021-12-05 02:52:23 +01:00
Jeroen van Rijn
23baf56c87
[xml] Improve CDATA + comment handling in tag body.
2021-12-05 02:52:23 +01:00
Jeroen van Rijn
beff90e1d1
[xml] Slight optimization.
...
About a 5% speed bump.
More rigorous optimization later.
2021-12-05 02:52:23 +01:00
Jeroen van Rijn
ec63d0bbd2
[xml] Robustness improvement.
...
Can now parse https://www.w3.org/2003/entities/2007xml/unicode.xml no problem.
2021-12-05 02:52:22 +01:00
Jeroen van Rijn
32eab04d66
[xml] Allow multi-line bodies w/o CDATA. Strip trailing whitespace.
2021-12-05 02:52:22 +01:00
Jeroen van Rijn
682783a2aa
[xml] Tab indentation in debug printer.
2021-12-05 02:52:22 +01:00
Jeroen van Rijn
46a4927aca
[xml] Use io.Writer for xml.print(doc).
2021-12-05 02:52:22 +01:00
Jeroen van Rijn
9b2e67df67
[xml] Small cleanup.
2021-12-05 02:52:22 +01:00
Jeroen van Rijn
b5c828fe4e
[xml] Initial implementation of core:encoding/xml.
...
A from-scratch XML implementation, loosely modeled on the [spec](https://www.w3.org/TR/2006/REC-xml11-20060816 ).
Features:
- Supports enough of the XML 1.0/1.1 spec to handle the 99.9% of XML documents in common current usage.
- Simple to understand and use. Small.
Caveats:
- We do NOT support HTML in this package, as that may or may not be valid XML.
If it works, great. If it doesn't, that's not considered a bug.
- We do NOT support UTF-16. If you have a UTF-16 XML file, please convert it to UTF-8 first. Also, our condolences.
- <[!ELEMENT and <[!ATTLIST are not supported, and will be either ignored or return an error depending on the parser options.
TODO:
- Optional CDATA unboxing.
- Optional `>`, ` `, ` ` and other escape substitution in tag bodies.
- Test suite
MAYBE:
- XML writer?
- Serialize/deserialize Odin types?
2021-12-05 02:52:22 +01:00