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
gingerBill
6ce5608003
Correct odin doc default parameter value init_string generation
2021-12-03 11:46:54 +00:00
Jeroen van Rijn
db42a2db47
Merge pull request #1347 from DanielGavin/parser-fix
...
Do not save comments when peeking tokens.
2021-12-02 23:05:24 +01:00
DanielGavin
cecca96f3d
Merge branch 'odin-lang:master' into parser-fix
2021-12-02 22:45:14 +01:00
Daniel Gavin
f1a126e162
Do not save the comment when peeking.
2021-12-02 22:44:47 +01:00
gingerBill
9f0a30e36e
Merge pull request #1337 from DanielGavin/parser-fix
...
Add Matrix_Type as literal type on "core:odin"
dev-2021-12
2021-11-28 10:38:37 +00:00
Daniel Gavin
517c8ff1dd
Include Matrix_Type to the is_literal_type switch statement.
2021-11-28 02:14:25 +01:00
gingerBill
2b07afaf70
Add lb_build_addr on or_return and or_else for sanity's sake
2021-11-27 16:03:03 +00:00
gingerBill
6616882708
Correct reading from a console on Windows
...
e.g. `os.read(os.stdin, buf[:])`
2021-11-27 14:59:35 +00:00
gingerBill
c9c197ba08
Add os.read_at_least and os_read_full utility procedures.
2021-11-27 14:57:49 +00:00
gingerBill
7876660d8c
Add new utf16 procedures: decode, decode_to_utf8
2021-11-27 14:57:20 +00:00
gingerBill
db9326f31d
Merge pull request #1332 from odin-lang/nasm-support
...
NASM Support
2021-11-26 23:06:33 +00:00
gingerBill
27106dd9ae
Allow .asm, .s, and .S as valid assembly file extensions
2021-11-26 22:25:07 +00:00
gingerBill
33dc12a61a
Add supported check for .asm files
2021-11-26 14:46:03 +00:00
gingerBill
ffd7ca57f1
Move nasm.exe to windows/nasm.exe, etc
2021-11-26 14:40:39 +00:00
gingerBill
44897b5eac
Merge pull request #1334 from jockus/allow-enum-any-int
...
Allow enums to pass #any_int checks
2021-11-25 11:31:04 +00:00
Joakim Hentula
8255481204
Allow enums to pass #any_int checks
2021-11-25 11:20:40 +00:00
gingerBill
1e453cf1d7
Merge pull request #1296 from kevinsjoberg/do-not-filter-tests-when-empty
...
Do not filter test procedures when filter is empty
2021-11-25 09:13:31 +00:00
gingerBill
c34a331696
Add -extra-assembler-flags
2021-11-24 22:20:18 +00:00
gingerBill
07ec93bfeb
Add procs_windows_amd64.asm for use with -no-crt
2021-11-24 18:32:27 +00:00
gingerBill
994ee5a559
Allow for multiple .asm files
2021-11-24 17:57:31 +00:00
gingerBill
50057b0696
Add basic support for foreign import "foo.asm" on Windows with nasm.exe
2021-11-24 16:56:42 +00:00
gingerBill
00597127dd
Add missing field skip_missing
2021-11-24 16:39:29 +00:00
gingerBill
70d4bc8573
Add nasm binaries
2021-11-24 16:36:34 +00:00
gingerBill
bc775afccb
Merge branch 'master' of https://github.com/odin-lang/Odin
2021-11-24 16:31:47 +00:00
gingerBill
504ea7deeb
Fix update_untyped_expr_type for ternary if expressions with an untyped type
2021-11-24 16:31:37 +00:00
gingerBill
5e2280a787
Fix set_file_path_string and thread_safe_set_ast_file_from_id
2021-11-24 16:20:01 +00:00
gingerBill
84e03421d3
Merge pull request #1312 from DYSEQTA/master
...
Improve compiler help output with regard to command specific help.
2021-11-24 15:49:49 +00:00
DYSEQTA
0a87ffe0e6
Merge branch 'odin-lang:master' into master
2021-11-24 12:07:14 +11:00
DYSEQTA
e5f961b48f
Removed '--help' from help string as per request.
2021-11-24 11:10:40 +11:00
gingerBill
5db505c42f
Merge pull request #1277 from Yawning/feature/modern-crypto
...
core/crypto: Add some "modern" primitives
2021-11-23 17:54:03 +00:00
gingerBill
275241f9b4
Merge branch 'master' of https://github.com/odin-lang/Odin
2021-11-23 11:43:38 +00:00
gingerBill
9246e89c4a
Fix #1328
2021-11-23 11:43:32 +00:00
gingerBill
b56964e465
Merge pull request #1315 from SrMordred/patch-2
...
GetMouseDelta
2021-11-23 11:30:54 +00:00
gingerBill
2e89585c8c
Merge branch 'master' of https://github.com/odin-lang/Odin
2021-11-23 10:59:50 +00:00
gingerBill
e230b7110c
Merge pull request #1327 from graphitemaster/fix-path-join-leak
...
fix memory leak in path.join
2021-11-22 15:34:30 +00:00
Dale Weiler
a55f0cfb63
fix memory leak in path.join
2021-11-22 10:25:54 -05:00
gingerBill
de435c9318
Remove unneeded semicolons from vendor:OpenGL
2021-11-21 14:52:40 +00:00
gingerBill
f40f12d480
Minor cleanup to math constants
2021-11-21 14:06:32 +00:00
gingerBill
8a2c829e07
Patch odin doc binary format
2021-11-21 14:06:15 +00:00
gingerBill
42b9ce636f
Remove #force_inline from all wrappers
2021-11-21 13:59:28 +00:00