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.

This commit is contained in:
Christoffer Lerno
2021-06-23 11:39:20 +02:00
committed by Christoffer Lerno
parent 33fc08542e
commit 5a6cdd25ef
34 changed files with 458 additions and 408 deletions

View File

@@ -12,3 +12,4 @@ func void test()
return;
}
/* /* nested /* comments! */ !! */ goes here */

View File

@@ -0,0 +1,25 @@
struct Test1
{
Test1 *x;
}
struct Test2
{
Test2[] y;
}
struct Test3 // #error: Recursive definition
{
Test3[4] z;
}
struct Test4
{
Test4[3]* w;
}
struct Test5
{
Test5[3][] w;
}