]> git.xonotic.org Git - xonotic/gmqcc.git/log
xonotic/gmqcc.git
11 years agoMerge branch 'master' into blub/bc3
Wolfgang Bumiller [Sat, 28 Jul 2012 16:13:24 +0000 (18:13 +0200)]
Merge branch 'master' into blub/bc3

11 years agoast_store to take ast_expression on its left, rather than ast_value. Assigning to...
Wolfgang Bumiller [Sat, 28 Jul 2012 16:13:12 +0000 (18:13 +0200)]
ast_store to take ast_expression on its left, rather than ast_value. Assigning to a vector member would not put an ast_value on the left, but an ast_member, thus: ast_expression now already

11 years agoAdding more cleanup; checking whether or not a return has the right type
Wolfgang Bumiller [Sat, 28 Jul 2012 14:06:44 +0000 (16:06 +0200)]
Adding more cleanup; checking whether or not a return has the right type

11 years agoexecutor: prog_delete: deleting builtins properly - unless statically allocated;...
Wolfgang Bumiller [Fri, 27 Jul 2012 17:27:56 +0000 (19:27 +0200)]
executor: prog_delete: deleting builtins properly - unless statically allocated; added a qc_builtins array for the standalone executor containing 'print'

11 years agoMerge branch 'master' into blub/bc3
Wolfgang Bumiller [Fri, 27 Jul 2012 17:18:21 +0000 (19:18 +0200)]
Merge branch 'master' into blub/bc3

11 years ago_MEM_ -> MEM_ again at use
Wolfgang Bumiller [Fri, 27 Jul 2012 17:18:04 +0000 (19:18 +0200)]
_MEM_ -> MEM_ again at use

11 years agoMerging master with newly merged executor
Wolfgang Bumiller [Fri, 27 Jul 2012 17:17:03 +0000 (19:17 +0200)]
Merging master with newly merged executor

11 years agoMerging master and adapting _MEM_* on new mem-vector functions
Wolfgang Bumiller [Fri, 27 Jul 2012 17:13:03 +0000 (19:13 +0200)]
Merging master and adapting _MEM_* on new mem-vector functions

11 years agoMerge branch 'master' into blub/bc3
Wolfgang Bumiller [Fri, 27 Jul 2012 17:02:39 +0000 (19:02 +0200)]
Merge branch 'master' into blub/bc3

11 years ago_MEM_... -> MEM_...
Wolfgang Bumiller [Fri, 27 Jul 2012 17:02:18 +0000 (19:02 +0200)]
_MEM_... -> MEM_...

11 years agoHandling output file, writing output file
Wolfgang Bumiller [Fri, 27 Jul 2012 16:22:39 +0000 (18:22 +0200)]
Handling output file, writing output file

11 years agoHandling vector constants now too
Wolfgang Bumiller [Fri, 27 Jul 2012 14:20:53 +0000 (16:20 +0200)]
Handling vector constants now too

11 years agoHandling string-immediates
Wolfgang Bumiller [Fri, 27 Jul 2012 14:10:43 +0000 (16:10 +0200)]
Handling string-immediates

11 years agoMerge branch 'master' into blub/bc3
Wolfgang Bumiller [Fri, 27 Jul 2012 13:27:41 +0000 (15:27 +0200)]
Merge branch 'master' into blub/bc3

11 years agoremoving an old comment
Wolfgang Bumiller [Fri, 27 Jul 2012 13:27:34 +0000 (15:27 +0200)]
removing an old comment

11 years agoAdapting to changes of where parameters are stored in master
Wolfgang Bumiller [Fri, 27 Jul 2012 13:26:48 +0000 (15:26 +0200)]
Adapting to changes of where parameters are stored in master

11 years agoMerge branch 'master' into blub/bc3
Wolfgang Bumiller [Fri, 27 Jul 2012 13:24:13 +0000 (15:24 +0200)]
Merge branch 'master' into blub/bc3

11 years agoMoving parameters to from ast_value to ast_expression_common, it's part of the type...
Wolfgang Bumiller [Fri, 27 Jul 2012 13:22:39 +0000 (15:22 +0200)]
Moving parameters to from ast_value to ast_expression_common, it's part of the type after all

11 years agoStarting some typechecking. Function parameters must be part of ast_expression_common...
Wolfgang Bumiller [Fri, 27 Jul 2012 13:07:25 +0000 (15:07 +0200)]
Starting some typechecking. Function parameters must be part of ast_expression_common, they're part of the type, not ast_value...

11 years agoHandling calls correctly now
Wolfgang Bumiller [Fri, 27 Jul 2012 13:02:39 +0000 (15:02 +0200)]
Handling calls correctly now

11 years agoParsing function calls
Wolfgang Bumiller [Fri, 27 Jul 2012 12:40:43 +0000 (14:40 +0200)]
Parsing function calls

11 years agoParsing a comma as an operator now - unless noop is true
Wolfgang Bumiller [Fri, 27 Jul 2012 11:47:01 +0000 (13:47 +0200)]
Parsing a comma as an operator now - unless noop is true

11 years agofixing comma operator
Wolfgang Bumiller [Fri, 27 Jul 2012 11:42:02 +0000 (13:42 +0200)]
fixing comma operator

11 years agoMerge branch 'master' into blub/bc3
Wolfgang Bumiller [Fri, 27 Jul 2012 11:40:34 +0000 (13:40 +0200)]
Merge branch 'master' into blub/bc3

11 years agoast_block_set_type
Wolfgang Bumiller [Fri, 27 Jul 2012 11:39:58 +0000 (13:39 +0200)]
ast_block_set_type

11 years agokeeping blocks around
Wolfgang Bumiller [Fri, 27 Jul 2012 11:28:57 +0000 (13:28 +0200)]
keeping blocks around

11 years agofactoring out the closing-paren handling code since it'll be used recursively
Wolfgang Bumiller [Fri, 27 Jul 2012 11:07:16 +0000 (13:07 +0200)]
factoring out the closing-paren handling code since it'll be used recursively

11 years agothe comma is now in the operator list
Wolfgang Bumiller [Fri, 27 Jul 2012 10:53:15 +0000 (12:53 +0200)]
the comma is now in the operator list

11 years agoopening paren and comma to the operator stack for function calls
Wolfgang Bumiller [Fri, 27 Jul 2012 10:35:14 +0000 (12:35 +0200)]
opening paren and comma to the operator stack for function calls

11 years agoRemoving some debug output
Wolfgang Bumiller [Fri, 27 Jul 2012 10:28:14 +0000 (12:28 +0200)]
Removing some debug output

11 years agohandle parameters in parser_find_local
Wolfgang Bumiller [Fri, 27 Jul 2012 10:25:46 +0000 (12:25 +0200)]
handle parameters in parser_find_local

11 years agoParse named parameters of functions
Wolfgang Bumiller [Thu, 26 Jul 2012 21:33:19 +0000 (23:33 +0200)]
Parse named parameters of functions

11 years agoparse ahead into the return expression as expected
Wolfgang Bumiller [Thu, 26 Jul 2012 21:26:34 +0000 (23:26 +0200)]
parse ahead into the return expression as expected

11 years agoListen to the warning instead...
Wolfgang Bumiller [Thu, 26 Jul 2012 21:25:33 +0000 (23:25 +0200)]
Listen to the warning instead...

11 years agoShutup a warning...
Wolfgang Bumiller [Thu, 26 Jul 2012 21:24:36 +0000 (23:24 +0200)]
Shutup a warning...

11 years agoMerge branch 'master' into blub/bc3
Wolfgang Bumiller [Thu, 26 Jul 2012 21:24:12 +0000 (23:24 +0200)]
Merge branch 'master' into blub/bc3

11 years agoast_return_new doesn't take an operator, we use INSTR_RETURN always, never INSTR_DONE...
Wolfgang Bumiller [Thu, 26 Jul 2012 21:23:47 +0000 (23:23 +0200)]
ast_return_new doesn't take an operator, we use INSTR_RETURN always, never INSTR_DONE for explicit returns

11 years agoMerge branch 'master' into blub/bc3
Wolfgang Bumiller [Thu, 26 Jul 2012 21:22:53 +0000 (23:22 +0200)]
Merge branch 'master' into blub/bc3

11 years agohandling return
Wolfgang Bumiller [Thu, 26 Jul 2012 21:22:51 +0000 (23:22 +0200)]
handling return

11 years agoreturn is a keyword
Wolfgang Bumiller [Thu, 26 Jul 2012 21:18:15 +0000 (23:18 +0200)]
return is a keyword

11 years agoINSTR_NOT_* output to opC not opB...
Wolfgang Bumiller [Thu, 26 Jul 2012 20:11:46 +0000 (22:11 +0200)]
INSTR_NOT_* output to opC not opB...

11 years agoast_return
Wolfgang Bumiller [Thu, 26 Jul 2012 19:18:39 +0000 (21:18 +0200)]
ast_return

11 years agoast/ir support for unary instructions
Wolfgang Bumiller [Thu, 26 Jul 2012 18:45:18 +0000 (20:45 +0200)]
ast/ir support for unary instructions

11 years agoMerge branch 'master' into blub/bc3
Wolfgang Bumiller [Sun, 22 Jul 2012 10:35:29 +0000 (12:35 +0200)]
Merge branch 'master' into blub/bc3

11 years agoRemoved params from ast_function again. It really is superfluous to copy them, just...
Wolfgang Bumiller [Sun, 22 Jul 2012 10:35:10 +0000 (12:35 +0200)]
Removed params from ast_function again. It really is superfluous to copy them, just generate them from its ast_value's param list

11 years agoMerge branch 'master' into blub/bc3
Wolfgang Bumiller [Sun, 22 Jul 2012 10:22:33 +0000 (12:22 +0200)]
Merge branch 'master' into blub/bc3

11 years agofix a warning about a format string
Wolfgang Bumiller [Sun, 22 Jul 2012 10:22:25 +0000 (12:22 +0200)]
fix a warning about a format string

11 years agoMerge branch 'master' into blub/bc3
Wolfgang Bumiller [Sun, 22 Jul 2012 10:21:43 +0000 (12:21 +0200)]
Merge branch 'master' into blub/bc3

11 years agouse type_sizeof in another place where it wasn't
Wolfgang Bumiller [Sun, 22 Jul 2012 10:20:06 +0000 (12:20 +0200)]
use type_sizeof in another place where it wasn't

11 years agoast_function generates parameter locals, ir_function_create_local now allows adding...
Wolfgang Bumiller [Sun, 22 Jul 2012 10:15:48 +0000 (12:15 +0200)]
ast_function generates parameter locals, ir_function_create_local now allows adding parameters as long as no local variables have been added yet

11 years agostore_param storetype, parameter value list added to ast_function
Wolfgang Bumiller [Sun, 22 Jul 2012 10:07:07 +0000 (12:07 +0200)]
store_param storetype, parameter value list added to ast_function

11 years agoHandling parenthesis in expressions
Wolfgang Bumiller [Sun, 22 Jul 2012 09:17:01 +0000 (11:17 +0200)]
Handling parenthesis in expressions

11 years agoast_binary_new should determine the return type...
Wolfgang Bumiller [Fri, 20 Jul 2012 19:42:36 +0000 (21:42 +0200)]
ast_binary_new should determine the return type...

11 years agothe IR won't create globals of the same name - make names starting with # an exception
Wolfgang Bumiller [Fri, 20 Jul 2012 19:36:37 +0000 (21:36 +0200)]
the IR won't create globals of the same name - make names starting with # an exception

11 years agoadd locals to their ast_block, can create stores now
Wolfgang Bumiller [Fri, 20 Jul 2012 19:32:51 +0000 (21:32 +0200)]
add locals to their ast_block, can create stores now

11 years agoHandling some operands, added type_name array
Wolfgang Bumiller [Fri, 20 Jul 2012 19:19:30 +0000 (21:19 +0200)]
Handling some operands, added type_name array

11 years agostatic operator_count
Wolfgang Bumiller [Fri, 20 Jul 2012 13:34:51 +0000 (15:34 +0200)]
static operator_count

11 years agoparser_sy_pop, has to pop operators and operands and push the result
Wolfgang Bumiller [Fri, 20 Jul 2012 13:20:07 +0000 (15:20 +0200)]
parser_sy_pop, has to pop operators and operands and push the result

11 years agoworking on operator translation
Wolfgang Bumiller [Fri, 20 Jul 2012 13:02:49 +0000 (15:02 +0200)]
working on operator translation

11 years agohandling of operations
Wolfgang Bumiller [Fri, 20 Jul 2012 13:02:18 +0000 (15:02 +0200)]
handling of operations

11 years agoStarting expression parsing
Wolfgang Bumiller [Fri, 20 Jul 2012 12:45:23 +0000 (14:45 +0200)]
Starting expression parsing

11 years agokeeping float immediates/constants in parser's imm_float vector
Wolfgang Bumiller [Fri, 20 Jul 2012 12:34:45 +0000 (14:34 +0200)]
keeping float immediates/constants in parser's imm_float vector

11 years agooperator ids need to be written later -_-
Wolfgang Bumiller [Fri, 20 Jul 2012 12:19:19 +0000 (14:19 +0200)]
operator ids need to be written later -_-

11 years agoAdding ids to operators for SYA later
Wolfgang Bumiller [Fri, 20 Jul 2012 12:04:52 +0000 (14:04 +0200)]
Adding ids to operators for SYA later

11 years agostatement/expression proto
Wolfgang Bumiller [Fri, 20 Jul 2012 11:00:11 +0000 (13:00 +0200)]
statement/expression proto

11 years agoHandling of multiple variables with comma
Wolfgang Bumiller [Fri, 20 Jul 2012 10:53:42 +0000 (12:53 +0200)]
Handling of multiple variables with comma

11 years agoLocal variable parsing
Wolfgang Bumiller [Fri, 20 Jul 2012 10:46:59 +0000 (12:46 +0200)]
Local variable parsing

11 years agoKeep track of blocklocal in parser_parse_block
Wolfgang Bumiller [Thu, 19 Jul 2012 18:30:36 +0000 (20:30 +0200)]
Keep track of blocklocal in parser_parse_block

11 years agoFactoring out variable parsing so it can be used for locals too
Wolfgang Bumiller [Thu, 19 Jul 2012 18:15:30 +0000 (20:15 +0200)]
Factoring out variable parsing so it can be used for locals too

11 years agoProto for parsing a function body
Wolfgang Bumiller [Thu, 19 Jul 2012 17:57:24 +0000 (19:57 +0200)]
Proto for parsing a function body

11 years agonull-init parser_t, add a function member to it
Wolfgang Bumiller [Thu, 19 Jul 2012 17:55:25 +0000 (19:55 +0200)]
null-init parser_t, add a function member to it

11 years agoProperly parse functions without parameters
Wolfgang Bumiller [Thu, 19 Jul 2012 17:53:58 +0000 (19:53 +0200)]
Properly parse functions without parameters

11 years agoParse away the semicolon after an assignment
Wolfgang Bumiller [Thu, 19 Jul 2012 17:52:44 +0000 (19:52 +0200)]
Parse away the semicolon after an assignment

11 years agomerging master, and adapting
Wolfgang Bumiller [Thu, 19 Jul 2012 16:14:25 +0000 (18:14 +0200)]
merging master, and adapting

11 years agoremoving params vector from ast_function, params are stored in its ast_value only
Wolfgang Bumiller [Thu, 19 Jul 2012 16:14:08 +0000 (18:14 +0200)]
removing params vector from ast_function, params are stored in its ast_value only

11 years agoadditional/superfluous check removed
Wolfgang Bumiller [Thu, 19 Jul 2012 16:10:12 +0000 (18:10 +0200)]
additional/superfluous check removed

11 years agoMerge branch 'master' into blub/bc3
Wolfgang Bumiller [Thu, 19 Jul 2012 16:06:56 +0000 (18:06 +0200)]
Merge branch 'master' into blub/bc3

11 years agoir_function_dump to print builtins as such
Wolfgang Bumiller [Thu, 19 Jul 2012 16:06:37 +0000 (18:06 +0200)]
ir_function_dump to print builtins as such

11 years agoProperly check if it's a function... checking the parameter count is not a correct...
Wolfgang Bumiller [Thu, 19 Jul 2012 16:04:57 +0000 (18:04 +0200)]
Properly check if it's a function... checking the parameter count is not a correct check

11 years agobuiltins are negative
Wolfgang Bumiller [Thu, 19 Jul 2012 15:54:35 +0000 (17:54 +0200)]
builtins are negative

11 years agohandling function definitions better, generating functions
Wolfgang Bumiller [Thu, 19 Jul 2012 15:53:45 +0000 (17:53 +0200)]
handling function definitions better, generating functions

11 years agoHandling definition of builtins
Wolfgang Bumiller [Thu, 19 Jul 2012 15:39:19 +0000 (17:39 +0200)]
Handling definition of builtins

11 years agohandle EOF
Wolfgang Bumiller [Thu, 19 Jul 2012 10:17:00 +0000 (12:17 +0200)]
handle EOF

11 years agoparsing typenames completely now with function parameters
Wolfgang Bumiller [Thu, 19 Jul 2012 09:41:16 +0000 (11:41 +0200)]
parsing typenames completely now with function parameters

11 years agoBuilding the output - global variables for now
Wolfgang Bumiller [Thu, 19 Jul 2012 09:25:53 +0000 (11:25 +0200)]
Building the output - global variables for now

11 years agoDon't die on regular EOF
Wolfgang Bumiller [Thu, 19 Jul 2012 09:22:09 +0000 (11:22 +0200)]
Don't die on regular EOF

11 years agoReading a global def
Wolfgang Bumiller [Mon, 16 Jul 2012 12:52:52 +0000 (14:52 +0200)]
Reading a global def

11 years agoStarting some parsing
Wolfgang Bumiller [Mon, 16 Jul 2012 12:14:37 +0000 (14:14 +0200)]
Starting some parsing

11 years agoCopying my old lexer
Wolfgang Bumiller [Mon, 16 Jul 2012 11:59:10 +0000 (13:59 +0200)]
Copying my old lexer

11 years agoTemporarily reordering instructions for compatibility
Wolfgang Bumiller [Mon, 16 Jul 2012 10:43:12 +0000 (12:43 +0200)]
Temporarily reordering instructions for compatibility

11 years agoClearing main
Wolfgang Bumiller [Mon, 16 Jul 2012 10:31:43 +0000 (12:31 +0200)]
Clearing main

11 years agoReverting the removal of _FV instructions, it's just easier this way
Wolfgang Bumiller [Mon, 16 Jul 2012 10:29:55 +0000 (12:29 +0200)]
Reverting the removal of _FV instructions, it's just easier this way

11 years agofixing matrix/quaternion constval setters
Wolfgang Bumiller [Mon, 16 Jul 2012 10:29:44 +0000 (12:29 +0200)]
fixing matrix/quaternion constval setters

11 years agoMerge branch 'master' into blub/bc3
Wolfgang Bumiller [Mon, 16 Jul 2012 10:28:06 +0000 (12:28 +0200)]
Merge branch 'master' into blub/bc3

11 years agoCorrect variable name for type_storep_instr
Wolfgang Bumiller [Mon, 16 Jul 2012 10:27:58 +0000 (12:27 +0200)]
Correct variable name for type_storep_instr

11 years agoUpdating makefile to remove all the not yet used stuff
Wolfgang Bumiller [Mon, 16 Jul 2012 10:27:21 +0000 (12:27 +0200)]
Updating makefile to remove all the not yet used stuff

11 years agoMerging master
Wolfgang Bumiller [Mon, 16 Jul 2012 09:40:30 +0000 (11:40 +0200)]
Merging master

11 years agotype_storep_instr: in theory we could use type_store_instr + INSTR_STOREP_F - INSTR_S...
Wolfgang Bumiller [Mon, 16 Jul 2012 08:24:35 +0000 (10:24 +0200)]
type_storep_instr: in theory we could use type_store_instr + INSTR_STOREP_F - INSTR_STORE_F, however, this won't work later when TYPE_INTEGER comes in since the _I instructions are at a seperate place

11 years agoReplacing 2 switches to use type_store_instr instead
Wolfgang Bumiller [Mon, 16 Jul 2012 08:19:04 +0000 (10:19 +0200)]
Replacing 2 switches to use type_store_instr instead

11 years agotype_sizeof is an array, not a function
Wolfgang Bumiller [Tue, 10 Jul 2012 17:29:38 +0000 (19:29 +0200)]
type_sizeof is an array, not a function