Christoffer Lerno
50a36baf34
array.len returns a compint and slice.len[] returns an usize from compint
2021-07-14 15:14:25 +02:00
kvk1920
9bd4568ef5
Windows compatibility ( #223 )
...
* MSYS2 CI
2021-07-14 14:19:27 +02:00
Christoffer Lerno
0111fe936e
Adds missing alignment to sret.
2021-07-14 11:53:09 +02:00
Christoffer Lerno
89a1f62ea8
This improves error messages when using the wrong arguments for "define". Closes #221
2021-07-13 23:52:04 +02:00
Christoffer Lerno
c0d8f7ba90
Incorrect error message when trying to subtract incompatible types from each other. Also, allowing ulong - int should just work. Issue #222 .
2021-07-13 23:26:08 +02:00
Christoffer Lerno
c94eacd26f
Fixes issue where cont/break/next stack isn't pushed for expression blocks.
2021-07-13 16:09:45 +02:00
Christoffer Lerno
df311fa8be
This addresses #218 , bad error message lexing the exponent.
2021-07-13 13:39:38 +02:00
kvk1920
050382b68e
Windows compatibility ( #207 )
...
* incorrect environment detection fixed
* use %zu instead of %ld for size_t
* fix rounding in integer division
* fix compiler error on Windows
* implement missed functions
* make linker available if MinGW environment is used
* make linker available under MSYS2 Clang64 and MSYS2 MinGW64
2021-07-13 12:59:55 +02:00
Christoffer Lerno
9a6d8d7657
Corrected hex double literal parsing (although it's not 100% correct yet)
2021-07-12 23:45:34 +02:00
Christoffer Lerno
a28502a6af
Error on using "main" in a path.
2021-07-12 22:34:15 +02:00
Christoffer Lerno
9ee24b5846
Improve error message on import "foo", module "foo", and import statements out of order.
2021-07-12 21:07:14 +02:00
kvk1920
3173d09e56
incorrect environment detection fixed
2021-07-11 13:49:17 +02:00
Christoffer Lerno
9614b9e31f
Fix incorrect handling of indirect returns in the ABI
2021-07-11 13:47:04 +02:00
Christoffer Lerno
2134a9f77b
$offsetof added.
2021-07-11 01:22:21 +02:00
Christoffer Lerno
a5ce7c47ba
Adding "require" precondition. Corrects inferred arrays and fixes so that it uses [*] everywhere. Distict type will now allow methods to be added to it. Added $alignof and $sizeof.
2021-07-09 23:57:35 +02:00
Christoffer Lerno
12ffeeaad7
Fixes to the cname patch.
2021-06-30 22:41:34 +02:00
Christoffer Lerno
e530869aeb
Change "cname" to "extname"
2021-06-30 22:36:57 +02:00
Christoffer Lerno
fff08a47ac
Add AARCH as "supported"
2021-06-30 11:52:25 +02:00
Christoffer Lerno
3c612abe26
Add AARCH64 missing max size for return. Allow 1 character module names.
2021-06-30 11:47:57 +02:00
gdm85
93062d8be0
Always build testproject as part of CI
2021-06-28 21:33:31 +02:00
gdm85
c9cef7dace
Tag images with Ubuntu version
...
Copy also lib
2021-06-28 21:33:31 +02:00
gdm85
776377dfa2
Use a.out as default output binary
...
Better document how to build example in README.md
2021-06-28 21:33:31 +02:00
gdm85
cf8c87c122
Make testproject buildable
2021-06-28 21:33:31 +02:00
Christoffer Lerno
b7ef7f9f06
Change to DynamicNoPic on PIC none
2021-06-28 10:17:58 +02:00
Christoffer Lerno
db1261e197
Moving reloc mode.
2021-06-28 09:53:17 +02:00
Christoffer Lerno
ce8940e7f3
Moving reloc mode.
2021-06-28 09:52:05 +02:00
Christoffer Lerno
b1e49c68b7
Moving reloc mode.
2021-06-28 09:50:26 +02:00
Christoffer Lerno
94926dfb1e
Log PIC usage.
2021-06-28 09:38:22 +02:00
Christoffer Lerno
59ec653fd3
Fix issue resolving paths for builds. Changed default output to a.out as per @gdm85's suggestion. Fixes to test project from @gdm85's pull req.
2021-06-28 09:11:20 +02:00
Christoffer Lerno
aa786271fb
Update PIE / PIC dependency.
2021-06-28 08:35:54 +02:00
Christoffer Lerno
84128eb5e9
Move PIE settings into linker. Fixed ordering of PIE settings.
2021-06-28 02:00:44 +02:00
Christoffer Lerno
4ed2596164
Removes "yield"
2021-06-28 00:19:46 +02:00
Christoffer Lerno
1d0c2ab2b0
Unifies function and macro argument parsing. Removed generic and attribute parsing. Prepare removal of yield.
2021-06-27 23:09:37 +02:00
data-man
1e8a71ea62
Moving grammar files to the resources/grammar dir
2021-06-27 13:01:40 +02:00
Christoffer Lerno
038ed7f9d5
Macro methods added.
2021-06-26 17:42:45 +02:00
Christoffer Lerno
9572c4afc9
Top level $if now uses $if: / $endif; Fix of boolean globals. Fix of $else: clause. Fix of $assert inside of $if
2021-06-24 18:01:59 +02:00
Christoffer Lerno
321ee81c9d
Complete removal of /+ +/
2021-06-24 01:29:53 +02:00
Christoffer Lerno
9a202e3c3d
Remove predefined c type aliases.
2021-06-24 01:11:57 +02:00
Christoffer Lerno
5a6cdd25ef
Introduced ${...} syntax for constants. Fixed issue where constants were not correctly handled for macros. /* */ comments are nesting. Added LINE, FUNC, FILE defines. Corrected shallow resolution of subarrays. Added int defines. Removed Vararray.
2021-06-24 00:59:25 +02:00
gdm85
33fc08542e
Add support of builds for Ubuntu 18/20 through Docker
2021-06-15 09:57:34 +02:00
data-man
2294372f6e
Workaround for clang 13.0 warning
2021-06-13 02:05:52 +02:00
data-man
b5006b3a63
Update c3.nanorc
2021-06-13 01:08:45 +02:00
Christoffer Lerno
3a75032ba9
Workaround for GCC warning.
2021-06-11 18:39:48 +02:00
Christoffer Lerno
117cc6339b
Add data to end of VHeader.
2021-06-11 17:35:44 +02:00
Christoffer Lerno
bbfe8c434e
Fixed incorrect count.
2021-06-11 16:58:39 +02:00
Christoffer Lerno
e650ae771f
Thread pool and some updated lib code.
2021-06-11 13:23:45 +02:00
Christoffer Lerno
dafe0e6fb6
Updated scope code and variable tracking. Added trailing body macros.
2021-06-10 15:06:12 +02:00
André
bf8e665120
nano syntax highlighting for himBHsstatements
2021-06-07 11:41:32 +02:00
Christoffer Lerno
9f545c3f89
Added bigger test for regression.
2021-06-01 10:08:51 +02:00
Christoffer Lerno
9fd6c06861
Remove debug printout.
2021-05-31 23:20:01 +02:00