Commit Graph

4682 Commits

Author SHA1 Message Date
gingerBill
9bc12e3f38 Improve json.marshal error handling for io.Writer; Add docs for the different JSON specifications 2021-09-29 13:06:03 +01:00
gingerBill
b3f2263442 Add io.write_quoted_* utility procedures to package io 2021-09-29 13:04:59 +01:00
gingerBill
d452758afc Improve MJSON handling 2021-09-28 15:01:11 +01:00
gingerBill
c933054872 Support json.Specification.MJSON
https://bitsquid.blogspot.com/2009/10/simplified-json-notation.html
2021-09-28 14:53:16 +01:00
gingerBill
6f872e04c8 Move redundant auto_cast error from -vet to -vet-extra 2021-09-28 12:24:51 +01:00
gingerBill
ea0bf05727 Make it clear that integers are parsed separately from floats 2021-09-28 12:18:11 +01:00
gingerBill
bcb07b6b9e Correct runtime.floattidf and other related i128<->f64 internal procedures 2021-09-28 12:17:36 +01:00
gingerBill
edbf2bf56f Correct append_soa for #soa[dynamic][N]T 2021-09-26 13:42:53 +01:00
gingerBill
93f97defb9 Remove @private from some procedures 2021-09-26 00:08:42 +01:00
gingerBill
22827da4a2 Minor changes to microui.odin 2021-09-25 23:59:28 +01:00
gingerBill
aa382959a7 Make empty arrays work on a single line with %#v 2021-09-25 21:12:10 +01:00
gingerBill
6fab93c4b3 Fix [^]u8 to cstring conversion 2021-09-25 21:11:54 +01:00
gingerBill
5e30b3eeef Merge branch 'master' of https://github.com/odin-lang/Odin 2021-09-25 18:05:42 +01:00
gingerBill
14a3ddb9af Allow for union{T} like types in json.unmarshal 2021-09-25 18:05:35 +01:00
Jeroen van Rijn
f7bf55af4a Merge pull request #1194 from Kelimion/define
Allow `-define:name=string`.
2021-09-25 09:56:51 -07:00
gingerBill
6a271355a6 Add json.unmarshal 2021-09-25 17:47:45 +01:00
gingerBill
931fdd2dca Add reflect.any_base reflect.any_core 2021-09-25 17:47:23 +01:00
gingerBill
e6d8fbf194 Add runtime.__get_map_header_runtime 2021-09-25 17:30:18 +01:00
gingerBill
6fa3c992b5 mem.Raw_* alias runtime.Raw_* 2021-09-25 17:29:51 +01:00
Jeroen van Rijn
2c055b0972 Allow -define:name=string.
Slightly rewrote `build_param_to_exact_value` parsing logic.

First, try to parse as a bool, then as an integer or float.
If both fail, treat the value as a string.

To force a string define for e.g. `true`, use `-define:name='true'`.
2021-09-25 18:11:30 +02:00
gingerBill
868c923770 Make map internals more robust when using mem.nil_allocator() 2021-09-25 15:55:27 +01:00
gingerBill
fa0d58f96e Correct f64 -> u128/i128 generation 2021-09-25 15:38:56 +01:00
gingerBill
ebc09d5e4e Add i128 and u128 parsers to strconv 2021-09-25 14:30:50 +01:00
gingerBill
bfc92d0aaf Make runtime.memset use int for the length from uint 2021-09-23 23:43:29 +01:00
gingerBill
8c4197af38 Add #load_or(path_string, default_byte_slice) 2021-09-23 23:32:46 +01:00
gingerBill
374f98356c Merge branch 'master' of https://github.com/odin-lang/Odin 2021-09-23 23:25:26 +01:00
gingerBill
20529c6512 Minor simplification to #assert and #panic parsing 2021-09-23 23:25:13 +01:00
gingerBill
ea555c0ccd Simplify directive parsing for expressions 2021-09-23 23:22:16 +01:00
gingerBill
0d20190b0f Merge pull request #1193 from thePHTest/master
Correct levenshtein distance
2021-09-23 17:55:16 +01:00
Phil H
3ac13d2028 Correct levenshtein distance 2021-09-23 09:22:28 -07:00
Jeroen van Rijn
868d9ba534 Merge pull request #1191 from Kelimion/vulkan-fix
vendor:vulkan: Remove unused core:c import.
2021-09-23 05:29:53 -07:00
Jeroen van Rijn
c0437330e9 vendor:vulkan: Remove unused core:c import. 2021-09-23 14:21:12 +02:00
gingerBill
6a86b3c82b Cleanup hash implementation 2021-09-23 12:41:48 +01:00
gingerBill
a7f59ab388 Add asserts to begin_window and begin_panel 2021-09-23 12:40:40 +01:00
gingerBill
5586c6b9c5 Update microui/README.md 2021-09-23 12:20:44 +01:00
gingerBill
964a09ef7a Add vendor:microui
This is a direct port in Odin, not bindings; utilizing Odin's rich type system
2021-09-23 12:20:01 +01:00
gingerBill
360f75a65c Keep -vet happy 2021-09-23 12:19:08 +01:00
Jeroen van Rijn
0201fa3fbb Merge pull request #1189 from strager/patch-1
Fix indentation typo
2021-09-22 01:46:38 -07:00
strager
31daf80aea Fix indentation typo 2021-09-21 23:02:15 -07:00
Jeroen van Rijn
76fa037ca7 Merge pull request #1186 from Kelimion/crc64
Add CRC-64 variants: ISO 3306, ECMA 182, XZ
2021-09-21 07:36:03 -07:00
Jeroen van Rijn
6e22a6dfa5 hash: Smaller CRC-64 ISO 3306 table. 2021-09-21 16:28:35 +02:00
Jeroen van Rijn
181eabcffc hash: Add CRC-64 (ISO 3306) and inverse. 2021-09-21 16:17:01 +02:00
Jeroen van Rijn
b600ffba3b Correct CRC-64 (ECMA 182) & add CRC-64 (XZ) and tests. 2021-09-21 15:17:23 +02:00
Jeroen van Rijn
b3dc3f5908 Merge pull request #1182 from DanielGavin/parser-fix
Make optional semicolons the default on odin/parser, and add parser test on demo.odin
2021-09-20 12:10:19 -07:00
Daniel Gavin
0a11a6e1f6 Merge remote-tracking branch 'upstream/master' into parser-fix 2021-09-20 20:56:07 +02:00
Daniel Gavin
46d99395ce typo in filename 2021-09-20 20:53:39 +02:00
Daniel Gavin
50ee65ea9e Make default_parser use the optional_semicolons and add odin parser test. 2021-09-20 20:50:01 +02:00
Jeroen van Rijn
5840bfba62 Merge pull request #1181 from DanielGavin/parser-fix
Fix parser errors
2021-09-20 11:23:42 -07:00
Daniel Gavin
a2a7647c90 Fix '>>' operand being tokenized correctly and switch statement with bare semicolon. 2021-09-20 20:12:13 +02:00
Jeroen van Rijn
70dff11b29 Merge pull request #1178 from Kelimion/new_clone
fix mem.new_clone
2021-09-19 13:19:42 -07:00