Commit Graph

136 Commits

Author SHA1 Message Date
Sven Vogel 2ba48e904e Merge remote-tracking branch 'origin/89-implement-structs-for-parser' into 89-implement-structs-for-parser 2024-05-29 21:24:56 +02:00
Sven Vogel 875574eb69 fixed: added type to expressions 2024-05-29 21:24:17 +02:00
Sven Vogel 8494df56cd feature: added name to function 2024-05-29 21:21:03 +02:00
Sven Vogel 0fe3fb68a6 reverted: removed box access from assignment 2024-05-28 13:57:13 +02:00
Sven Vogel f590e3c42e fixed: missing box member access in assignment 2024-05-28 13:44:40 +02:00
Sven Vogel 119dfd7796 Merge remote-tracking branch 'origin/89-implement-structs-for-parser' into 89-implement-structs-for-parser 2024-05-28 12:36:48 +02:00
Sven Vogel 1aa8206268 fixed: missing kind in statement 2024-05-28 12:36:33 +02:00
Sven Vogel 0d1f312ae2 fixed: various implementation faults
fixed typo of parameter
added function struct to group their declaration and definitons
added block to function definiton
added operands to cast and operators
2024-05-28 00:12:32 +02:00
Sven Vogel 9a5f392b67 Merge branch '89-implement-structs-for-parser' of github.com:Servostar/gemstone into 89-implement-structs-for-parser 2024-05-26 17:12:23 +02:00
Sven Vogel dcd309c7b4 added module type 2024-05-26 17:11:43 +02:00
Felix Müller b7c7fd040a added ast pointer to all structs
removed StringLiteralType because of multiple definitions if used
2024-05-26 16:42:12 +02:00
Sven Vogel 7705aea238 added header for semantic tree types 2024-05-23 21:54:37 +02:00
SirTalksalot75 58f7170df6
changed lookuptable for casts in ast.c 2024-05-21 12:20:45 +02:00
Ur Mom 8d7c6a4a2b changed ast implementation for cast 2024-05-16 18:04:02 +02:00
Ur Mom e57682d717 changed node-name according to ast.h 2024-05-16 11:34:51 +02:00
Ur Mom 2757132cf2 Fixed Typo 2024-05-16 10:27:44 +02:00
SirTalksalot75 af32c32c6a
Merge branch 'main' into 41-add-parser-rules-for-casts 2024-05-16 08:24:19 +02:00
Felix Müller addaff4818 i am not a smart man 2024-05-15 19:30:29 +02:00
Filleo 8b61cca153
Merge branch 'main' into 68-generate-ast-from-parser-rules 2024-05-15 19:19:03 +02:00
Felix Müller 7789c7e597 added removal of root node after output generation 2024-05-15 17:03:18 +02:00
Felix Müller d7b690ec8a solved error in test 2024-05-15 16:26:40 +02:00
Felix Müller f2317c78ce solved bug from fun def 2024-05-15 16:14:55 +02:00
Ur Mom 7da3c9151d fixed shift reduce conflicts in typecast 2024-05-15 15:50:26 +02:00
Felix Müller ac7ceaab9b added while to the syntax tree 2024-05-15 10:41:08 +02:00
Felix Müller f11ade2ef2 changed If else branches, so that the whole branch is under one stmt node 2024-05-15 10:29:47 +02:00
Sven Vogel c24a430fd2 fixed if statement 2024-05-14 20:23:29 +02:00
Sven Vogel 32b964444a added C like precedence for operators 2024-05-14 19:20:58 +02:00
Sven Vogel 3ea179b4a9 added precedence for +,-,*,/ 2024-05-14 19:08:42 +02:00
Felix Müller 1055aa0f73 add identlist 2024-05-14 17:01:42 +02:00
Felix Müller a14faeeee7 added specific lists
solved bug in Funcall
2024-05-14 15:30:13 +02:00
Felix Müller 8c063d7016 changed little error in main 2024-05-14 14:57:15 +02:00
Felix Müller b3ad82cc49 moved root node to main
moved output code to main
removed '"' from string literals
2024-05-14 14:03:45 +02:00
Sven Vogel 4c61851a48 fixed build errors 2024-05-14 13:28:05 +02:00
Sven Vogel fa8c97d84f lexer unknown token passthrough 2024-05-14 12:27:21 +02:00
Felix Müller 3d3083c894 first functional state of syntax tree 2024-05-13 22:17:43 +02:00
Sven Vogel 02e7c2775b added better parser error messages 2024-05-13 16:13:49 +02:00
Ur Mom 9eba9d1437 fixed shift-reduce conflict 2024-05-13 13:45:22 +02:00
Felix Müller 0e5736e50c AST implementation WIP 2024-05-13 11:33:23 +02:00
Felix Müller bb474d75ad start of the syntax tree 2024-05-12 23:33:15 +02:00
Ur Mom 76558e89ed Merge branch '41-add-parser-rules-for-casts' of https://github.com/Servostar/gemstone into 41-add-parser-rules-for-casts 2024-05-12 22:55:03 +02:00
Ur Mom eccce505e5 -added Type-Cast
-added Reinterpret-Cast
2024-05-12 22:54:58 +02:00
Filleo 730248595e
Merge pull request #66 from Servostar/concept/ast-design
Concept/ast design
2024-05-12 21:28:53 +02:00
Sven Vogel 23968f7acc required C standard is C23
refactored logger function names to remove underscores
added function attributes
2024-05-10 15:09:52 +02:00
Sven Vogel 12a522b0e6 added missing free for child array 2024-05-10 13:51:23 +02:00
Sven Vogel 80888fdb8d added function for removing and detaching a node 2024-05-10 13:49:04 +02:00
Sven Vogel dd4d70829e added more documentation to AST header 2024-05-10 13:00:25 +02:00
Sven Vogel efeb482128 removed gc 2024-05-08 22:10:14 +02:00
Sven Vogel eac3b23432 Revert "added detach function"
This reverts commit 4322797eae.
2024-05-08 22:06:54 +02:00
Felix Müller abbbe59b08 added string.h in ast.c 2024-05-08 21:56:33 +02:00
servostar 2d411e3b7b
Merge branch 'concept/memory-safety' into concept/ast-design 2024-05-08 19:19:32 +00:00