Wolfgang (Blub) Bumiller
|
533f9f2cfc
|
SY_PAREN_ constants to replace magic numbers
|
2012-11-11 16:36:20 +01:00 |
|
Wolfgang (Blub) Bumiller
|
30d87ee837
|
get-accessor calling in ast_array_index_codegen
|
2012-11-11 16:32:59 +01:00 |
|
Wolfgang (Blub) Bumiller
|
1ab303c528
|
Store accessors in the ast_value for access from within the ast - generate accessors after generating all the globals to not mess up the order of globals in the output
|
2012-11-11 16:22:09 +01:00 |
|
Wolfgang (Blub) Bumiller
|
7d9568f806
|
array accessor function genaration
|
2012-11-11 16:06:27 +01:00 |
|
Wolfgang (Blub) Bumiller
|
9324a96f77
|
properly in all situations where an array is part of a function's return type
|
2012-11-11 14:17:48 +01:00 |
|
Wolfgang (Blub) Bumiller
|
86e42ad123
|
Don't allow arrays and other unsupported parameter types to be used in parameter lists
|
2012-11-11 14:08:02 +01:00 |
|
Wolfgang (Blub) Bumiller
|
df77e062dc
|
Starting to add error messages for when using array types in expressions
|
2012-11-11 12:32:47 +01:00 |
|
Wolfgang (Blub) Bumiller
|
25ad091866
|
ast->ir for TYPE_ARRAY globals
|
2012-11-11 12:14:44 +01:00 |
|
Wolfgang (Blub) Bumiller
|
fb264b90b9
|
need to use ast_unref rather than ast_delete on the parsed array-size otherwise we end up deleting constants
|
2012-11-11 12:13:34 +01:00 |
|
Wolfgang (Blub) Bumiller
|
1fa67577e0
|
Removed -O3 from Makefile again
|
2012-11-11 11:52:05 +01:00 |
|
Wolfgang (Blub) Bumiller
|
a7d3a2d6ea
|
adding opts_max_array_size with a default of 1024, adding some TODO errors for arrays in the AST
|
2012-11-11 11:09:36 +01:00 |
|
Wolfgang (Blub) Bumiller
|
62d062f860
|
for arrays, ast_value will contain several ir_values, ir_v will point to the [0] element
|
2012-11-11 10:51:40 +01:00 |
|
Wolfgang (Blub) Bumiller
|
a3c8605e18
|
Fixing execloop indentation
|
2012-11-11 10:40:31 +01:00 |
|
Wolfgang (Blub) Bumiller
|
cf1ea01de3
|
parser_compile_file vs parser_compile_string
|
2012-11-11 10:33:29 +01:00 |
|
Wolfgang (Blub) Bumiller
|
a84f9483e6
|
lex_open_string
|
2012-11-11 10:27:09 +01:00 |
|
Wolfgang (Blub) Bumiller
|
00a28e48ee
|
parse arrays
|
2012-11-11 10:13:01 +01:00 |
|
Wolfgang (Blub) Bumiller
|
2cb15e8c2d
|
first parsing of [ - pushing temp changes
|
2012-11-11 10:13:01 +01:00 |
|
Wolfgang (Blub) Bumiller
|
bc43c6de47
|
-fadjust-vector-fields is now on by default in -std=gmqcc
|
2012-11-11 10:13:01 +01:00 |
|
Wolfgang (Blub) Bumiller
|
4977f605d4
|
array-subscript operator entries
|
2012-11-11 10:13:01 +01:00 |
|
Wolfgang (Blub) Bumiller
|
1869440fd9
|
Preparing to parse arrays: adding TYPE_ARRAY and union/struct TYPE_ constants to be consistent with fteqcc, filled type-arrays with their data, attempting to parse an array variable and added some error messages to the IR in case of unhandled types
|
2012-11-11 10:13:01 +01:00 |
|
Wolfgang (Blub) Bumiller
|
c87b056fdc
|
Support non-const initialized locals
|
2012-11-11 10:13:01 +01:00 |
|
Wolfgang (Blub) Bumiller
|
8687aa9a3e
|
Shouldn't require a 'local' keyword for local fieldpointers
|
2012-11-11 10:13:01 +01:00 |
|
Wolfgang (Blub) Bumiller
|
42b9848375
|
Locals of type .vector will now also properly generate all 3 locals
|
2012-11-11 10:13:01 +01:00 |
|
Wolfgang (Blub) Bumiller
|
a27750966f
|
globals of type .vector will now properly generate 3 globals
|
2012-11-11 10:13:00 +01:00 |
|
Wolfgang (Blub) Bumiller
|
52daf02444
|
Support in the AST for TYPE_FIELD globals which are no actual fields
|
2012-11-11 10:13:00 +01:00 |
|
Wolfgang (Blub) Bumiller
|
fe05d5afd9
|
added 'var' to the keywords when not in -std=qcc, supporting 'var .float x;' in global-scope to declare a field-pointer variable without creating a field of that name
|
2012-11-11 10:13:00 +01:00 |
|
Wolfgang (Blub) Bumiller
|
76b21ad192
|
-std=qcc now errors on C-style function syntax
|
2012-11-11 10:13:00 +01:00 |
|
Wolfgang (Blub) Bumiller
|
0bb90f284e
|
-std=qcc should error when the '=' is missing in a function declaration before the body
|
2012-11-11 10:13:00 +01:00 |
|
Wolfgang (Blub) Bumiller
|
0fc3a0c517
|
Removing old commented-out parsing code
|
2012-11-11 10:13:00 +01:00 |
|
Wolfgang (Blub) Bumiller
|
016257c44e
|
Making the = in front of function bodies optional
|
2012-11-11 10:13:00 +01:00 |
|
Wolfgang (Blub) Bumiller
|
b17fe4db0b
|
Testcases for parameter shadowing
|
2012-11-11 10:13:00 +01:00 |
|
Wolfgang (Blub) Bumiller
|
7f4047381e
|
new-style syntax
|
2012-11-11 10:13:00 +01:00 |
|
Wolfgang (Blub) Bumiller
|
e87fd30c48
|
Enable 'local-already-declared' check for locals even when they are functions - this was previously simply in the wrong 'if'
|
2012-11-11 10:13:00 +01:00 |
|
Wolfgang (Blub) Bumiller
|
8e30d7cb86
|
fixing a stupid typo - why doesn't any compiler warn about this crap
|
2012-11-11 10:12:45 +01:00 |
|
Dale Weiler
|
775f8ae005
|
Trash asm.c
|
2012-11-10 21:15:53 +00:00 |
|
Dale Weiler
|
6b12f4435c
|
Make warns.def and flags.def into a single opts.def.
|
2012-11-10 21:13:09 +00:00 |
|
Dale Weiler
|
c155ef1582
|
Trash proposal, I'm not commited to this relationship anymore. Also I cannot afford a ring on this salary .. well I can, but you're a dumb bitch.
|
2012-11-10 21:05:46 +00:00 |
|
Dale Weiler
|
df07531298
|
Trash misinofmred README
|
2012-11-10 21:02:55 +00:00 |
|
Dale Weiler
|
793ab14b87
|
Trash data/ (reason: see last commit)
|
2012-11-10 20:59:58 +00:00 |
|
Dale Weiler
|
01bfdd2ae5
|
Dump old tests, test suite will take over .. It isn't activly used, just killing space and looking fugly. If required for reference, see older revisions.
|
2012-11-10 20:57:54 +00:00 |
|
Dale Weiler
|
852fa9d034
|
Merge branch 'master' of github.com:graphitemaster/gmqcc
|
2012-11-10 20:54:26 +00:00 |
|
Dale Weiler
|
9ad35a2817
|
Remove execloop.h, we still use xmacros, but it's done with #include __FILE__ trickery. Please do not kill me, it doesn't look that bad, conditional compilation is even used in eglibc like this :P
|
2012-11-10 20:53:37 +00:00 |
|
Wolfgang (Blub) Bumiller
|
b5ea787044
|
util_memory_r with byte=0 will now call util_memory_d and return NULL
|
2012-11-10 12:17:05 +01:00 |
|
Wolfgang (Blub) Bumiller
|
09e18e1bbf
|
mem_r to realloc
|
2012-11-10 11:16:19 +01:00 |
|
Wolfgang (Blub) Bumiller
|
04fd3d04d9
|
the codegen has to use STORE_V for .vector, not STORE_FLD - contrary to the regular global-assignment, even fteqcc gets this right, so gmqcc should too
|
2012-11-09 20:11:17 +01:00 |
|
Wolfgang (Blub) Bumiller
|
9141217481
|
Merged parsing of variable and field declarations into 1 function
|
2012-11-09 19:10:27 +01:00 |
|
Wolfgang (Blub) Bumiller
|
68148dd0e8
|
Delete an explicit #define
|
2012-11-06 19:50:16 +01:00 |
|
Wolfgang (Blub) Bumiller
|
e143db0cae
|
gcc lost it's magic analyzer and now complains about uninitialized stuff... <sadface>
|
2012-11-04 11:41:44 +01:00 |
|
Wolfgang (Blub) Bumiller
|
5ff0013357
|
error on more than 8 params for now since more need special treatment
|
2012-11-02 22:51:26 +01:00 |
|
Wolfgang (Blub) Bumiller
|
bf256abd66
|
Delete the test preprocess.c file and get the use/build part out of main.c/Makefile
|
2012-11-02 18:59:21 +01:00 |
|