Christoffer Lerno
|
4c1edfb941
|
Dev (#777)
* The new @if directive.
|
2023-06-10 23:16:28 +02:00 |
|
Christoffer Lerno
|
ddd0497922
|
Better lowering of distinct types. Noreturn function call expr recognized as a "jump" for escape analysis. Preferring "def" in libs. To upper / to lower for ascii. Initial dynlib support.
|
2023-05-21 21:41:01 +02:00 |
|
Christoffer Lerno
|
4d0f73a8f5
|
Consistent naming in allocators. Fix where cast from char array -> bitstruct would not work.
|
2023-05-10 10:30:37 +02:00 |
|
Christoffer Lerno
|
172d561f07
|
Change syntax of $if, $assert, $include, $echo. Introduces $error
|
2023-05-06 12:18:00 +02:00 |
|
Christoffer Lerno
|
8059dc1539
|
delete_if, retain_if, rindex_of, compact, compact_count added to List.
|
2023-04-21 14:45:25 +02:00 |
|
Christoffer Lerno
|
809321e20c
|
Updated grammar. Removal of elif. Removal of ':' ';' in some ct statements. Empty faults is now an error. Remove "define" for types. Remove "private". Better errors on incorrect bitstruct syntax. Introduction of wildcard type rather than optional wildcard. Removal of scaled vector type. mkdir and rmdir. Disallow define @Foo() = { @inline }. Add handling for @optreturn and change it to @return!. Restrict interface style functions. Updated x64 ABI. stdlib updates to string. Removed deprecated functions. Update how variadics are implemented. Extended error messages. x86 ABI fixes. Shift check fixes. '!' and '?' are flipped. No trailing ',' allowed in functions. Fix to string parsing. Allow l suffix. Simplifying flatpath. any replaces variant, anyfault replaces anyerr. Allow getting the underlying type of anyfault. De-duplicate string constants. Fix of readme. Extended list. Fix of "(MyEnum)x + 1". Clock and DateTime types. Fixes to array concat.
|
2023-04-21 10:56:39 +02:00 |
|
Christoffer Lerno
|
316af36723
|
Add dstringwriter.
|
2023-03-22 12:23:47 +01:00 |
|
Christoffer Lerno
|
93fa135d28
|
Deprecation of define Type = ...
|
2023-03-20 22:56:06 +01:00 |
|
Christoffer Lerno
|
9c145996b0
|
$elif deprecated.
|
2023-03-20 16:54:45 +01:00 |
|
Christoffer Lerno
|
5ee0d52ff1
|
Deprecate :; in $if etc.
|
2023-03-20 01:03:54 +01:00 |
|
Christoffer Lerno
|
48a35b3277
|
Signbit, tests of frexp.
|
2023-03-18 19:13:17 +01:00 |
|
Christoffer Lerno
|
9f068ce84d
|
Shorter code.
|
2023-03-18 14:44:35 +01:00 |
|
Christoffer Lerno
|
8b0df0ee11
|
try? / catch?
|
2023-03-17 22:49:48 +01:00 |
|
Christoffer Lerno
|
fb761b0cc5
|
Added OnStack allocator. Added dirname, basename and extension to path functions.
|
2023-03-13 11:51:27 +01:00 |
|
Christoffer Lerno
|
4ffeada3c7
|
Updated stdlib. Prefer file::open. Fix to slice assign with distinct types.
|
2023-03-12 00:33:16 +01:00 |
|
Christoffer Lerno
|
7a2d73c690
|
mproved Path code.
|
2023-03-10 18:46:21 +01:00 |
|
Christoffer Lerno
|
d2a16961cf
|
More refactorings in the stdlib. More Path functions. Updated Win32 format for types. Fix bug with codegen of defer if ... More string functions.
|
2023-03-09 20:44:27 +01:00 |
|
Christoffer Lerno
|
1480b8f872
|
Update examples and contracts.
|
2023-03-08 15:57:42 +01:00 |
|
Christoffer Lerno
|
b94c647ead
|
Distinct String
|
2023-03-08 14:32:07 +01:00 |
|
Christoffer Lerno
|
9b81623680
|
Make string literals default to char[]
|
2023-03-08 11:24:11 +01:00 |
|
Christoffer Lerno
|
cfba19ab77
|
Remove deprecated to avoid warnings for VarString. Fix issue casting subarrays to distinct types.
|
2023-03-08 00:13:48 +01:00 |
|
Christoffer Lerno
|
89de0a70d2
|
"@ensure" now correctly only runs on non-optional results. Subtypes now merge to a single type. Beginning deprecation of "std::core::str". Refreshed String functions. Consistent use of ".using" parameter. Functions moved to string methods. Tests on more string methods. Fixes to split, rindex_of.
|
2023-03-08 00:13:48 +01:00 |
|
Christoffer Lerno
|
ab1c025c05
|
Fix issue for wasm
|
2023-03-07 10:12:03 +01:00 |
|
Christoffer Lerno
|
7008dab113
|
Add primitive and incomplete object printout. First version of json parser.
|
2023-03-07 09:53:01 +01:00 |
|
Christoffer Lerno
|
9eee250b10
|
Add DString init.
|
2023-03-06 09:12:52 +01:00 |
|
Christoffer Lerno
|
a4231823df
|
Add DString init.
|
2023-03-05 23:28:04 +01:00 |
|
Christoffer Lerno
|
d1626ada6f
|
List no longer uses a temp allocator by default. Incorrect check in the temp allocator removed. Added DString.
|
2023-03-05 23:14:16 +01:00 |
|
Christoffer Lerno
|
bd8bff85d6
|
Add tracking allocator. Fix substruct issue.
|
2023-02-27 17:05:27 +01:00 |
|
Christoffer Lerno
|
dd4edfb747
|
Updated malloc/calloc/realloc/free deprecation of old helper functions. Add checks to prevent incorrect alignment on types when using malloc. Better errors from $assert. Added @deprecated. Fixed issue using named arguments after varargs.
|
2023-02-27 15:03:27 +01:00 |
|
Christoffer Lerno
|
8ad8af861e
|
Fix to nested $if analysis.
|
2023-02-27 01:10:46 +01:00 |
|
Christoffer Lerno
|
feaf8b3b2c
|
Update HashMap functionality. Fix check when appending to VarString. Fix issue with decls accidentally invalidated during $checked eval. Fold optional when casting slice to pointer.
|
2023-02-27 00:10:01 +01:00 |
|
Christoffer Lerno
|
2f255ac5c3
|
Sha1.
|
2023-02-24 10:49:01 +01:00 |
|
Christoffer Lerno
|
a7ce0f95e6
|
Refactor allocator locations.
|
2023-02-24 00:29:24 +01:00 |
|
Christoffer Lerno
|
2a6339a25e
|
Updated native variants of file handling. Fixed $if folding chain.
|
2023-02-23 18:00:34 +01:00 |
|
Christoffer Lerno
|
f86aa136cb
|
Updated fopen. ZString.len does not output number of Char32. Add example.
|
2023-02-23 10:42:36 +01:00 |
|
Christoffer Lerno
|
ea163636d3
|
Add defaults to compare_exchange, small fix in printf. Disallow obviously wrong code that returns the pointer to a variable on the stack.
|
2023-02-18 12:21:15 +01:00 |
|
Christoffer Lerno
|
baa2e474b5
|
Added $$atomic_store and $$atomic_load.
|
2023-02-17 13:22:12 +01:00 |
|
Christoffer Lerno
|
818396b6f3
|
Updated module visibility import visibility. Fixes to @local
|
2023-02-15 09:47:51 +01:00 |
|
Dmitry Atamanov
|
4519eebe4d
|
Added @likely, @unlikely and @expect macros. (#727)
|
2023-02-15 00:02:01 +01:00 |
|
Christoffer Lerno
|
df77b692d6
|
Support "typedef"
|
2023-02-14 16:49:27 +01:00 |
|
Christoffer Lerno
|
5e457be605
|
Implement more @export / @private improvements. Make @private default… (#729)
|
2023-02-13 08:31:40 +01:00 |
|
Christoffer Lerno
|
3b49b87784
|
Fix for nolibc (eg wasm). Add multi global declarations. Simplicity wasm export / import. Prevent "extern" functions to have a function body.
|
2023-02-11 11:16:31 +01:00 |
|
Christoffer Lerno
|
1548cd06ef
|
Enable local multi-declarations. Fix of builtin argument checking. Migrate to @noinit.
|
2023-02-11 02:03:02 +01:00 |
|
Christoffer Lerno
|
18de9a146b
|
Fix copysign and make floatparse more strict.
|
2023-02-11 00:41:44 +01:00 |
|
Christoffer Lerno
|
74d868d113
|
Fix of bug in !floatval codegen. Added float parsing.
|
2023-02-10 22:17:55 +01:00 |
|
Christoffer Lerno
|
b3f15a867c
|
Added "clear" to VarString
|
2023-02-10 08:40:08 +01:00 |
|
Christoffer Lerno
|
a6b9405e21
|
Fix @expect.
|
2023-02-07 15:45:46 +01:00 |
|
Christoffer Lerno
|
4a102698b2
|
Add tests to math and add info in readme how to contribute.
|
2023-02-05 14:30:06 +01:00 |
|
Christoffer Lerno
|
dce171670f
|
Use printn rather than println. Add string methods for copying.
|
2023-02-04 19:48:42 +01:00 |
|
Christoffer Lerno
|
6b928c7a3d
|
Add saturated math and expect macros.
|
2023-02-03 00:25:29 +01:00 |
|