Commit Graph

28 Commits

Author SHA1 Message Date
348da1eaa3
GodotScript.hpp: Fix GodotScript constants after the last commit
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
2025-04-08 14:36:22 +02:00
333b15cfe0
GodotScript.hpp: Fix GodotScript variables
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
2025-04-08 14:22:28 +02:00
76cc701dd7
Py.hpp, GodotScript.hpp: Add missing pass after empty else branches
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
2025-01-01 04:30:12 +01:00
91c1ae0611
GodotScript.hpp: Add a TODO
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
2025-01-01 01:09:07 +01:00
888c75a31e
Share the Reference analysis task with the Define one
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
2024-12-31 23:11:15 +01:00
d3248c04a0
GodotScript.hpp: Add missing namespace usage
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
2024-07-31 20:29:41 +02:00
c37f91caf3
Lua.hpp: Fix an extra space being added
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2023-08-07 00:34:27 +02:00
85a3582612
Parser.hpp: Add basic parsing of if/elseif/else statements
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2023-08-06 19:49:35 +02:00
22d1599237
Add a GodotScript target
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-07-07 17:22:20 +02:00
4097b1c59a
Lua.hpp: Only output indentation when newLines is set to true
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-05-07 09:37:04 +02:00
34134dda71
Target.hpp: Simplify the Target::forName function and change its return type to unique_ptr instead of shared_ptr
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-05-06 22:06:52 +02:00
2330b87c0f
Target.hpp: Add a "use_uniqueLineSeparator" virtual function
Js.hpp: override the new virtual function to always output semicolons

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-04-21 23:31:11 +02:00
97a9703a1a
Lua.hpp & Js.hpp: Don't insert new lines and indentation when a function is empty
Py.hpp: Support empty functions

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-04-21 23:31:11 +02:00
ba14e95d50
Add a separate_transpileTree overload and transpile function parameters correctly
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-03-19 12:40:52 +01:00
f3d03adead
Add functions, indentation, better variables parsing and more
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-03-13 15:15:29 +01:00
3c130529a4
Make the newLine constructor parameter a reference & add a "separator" member and a "uniqueLineSeparator" virtual method to Target.hpp
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-02-14 14:12:00 +01:00
f33aec687a
Parse Calls/ParseTrees
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-02-14 14:12:00 +01:00
1b9b281dec
Heavily modify Target.hpp, add a pointerAs function, and add an overload to Yerbacon::exit 2022-02-14 14:11:20 +01:00
beea9bfadf
Make const parse trees actually constant, fix formatting in Target.hpp and classes derived from Target 2021-09-19 20:45:57 +02:00
e79a7415de
Add an overload to reuse the same characters for the two parameters of Target::stringInterpolation and use an escaped character sequence 2021-09-11 13:42:22 +02:00
26421597f2
Prohibit the use of --newlinesoff with targets that do not support putting a whole script on one line 2021-09-11 13:19:43 +02:00
96bd6bf708
Re-add the newlinesoff argument 2021-09-11 11:49:57 +02:00
2dba7fbda6
Add experimental string transpilation with interpolation 2021-08-28 10:59:24 +02:00
1992e1d42b
Add transpilation of strings to lua-compatible ones, and fix a comment 2021-08-24 17:23:31 +02:00
079d99e08a
Remove the parameter of Target.get(), add it to Target as a property and rename Target.get() to Target.on() 2021-08-23 12:49:22 +02:00
664a6a92be
Begin adding transpilation of basic elements 2021-08-22 23:57:18 +02:00
4512909b23
Don't break in the ADDTARGET macro of Target.hpp, and define class names of Py.hpp, Lua.hpp and Js.hpp to use them in Target.hpp. 2021-07-31 18:56:17 +02:00
995684799d
Replace Targets.hpp with Target.hpp and add language-specific headers 2021-07-03 11:11:36 +02:00