Wolfgang Bumiller
|
6b85f3d370
|
factoring out the closing-paren handling code since it'll be used recursively
|
2012-07-27 13:07:16 +02:00 |
|
Wolfgang Bumiller
|
623046dda8
|
the comma is now in the operator list
|
2012-07-27 12:53:15 +02:00 |
|
Wolfgang Bumiller
|
f03bffc3ee
|
opening paren and comma to the operator stack for function calls
|
2012-07-27 12:35:14 +02:00 |
|
Wolfgang Bumiller
|
b81b5d8c4d
|
Removing some debug output
|
2012-07-27 12:28:14 +02:00 |
|
Wolfgang Bumiller
|
b70fd7e238
|
handle parameters in parser_find_local
|
2012-07-27 12:25:46 +02:00 |
|
Wolfgang Bumiller
|
a99972d7dd
|
Parse named parameters of functions
|
2012-07-26 23:33:19 +02:00 |
|
Wolfgang Bumiller
|
5d766f60b2
|
parse ahead into the return expression as expected
|
2012-07-26 23:26:34 +02:00 |
|
Wolfgang Bumiller
|
e1c4600260
|
Listen to the warning instead...
|
2012-07-26 23:25:33 +02:00 |
|
Wolfgang Bumiller
|
b08de6ee5f
|
Shutup a warning...
|
2012-07-26 23:24:36 +02:00 |
|
Wolfgang Bumiller
|
a0d78e985c
|
handling return
|
2012-07-26 23:22:51 +02:00 |
|
Wolfgang Bumiller
|
dcb815a65f
|
Handling parenthesis in expressions
|
2012-07-22 11:17:01 +02:00 |
|
Wolfgang Bumiller
|
21a2679efb
|
add locals to their ast_block, can create stores now
|
2012-07-20 21:32:51 +02:00 |
|
Wolfgang Bumiller
|
071fd32040
|
Handling some operands, added type_name array
|
2012-07-20 21:19:30 +02:00 |
|
Wolfgang Bumiller
|
f78ed233c0
|
parser_sy_pop, has to pop operators and operands and push the result
|
2012-07-20 15:20:07 +02:00 |
|
Wolfgang Bumiller
|
9f54ea6643
|
working on operator translation
|
2012-07-20 15:03:11 +02:00 |
|
Wolfgang Bumiller
|
7185366ee5
|
handling of operations
|
2012-07-20 15:02:18 +02:00 |
|
Wolfgang Bumiller
|
5d6767f337
|
Starting expression parsing
|
2012-07-20 14:45:23 +02:00 |
|
Wolfgang Bumiller
|
e8563442a1
|
keeping float immediates/constants in parser's imm_float vector
|
2012-07-20 14:34:45 +02:00 |
|
Wolfgang Bumiller
|
9314157be5
|
Adding ids to operators for SYA later
|
2012-07-20 14:04:52 +02:00 |
|
Wolfgang Bumiller
|
69ba2dd9f8
|
statement/expression proto
|
2012-07-20 13:00:11 +02:00 |
|
Wolfgang Bumiller
|
2763578f8b
|
Handling of multiple variables with comma
|
2012-07-20 12:53:42 +02:00 |
|
Wolfgang Bumiller
|
3decabaa8f
|
Local variable parsing
|
2012-07-20 12:46:59 +02:00 |
|
Wolfgang Bumiller
|
5ffa0dda8e
|
Keep track of blocklocal in parser_parse_block
|
2012-07-19 20:30:36 +02:00 |
|
Wolfgang Bumiller
|
c43bb71aa7
|
Factoring out variable parsing so it can be used for locals too
|
2012-07-19 20:15:30 +02:00 |
|
Wolfgang Bumiller
|
4360d3b5be
|
Proto for parsing a function body
|
2012-07-19 19:57:24 +02:00 |
|
Wolfgang Bumiller
|
f4864fd5ac
|
null-init parser_t, add a function member to it
|
2012-07-19 19:55:25 +02:00 |
|
Wolfgang Bumiller
|
03baa85c43
|
Properly parse functions without parameters
|
2012-07-19 19:53:58 +02:00 |
|
Wolfgang Bumiller
|
532aaba87d
|
Parse away the semicolon after an assignment
|
2012-07-19 19:52:44 +02:00 |
|
Wolfgang Bumiller
|
02b4c7b7c1
|
merging master, and adapting
|
2012-07-19 18:15:27 +02:00 |
|
Wolfgang Bumiller
|
e7f8647d08
|
additional/superfluous check removed
|
2012-07-19 18:10:12 +02:00 |
|
Wolfgang Bumiller
|
6713c3fd5f
|
Properly check if it's a function... checking the parameter count is not a correct check
|
2012-07-19 18:04:57 +02:00 |
|
Wolfgang Bumiller
|
8471d36aab
|
builtins are negative
|
2012-07-19 17:54:35 +02:00 |
|
Wolfgang Bumiller
|
38edf7c1bd
|
handling function definitions better, generating functions
|
2012-07-19 17:53:45 +02:00 |
|
Wolfgang Bumiller
|
6a346745aa
|
Handling definition of builtins
|
2012-07-19 17:39:19 +02:00 |
|
Wolfgang Bumiller
|
c44355e224
|
handle EOF
|
2012-07-19 12:17:00 +02:00 |
|
Wolfgang Bumiller
|
1d55197097
|
parsing typenames completely now with function parameters
|
2012-07-19 11:41:16 +02:00 |
|
Wolfgang Bumiller
|
5b7dfb7e4b
|
Building the output - global variables for now
|
2012-07-19 11:25:53 +02:00 |
|
Wolfgang Bumiller
|
d6cd3b6dc9
|
Don't die on regular EOF
|
2012-07-19 11:22:09 +02:00 |
|
Wolfgang Bumiller
|
d581fdc048
|
Reading a global def
|
2012-07-16 14:52:52 +02:00 |
|
Wolfgang Bumiller
|
4f611475de
|
Starting some parsing
|
2012-07-16 14:14:37 +02:00 |
|
Wolfgang Bumiller
|
9b6598f049
|
Copying my old lexer
|
2012-07-16 13:59:10 +02:00 |
|