Commit Graph

32 Commits

Author SHA1 Message Date
Moritz Hölting 47dc9f0f6b basic transpilation of template string working 2025-09-02 18:05:21 +02:00
Moritz Hölting 9cc77ce2a9 use strsim to suggest similar identifiers in UnknownIdentifier error 2025-08-27 17:05:21 +02:00
Moritz Hölting 41700fd783 fix parse error panicing in function args 2025-08-27 10:08:41 +02:00
Moritz Hölting 8980a0b21d allow escaping of $ in macro string 2025-08-26 21:15:41 +02:00
Moritz Hölting 72ed16893d implement new tokenizer & parser for TemplateStringLiteral 2025-08-25 19:12:20 +02:00
Moritz Hölting 598158d0d4 rename MacroString to TemplateString 2025-08-25 15:51:21 +02:00
Moritz Hölting 528b4edac6 implement compile-time function arguments 2025-08-19 15:14:12 +02:00
Moritz Hölting 8564f4b0bf fix semantic analysis to allow assignment to indexed identifier 2025-08-13 18:55:47 +02:00
Moritz Hölting bd20af0f3d fix comptime variable errors 2025-08-13 18:24:48 +02:00
Moritz Hölting 0f553a0234 apply clippy lints from version 0.1.89 2025-08-13 15:26:36 +02:00
Moritz Hölting b81f47bde3 implement first parts of member access 2025-06-18 11:44:26 +02:00
Moritz Hölting fe2934f120 run as expression, implement return statement 2025-04-07 18:01:35 +02:00
Moritz Hölting 8fe8813a51 implement uninstall annotation 2025-04-07 14:05:54 +02:00
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