]> git.xonotic.org Git - xonotic/gmqcc.git/log
xonotic/gmqcc.git
11 years agoMerge branch 'master' into blub/bc3
Wolfgang (Blub) Bumiller [Sat, 11 Aug 2012 09:32:12 +0000 (11:32 +0200)]
Merge branch 'master' into blub/bc3

11 years agonicer trace output, strings now get escaped
Wolfgang (Blub) Bumiller [Sat, 11 Aug 2012 09:31:50 +0000 (11:31 +0200)]
nicer trace output, strings now get escaped

11 years agohandling if/else, shunting yard now leaves unmatched closing paren-tokens on the...
Wolfgang (Blub) Bumiller [Sat, 11 Aug 2012 09:17:46 +0000 (11:17 +0200)]
handling if/else, shunting yard now leaves unmatched closing paren-tokens on the parser for this purpose

11 years agoHandling blocks and inner blocks
Wolfgang (Blub) Bumiller [Sat, 11 Aug 2012 08:35:10 +0000 (10:35 +0200)]
Handling blocks and inner blocks

11 years agolet's be less insane with function naming and prepare parsing for control structures
Wolfgang (Blub) Bumiller [Sat, 11 Aug 2012 08:30:54 +0000 (10:30 +0200)]
let's be less insane with function naming and prepare parsing for control structures

11 years agocreating vector's _xyz globals now, accessing them
Wolfgang (Blub) Bumiller [Fri, 10 Aug 2012 20:59:47 +0000 (22:59 +0200)]
creating vector's _xyz globals now, accessing them

11 years agoMerge branch 'master' into blub/bc3
Wolfgang (Blub) Bumiller [Fri, 10 Aug 2012 18:48:42 +0000 (20:48 +0200)]
Merge branch 'master' into blub/bc3

11 years agoExperimental ast_member to access vector members
Wolfgang (Blub) Bumiller [Wed, 8 Aug 2012 12:49:37 +0000 (14:49 +0200)]
Experimental ast_member to access vector members

11 years agoMerge branch 'master' into blub/bc3
Wolfgang (Blub) Bumiller [Wed, 8 Aug 2012 10:43:26 +0000 (12:43 +0200)]
Merge branch 'master' into blub/bc3

11 years agofix the chack for -Wno- and -fno-, it needs to use NO_ instead of no-
Wolfgang (Blub) Bumiller [Wed, 8 Aug 2012 10:43:02 +0000 (12:43 +0200)]
fix the chack for -Wno- and -fno-, it needs to use NO_ instead of no-

11 years agorename a helper function since the name was in use
Wolfgang (Blub) Bumiller [Wed, 8 Aug 2012 10:26:22 +0000 (12:26 +0200)]
rename a helper function since the name was in use

11 years agoMerge branch 'master' into blub/bc3
Wolfgang (Blub) Bumiller [Wed, 8 Aug 2012 10:25:31 +0000 (12:25 +0200)]
Merge branch 'master' into blub/bc3

11 years agoAdd WARN_ prefix to warnings enum
Wolfgang (Blub) Bumiller [Wed, 8 Aug 2012 10:25:19 +0000 (12:25 +0200)]
Add WARN_ prefix to warnings enum

11 years agotempcommitting WARN_UNKNOWN_CONTROL_SEQUENCE and handling of backslashes in strings
Wolfgang (Blub) Bumiller [Wed, 8 Aug 2012 10:24:01 +0000 (12:24 +0200)]
tempcommitting WARN_UNKNOWN_CONTROL_SEQUENCE and handling of backslashes in strings

11 years agoMerge branch 'master' into blub/bc3
Wolfgang (Blub) Bumiller [Wed, 8 Aug 2012 10:09:31 +0000 (12:09 +0200)]
Merge branch 'master' into blub/bc3

11 years agoinclude opts_debug and opts_memchk in exec.c's standalone part for now to have it...
Wolfgang (Blub) Bumiller [Wed, 8 Aug 2012 10:07:37 +0000 (12:07 +0200)]
include opts_debug and opts_memchk in exec.c's standalone part for now to have it compile

11 years agoMerge branch 'master' into blub/bc3
Wolfgang (Blub) Bumiller [Wed, 8 Aug 2012 10:05:08 +0000 (12:05 +0200)]
Merge branch 'master' into blub/bc3

11 years agomake it also compilable with -std=c99 by not redefining extra_semicolon_, by appendin...
Wolfgang (Blub) Bumiller [Mon, 30 Jul 2012 11:48:53 +0000 (13:48 +0200)]
make it also compilable with -std=c99 by not redefining extra_semicolon_, by appending N to it

11 years agoast nodes now store their type id, and can be checked via ast_istype
Wolfgang Bumiller [Sun, 29 Jul 2012 08:03:13 +0000 (10:03 +0200)]
ast nodes now store their type id, and can be checked via ast_istype

11 years agoir_block_create_fieldaddress to pass on fieldtype from its input field
Wolfgang Bumiller [Sat, 28 Jul 2012 19:59:34 +0000 (21:59 +0200)]
ir_block_create_fieldaddress to pass on fieldtype from its input field

11 years agotest/ast-test.c must define opts_ variables since we don't compile main.c into it
Wolfgang Bumiller [Sat, 28 Jul 2012 19:56:35 +0000 (21:56 +0200)]
test/ast-test.c must define opts_ variables since we don't compile main.c into it

11 years agocode_alloc_field to allocate entityfield data, ir now has ir_builder_create_field...
Wolfgang Bumiller [Sat, 28 Jul 2012 19:55:01 +0000 (21:55 +0200)]
code_alloc_field to allocate entityfield data, ir now has ir_builder_create_field - so that globals and fields can be created separately - properly

11 years agoparser_init,compile,finish,cleanup - used in main
Wolfgang Bumiller [Sat, 28 Jul 2012 19:21:41 +0000 (21:21 +0200)]
parser_init,compile,finish,cleanup - used in main

11 years agoMerging master and adopting its main.c
Wolfgang Bumiller [Sat, 28 Jul 2012 19:14:03 +0000 (21:14 +0200)]
Merging master and adopting its main.c

11 years agoMerge branch 'master' into cmdline
Wolfgang Bumiller [Sat, 28 Jul 2012 19:04:59 +0000 (21:04 +0200)]
Merge branch 'master' into cmdline

11 years agouse util_ functions for strtocmd and strtononcmd
Wolfgang Bumiller [Sat, 28 Jul 2012 17:31:14 +0000 (19:31 +0200)]
use util_ functions for strtocmd and strtononcmd

11 years agoAdded missing parameter names
Wolfgang Bumiller [Sat, 28 Jul 2012 17:31:02 +0000 (19:31 +0200)]
Added missing parameter names

11 years agoutil_strtocmd, util_strtononcmd
Wolfgang Bumiller [Sat, 28 Jul 2012 17:28:27 +0000 (19:28 +0200)]
util_strtocmd, util_strtononcmd

11 years agoreuse old opts_, renamed all opt_ to opts_ to be consistent, making code.c use OPTS_F...
Wolfgang Bumiller [Sat, 28 Jul 2012 17:20:19 +0000 (19:20 +0200)]
reuse old opts_, renamed all opt_ to opts_ to be consistent, making code.c use OPTS_FLAG() for OMIT_NULL_BYTES and DARKPLACES_STRING_TABLE_BUG

11 years agoflags.def and warns.def containing defined flags and warnings
Wolfgang Bumiller [Sat, 28 Jul 2012 17:09:44 +0000 (19:09 +0200)]
flags.def and warns.def containing defined flags and warnings

11 years agoadapting to change in master: ast_store takes an ast_expression
Wolfgang Bumiller [Sat, 28 Jul 2012 16:17:29 +0000 (18:17 +0200)]
adapting to change in master: ast_store takes an ast_expression

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 agoconsistency ftw
Wolfgang Bumiller [Sat, 28 Jul 2012 13:57:28 +0000 (15:57 +0200)]
consistency ftw

11 years ago-fhelp to list -f flags, -Whelp to list -W options
Wolfgang Bumiller [Sat, 28 Jul 2012 12:50:07 +0000 (14:50 +0200)]
-fhelp to list -f flags, -Whelp to list -W options

11 years agoAdd -foverlap-locals - something we really should make possible
Wolfgang Bumiller [Sat, 28 Jul 2012 12:48:02 +0000 (14:48 +0200)]
Add -foverlap-locals - something we really should make possible

11 years agoAdded handler for -W
Wolfgang Bumiller [Sat, 28 Jul 2012 11:59:35 +0000 (13:59 +0200)]
Added handler for -W

11 years agoFixing a warning
Wolfgang Bumiller [Sat, 28 Jul 2012 11:50:12 +0000 (13:50 +0200)]
Fixing a warning

11 years agoImporting gmqcc.1
Wolfgang Bumiller [Sat, 28 Jul 2012 11:47:14 +0000 (13:47 +0200)]
Importing gmqcc.1

11 years agoPrint out all the information parsed from the commandline
Wolfgang Bumiller [Sat, 28 Jul 2012 11:20:06 +0000 (13:20 +0200)]
Print out all the information parsed from the commandline

11 years agogcc style long option support and -std=foo added
Wolfgang Bumiller [Sat, 28 Jul 2012 10:59:33 +0000 (12:59 +0200)]
gcc style long option support and -std=foo added

11 years agoCommandline handling first draft
Wolfgang Bumiller [Sat, 28 Jul 2012 10:36:20 +0000 (12:36 +0200)]
Commandline handling first draft

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