Christoffer Lerno
|
5edafc5b2f
|
Test for #149 ct lists.
|
2022-05-12 19:13:49 +02:00 |
|
Christoffer Lerno
|
e09e5c06d3
|
User defined attributes.
|
2022-05-11 20:55:09 +02:00 |
|
Christoffer Lerno
|
b0c55ff777
|
Support enum associated values.
|
2022-05-11 20:55:09 +02:00 |
|
Christoffer Lerno
|
9691d50a6f
|
@ is now part of the name of an attribute or a macro. Macros without '@' must be function-like.
|
2022-05-08 22:16:33 +02:00 |
|
Christoffer Lerno
|
29a9769651
|
Ordinal based enums.
|
2022-05-08 21:39:00 +02:00 |
|
Christoffer Lerno
|
22ee082d00
|
0.2.1 SysV ABI fix for passing certain things by struct. Fix implicitly converting to float in the case of myfloat *= -1. Prefer inferred constant over global. Allow locals to shadow global variables.
|
2022-04-27 16:43:25 +02:00 |
|
Christoffer Lerno
|
890c4bc435
|
0.2.0. Build system improvements. Target changes x64-windows -> windows-x64, x64-darwin -> macos-x64. Improved mac support. LLD linking for Mac, Windows, Linux. Cross linking for Mac, Windows. Clean up string use. Fix of debug handling of multiple compilation units per module. MSVC CI
|
2022-04-26 13:20:33 +02:00 |
|
Dmitry Atamanov
|
828724f593
|
Add more vector tests (#430)
* Add more vector tests
* Added .ll output.
Co-authored-by: Christoffer Lerno <christoffer@aegik.com>
|
2022-04-14 09:55:11 +02:00 |
|
Dmitry Atamanov
|
151cbfd706
|
Semi-implemented foreach for vectors (#423)
Implement foreach for vectors
|
2022-04-09 20:09:35 +02:00 |
|
Christoffer Lerno
|
b99db4be24
|
Allocators. Rename of "optenum" to fault. Memcpy and memset added. Cleanup of declaration use.
|
2022-04-09 20:07:59 +02:00 |
|
Christoffer Lerno
|
8743223dd6
|
Allocators. Rename of "optenum" to fault. Memcpy and memset added. Cleanup of declaration use.
|
2022-04-09 20:07:59 +02:00 |
|
Christoffer Lerno
|
2e2a1ca21a
|
Fix defer with static variables.
|
2022-03-31 10:11:37 +02:00 |
|
Christoffer Lerno
|
34bd5fa6da
|
Fix of macro defer with bodies.
|
2022-03-28 10:19:24 +02:00 |
|
Christoffer Lerno
|
b31629c5e8
|
Removal of "or_else jump". Fixes to defer & macros/blocks, optimized failable return. @noscope macros removed. Disallow meaningless defer.
Correctly show error on return or rethrow inside of a defer. Fix copying an access expression. Removing scoped expr.
|
2022-03-26 20:16:36 +01:00 |
|
Christoffer Lerno
|
6a9b14d107
|
Added regression test for errors.
|
2022-03-21 18:18:14 +01:00 |
|
Christoffer Lerno
|
8b8a8d81db
|
Fix of issue with "a ?? false"
|
2022-03-21 13:22:59 +01:00 |
|
Christoffer Lerno
|
05d8e6c7b8
|
Fix debug panic for vector shift and division.
|
2022-03-20 19:39:31 +01:00 |
|
Christoffer Lerno
|
6789fab93c
|
Panic function that may be redefined. Trap and stacktrace builtins. Bug using builtin fixed. Fixes to using $$LINE and friends. Produces a stacktrace on error.
|
2022-03-18 12:43:17 +01:00 |
|
Christoffer Lerno
|
55598b2de8
|
Remove multi-line strings.
|
2022-03-12 00:40:06 +01:00 |
|
Christoffer Lerno
|
1061b4e1dd
|
Make doc an AST type.
|
2022-03-11 12:24:07 +01:00 |
|
Christoffer Lerno
|
8f6fb8b7d7
|
Move body param as decl. Fix lexer bug with docs.
|
2022-03-10 14:54:52 +01:00 |
|
Christoffer Lerno
|
4258fe4d01
|
Simple check for [in] and [out] parameters.
|
2022-03-10 12:46:45 +01:00 |
|
Christoffer Lerno
|
0565e87e5e
|
Support '@pure' and parse the optreturn tag.
|
2022-03-10 09:46:30 +01:00 |
|
Christoffer Lerno
|
322d714305
|
Dev (#404)
Remove 'errtype' name and reduce Expr / TypeInfo memory footprint.
|
2022-03-08 23:38:27 +01:00 |
|
Christoffer Lerno
|
069a2d40cb
|
Changing how defer works. Remove of undef. Simplify ensure.
|
2022-03-08 14:15:31 +01:00 |
|
Christoffer Lerno
|
2802b2b96d
|
Ensure, $eval and $evaltype, @unreachable() replaces $unreachable. <Type>.sizeof
|
2022-03-04 15:49:17 +01:00 |
|
Christoffer Lerno
|
4f4bc80953
|
Symtab has a new hash map type. New, small, sourcespan, external symbols simplified. Updated docs.
|
2022-03-01 10:32:52 +01:00 |
|
Christoffer Lerno
|
df3e51c17e
|
Implicit imports.
|
2022-02-16 20:41:54 +01:00 |
|
Christoffer Lerno
|
7226bff6ea
|
Use JSON, unifying settings.
|
2022-02-15 18:53:54 +01:00 |
|
Christoffer Lerno
|
d42193dbd6
|
Fixes the alloca alignment on x64 for alignment > 16. Improved indexing into ConstInitializer adding const indexing into a const array during compile time. Add a temporary enum values result.
|
2022-02-08 11:41:34 +01:00 |
|
Christoffer Lerno
|
ee32a5fd47
|
Added $stringify. Remove of editor_plugin folder.
|
2022-02-02 15:22:28 +01:00 |
|
Christoffer Lerno
|
06917f2e65
|
Added "guess a number". Fix CT enum / int comparison. Fix some array pointer decay scenarios. Infer type of expression blocks. Correctly merge anyerr.
|
2022-02-01 22:46:32 +01:00 |
|
Christoffer Lerno
|
ba66aaaf12
|
Foreach overload is now done using attributes (@operator(elementat), @operator(elementref) and @operator(len)) rather than reserved functions.
|
2022-01-29 16:45:03 +01:00 |
|
Christoffer Lerno
|
e5bcb74822
|
Added levenshtein.c3 to working files. Fixes to reverse indexing. Added min/max functions. Tentatively removed "opaque"
|
2022-01-26 17:40:01 +01:00 |
|
Christoffer Lerno
|
8922399c36
|
Add $for
|
2022-01-24 22:52:01 +01:00 |
|
Christoffer Lerno
|
1e7ad2e241
|
Add $foreach
|
2022-01-24 18:53:44 +01:00 |
|
Christoffer Lerno
|
2c5ae858b8
|
Re-add () to ct constructs.
|
2022-01-24 00:52:43 +01:00 |
|
Christoffer Lerno
|
ef95c1a630
|
Fix $switch. And make top level $switch work.
|
2022-01-24 00:01:54 +01:00 |
|
Christoffer Lerno
|
b2be8349ed
|
Add typeless varargs.
|
2022-01-23 19:43:57 +01:00 |
|
Christoffer Lerno
|
dce33ba5b5
|
Fixing #380 where const aggregates were copied by value.
|
2022-01-20 16:52:28 +01:00 |
|
Christoffer Lerno
|
e6ad9c324d
|
This fixes the bug with "case 3 .. 1" #357
|
2022-01-19 23:11:03 +01:00 |
|
Christoffer Lerno
|
556be2ff7f
|
"@autoimport" attribute #366
|
2022-01-18 23:16:48 +01:00 |
|
Christoffer Lerno
|
8adb0faa06
|
Multi module import support. #354
|
2022-01-18 22:53:31 +01:00 |
|
Christoffer Lerno
|
b6450861d2
|
Cast no longer needs (type)(expr) format. Ordinary C (type)expr now works.
|
2022-01-18 22:32:12 +01:00 |
|
Christoffer Lerno
|
1e56948a22
|
Prepare removing "func"
|
2022-01-18 14:15:44 +01:00 |
|
Christoffer Lerno
|
e4e8abbc6c
|
Dev (#376)
Errno updates with errno for linux/win/macos. Updated $$ syntax to also match compiler constants.
|
2022-01-18 01:31:14 +01:00 |
|
Christoffer Lerno
|
4059d22315
|
Remove unnecessary load in LLVM statement lowering. Added more tests from Clang.
|
2022-01-17 17:08:28 +01:00 |
|
Christoffer Lerno
|
05f0059b1b
|
Fix float conversion. Strings as array initializers work much better.
|
2022-01-17 16:06:17 +01:00 |
|
Christoffer Lerno
|
bc3b58b3e3
|
Optimized ternary where both branches are empty.
|
2022-01-17 12:01:27 +01:00 |
|
Christoffer Lerno
|
99ea0afcbf
|
Optimize multiple int casts on ptrtoint, into a single cast. Fixed incorrect widening cast from signed -> unsigned.
|
2022-01-17 00:45:26 +01:00 |
|