Commit Graph

26 Commits

Author SHA1 Message Date
Moritz Hölting e80809b3f9 Implement public keyword for functions 2024-06-09 17:59:56 +02:00
Moritz Hölting f00302c8af Fix unexpected whitespace in condition error 2024-04-13 13:41:24 +02:00
Moritz Hölting 2bac397096 implement remaining execute operators 2024-04-09 21:25:19 +02:00
Moritz Hölting a818325ce9 Implement execute blocks
- move conditionals to execute blocks
- implement "as" in execute blocks
2024-04-09 20:42:11 +02:00
Moritz Hölting 30bfdaf0a6 Add path-absolutize crate for absolute path conversion 2024-04-09 11:40:43 +02:00
Moritz Hölting 8b6fc24759 Implement better SourceCodeDisplay output 2024-04-08 14:03:26 +02:00
Moritz Hölting e0d913612b Box lua code and switch to lua-jit 2024-04-07 21:12:47 +02:00
Moritz Hölting b105a45154 Introduce namespace configuration syntax 2024-04-06 21:49:25 +02:00
Moritz Hölting 01040964af Add Lua support to transpiler 2024-04-06 17:23:20 +02:00
Moritz Hölting 9f8b31e2aa Add 'Run' statement to grammar and syntax tree 2024-04-06 15:12:20 +02:00
Moritz Hölting c770a54517 Re-export shulkerbox module and update error message in transpiler 2024-04-06 14:42:44 +02:00
Moritz Hölting 3c3c9e5b24 Add serde dependency and derive serialization and deserialization for relevant structs 2024-04-06 14:40:44 +02:00
Moritz Hölting 34076f9842 Update TranspileError enum and add TranspileResult type 2024-04-06 14:30:11 +02:00
Moritz Hölting c4023e0b64 Transpile functions based on annotations 2024-04-06 13:26:34 +02:00
Moritz Hölting 42503bdc78 Always transpile function when annotated with tick or load 2024-04-06 12:47:15 +02:00
Moritz Hölting 62dd12cab3 implement function calls 2024-04-05 16:16:12 +02:00
Moritz Hölting 2ed6e56ef1 Refactor transpile module and error handling 2024-04-05 12:59:21 +02:00
Moritz Hölting 4b52985992 Implement conditional operators 2024-04-03 13:46:57 +02:00
Moritz Hölting 9159c8222e Rename compiler to transpiler and implement load and tick annotation for main function 2024-04-03 01:27:02 +02:00
Moritz Hölting ced609265c Add support for grouping statements 2024-04-03 01:09:13 +02:00
Moritz Hölting dc288588c8 Add support for doc comments 2024-04-03 00:45:34 +02:00
Moritz Hölting b9bc5438e5 Implement annotations for functions 2024-04-01 20:42:38 +02:00
Moritz Hölting d4305b3629 Basic implementation of if/else without conditional operators 2024-03-29 18:26:43 +01:00
Moritz Hölting 0d93faf87f Add ShulkerScript basic compiler for only main function and literal commands 2024-03-28 01:17:17 +01:00
Moritz Hölting 9d24571b40 Add parser for syntax tree 2024-03-27 21:39:56 +01:00
Moritz Hölting 830b3b10d9 Add tokenizing module 2024-03-27 19:27:11 +01:00