Commit Graph

19 Commits

Author SHA1 Message Date
Moritz Hölting 8c29d83665 allow importing global variables, get rid of functions and aliases field of transpiler 2025-04-07 01:09:34 +02:00
Moritz Hölting c3aaca6abf implement global variables (without imports) 2025-04-01 15:19:22 +02:00
Moritz Hölting ab1ca8ee37 implement first version of compiler variables 2025-04-01 01:00:36 +02:00
Moritz Hölting b4f7fe1cb6 fix compile errors without shulkerbox feature 2025-03-31 22:47:16 +02:00
Moritz Hölting 84d55977e7 reimplement semantic checking 2025-03-31 21:40:59 +02:00
Moritz Hölting 992b6ca300 implement integer and boolean function arguments 2025-03-30 19:38:08 +02:00
Moritz Hölting 07cacde886 first version of print internal function for easier displaying variable values 2025-03-16 23:26:20 +01:00
Moritz Hölting 72a2121b61 implement score variable declarations 2025-03-15 20:28:26 +01:00
Moritz Hölting 43f0af6435 change conditional to use expression instead of individual condition 2025-03-11 19:43:26 +01:00
Moritz Hölting 2621713733 implement more primary expressions (identifier, parenthesized, prefixed) 2025-03-10 15:57:38 +01:00
Moritz Hölting 096e637a77 implement binary expression parsing and transpiling if possible at compile time
- many TODOs
- transpilation for runtime evaluation missing
2025-03-08 13:23:59 +01:00
Moritz Hölting 8dfd1e053b implement variable assignments 2025-03-07 17:36:25 +01:00
Moritz Hölting c3c476ad94 implement basic assignment transpilation 2025-03-06 14:40:26 +01:00
Moritz Hölting 23b14d7667 rework annotations & transpile single int declarations without assignment 2025-02-27 22:03:45 +01:00
Moritz Hölting 4f31f08875 fix variable declaration parsing 2025-02-25 20:45:27 +01:00
Moritz Hölting 9d5c40f150 implement variable declaration parsing 2025-02-25 20:45:27 +01:00
Moritz Hölting c0b266caca allow passing in parameters to functions that will be used as macros 2024-11-12 14:40:40 +01:00
Moritz Hölting 134f181635 show multiple errors and mark tick/load annotation incompatible with parameters 2024-11-11 23:19:36 +01:00
Moritz Hölting c880b58f64 require macros to be present in function parameters 2024-11-11 22:54:24 +01:00