Commit Graph

16948 Commits

Author SHA1 Message Date
Jeroen van Rijn
3f330752cd Replace iterators; fixes line ending handling 2026-03-09 19:48:24 +01:00
StudebakerGuy
1d0510d27f is_graphic now uses the generated Unicode tables
unicode.is_graphic has been modified to use the generted Unicode
tables. The tables Me, Mn, Mc, and Zs were add as needed by is_graphic.
2026-03-09 19:48:23 +01:00
StudebakerGuy
65d0e5c82f is_symbol uses generated Unicode tables
Tables for Sm, Sc, Sk, So are now being generated. These tables
are now being searched by is_symbol
2026-03-09 19:48:22 +01:00
StudebakerGuy
8f5f1ee1cc is_punct now searches generated tables 2026-03-09 19:48:20 +01:00
StudebakerGuy
3bfa01d4a8 Generate Unicode Punctuation Tables 2026-03-09 19:48:20 +01:00
StudebakerGuy
9b38bdf849 Refactor to remove the us of if do 2026-03-09 19:48:18 +01:00
StudebakerGuy
e9943e6145 is_letter now uses generated tables
unicode.is_letter has been modified to use the generated unicode tables.
2026-03-09 19:48:18 +01:00
StudebakerGuy
69c04b696a islower now used the generated tables 2026-03-09 19:48:16 +01:00
StudebakerGuy
b4d70d3c5b Corrected issue with PropList.txt ranges 2026-03-09 19:48:15 +01:00
StudebakerGuy
090dedda1b is_number now searches generate tables 2026-03-09 19:48:14 +01:00
StudebakerGuy
e5b1f1bf94 Add procedure is_decimal
This adds the function `is_decimal` to `core/unicode`
2026-03-09 19:48:13 +01:00
StudebakerGuy
263bc8cc7e Added comment to is_digit 2026-03-09 19:48:12 +01:00
StudebakerGuy
673adf30c3 Add searing of generated tables, Fixed in_digit
This adds the functino `unicode.in_range` to search for a run in
the `Range` type used in `core/unicode/generated.odin`.

This also modifies `unicode.binary_search` so it will support searching
types other than i32 by making it support implicit parametric polymorphism.

`unicode.in_digit` has been modified to use the generated tables.
2026-03-09 19:48:11 +01:00
StudebakerGuy
9d038b23ec Add generated tables to core/unicode 2026-03-09 19:48:09 +01:00
StudebakerGuy
8f579d1f3b Added program to generate Unicode Table
This adds a program that will generate tables for use by the `core/unicode`
package. The table generated file will be `core/unicode/generated.odin`

It may be better to incorporate this into `generate_entity_table.odin`.
This can easily be accomplised if desired.
2026-03-09 19:48:09 +01:00
StudebakerGuy
c4f5f9e55a Add files needed to generate unicode tables
This commit adds the directory `/core/assets/UCD/`. This directory
contains three files; `PropList.txt`, `UnicodeData.txt`, and `license.txt`.
These files are from the Unicode Database (UCD). The first two  are used to
generate tables for `core/unicode`. The third is the license that
covers the files that make up the UCD.

These files are from Unicode version 17.0.0. The latest versions may be
found ad [ucd](https://www.unicode.org/Public/UCD/latest/ucd/).
2026-03-09 19:48:07 +01:00
Jeroen van Rijn
1b23231e4a Merge pull request #6387 from krnowak/krnowak/fix-tokenizer-init
Fix tokenizer init
2026-03-09 14:35:11 +01:00
Jeroen van Rijn
0087d6d62e Add preserve/* to base:runtime
```odin
none :: proc "preserve/none" () {}
most :: proc "preserve/most" () {}
all  :: proc "preserve/all"  () {}

print_cc :: proc(type: any) {
	ti := type_info_of(type.id)
	p := ti.variant.(runtime.Type_Info_Procedure)
	fmt.println(p.convention)
}

main :: proc() {
	print_cc(none)
	print_cc(most)
	print_cc(all)
}
```
2026-03-08 15:05:23 +01:00
Krzesimir Nowak
7320f10de6 Fix tokenizer init 2026-03-08 12:09:12 +01:00
Jeroen van Rijn
6f5446bfc4 Merge pull request #6381 from Faker-09/mem_rollback_stack_typo
core:testing remove whitespace typo
2026-03-07 18:28:35 +01:00
Shane Shrybman
e1ea3d634b core:testing remove whitespace typo 2026-03-07 11:34:15 -05:00
Jeroen van Rijn
1b850ded79 Merge pull request #6380 from gfaster/master
fix documentation of assign_at
2026-03-07 16:17:42 +01:00
Gavin Rohrer
93b1e97402 fix documentation of assign_at 2026-03-07 10:07:15 -05:00
Jeroen van Rijn
d767e1c513 Clarify long double comment 2026-03-07 14:57:39 +01:00
Jeroen van Rijn
7938e4d56e Merge pull request #6379 from Kelimion/limit_exponent
Limit maximum exponent in parsing of float/integer literals
2026-03-07 12:54:46 +01:00
Jeroen van Rijn
6434bf4b65 Limit maximum exponent in parsing of float/integer literals 2026-03-07 12:38:04 +01:00
Laytan
dddf013744 Merge pull request #6377 from laytan/add-more-js-to-examples-all
add more js to examples/all js
2026-03-06 21:35:57 +01:00
Laytan Laats
0c0159b5b7 add more js to examples/all js 2026-03-06 21:05:53 +01:00
Jeroen van Rijn
a6cfde4373 Merge pull request #6374 from laytan/fix-macos-ci
Fix macos ci
2026-03-06 12:26:36 +01:00
Laytan Laats
92a2270ee1 intel has libs at a different path 2026-03-06 11:49:55 +01:00
Laytan Laats
fee99c56a6 fix MacOS CI 2026-03-05 22:06:54 +01:00
gingerBill
217b4967b0 Improve docs for type_info_underlying 2026-03-04 14:07:24 +00:00
gingerBill
029c96ce22 Separate type_info_core and type_info_underlying 2026-03-04 14:03:24 +00:00
Jeroen van Rijn
ed74233ace Add bit_set to runtime.type_info_core. 2026-03-04 14:55:11 +01:00
Jeroen van Rijn
fc570d3210 Merge pull request #6362 from Yawning/feature/argon2id
core/crypto/argon2id: Initial import
2026-03-04 14:27:13 +01:00
Yawning Angel
86b629ba84 core/crypto/argon2id: Initial import 2026-03-04 21:29:55 +09:00
Yawning Angel
058bd9a914 core:crypto/_blake2: Cleanups and fixes
The fixes apply to "use it as a MAC" which was not part of the
documented/exposed API.  It now is, and is covered by the self-test
routines from the RFC.
2026-03-04 21:22:56 +09:00
Jeroen van Rijn
1a5126c6b7 Make CI less nervous. dev-2026-03 2026-03-04 00:29:37 +01:00
Jeroen van Rijn
6d9a611acc Merge pull request #6365 from FrancisTheCat/master
Fix #6270
2026-03-03 17:51:07 +01:00
Znarf
5f450303dd Merge branch 'odin-lang:master' into master 2026-03-03 17:23:13 +01:00
Franz Hoeltermann
b351b58ddc Fix #6270 2026-03-03 17:22:31 +01:00
Jeroen van Rijn
cd98d235bc Merge pull request #6364 from IllusionMan1212/eacces-perm-denied
os: return `.Permission_Denied` for `.EACCES` in posix and linux
2026-03-03 17:11:55 +01:00
IllusionMan1212
afbb0b4357 os: return .Permission_Denied for .EACCES in posix and linux 2026-03-03 17:50:31 +02:00
Jeroen van Rijn
b80ffe6ad7 Merge pull request #6363 from odin-lang/bill/bit_set_rtti
Update `Type_Info_Bit_Set`
2026-03-03 13:48:37 +01:00
gingerBill
092e994c97 Merge pull request #6343 from krnowak/krnowak/package-docs
Kill deprecated file tags and fix assignment of package docs
2026-03-03 12:29:35 +00:00
gingerBill
2cb8155946 Add missing @(require_results) 2026-03-03 12:27:44 +00:00
gingerBill
a5e1eb56ab Add explicit_underlying: bool RTTI field for bit_set; add runtime.type_info_underlying 2026-03-03 12:26:42 +00:00
Jeroen van Rijn
6381f6c6cc Merge pull request #6360 from Yawning/fix/crypto-blake2-final
core:crypto/_blake2: Fix final blocks call with partial block
2026-03-03 13:11:06 +01:00
Yawning Angel
47ad434d1a core:crypto/_blake2: Fix final blocks call with partial block 2026-03-03 20:54:13 +09:00
Jeroen van Rijn
d5f1416629 Merge pull request #6358 from bplu4t2f/master
Fix incorrect PVOID/VOID usage in some win32 signatures
2026-03-02 22:15:08 +01:00