-
-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rework Rakugo/Parser, parse_scripts(folder_path:String) #84
Comments
I love ❤️ this idea of pseudo-compilation, we can save it to files so build game will be faster.
Maybe we can use it with
Yes, 🎆 |
Keep it in mind :) |
Do #92 before :) |
reopen as mentioned in #118 |
parse_script(file_path:String) done execute_script(file_name:String) done parse_scripts(folder_path:String) <= parse all rk files in folder at path and store them. |
Currently if you want to parse script, you use : func parse_script(file_name:String)
It's parse a .rk file and execute it.
In Parser class, parse and execute are already split but user "can't" access it.
I propose to add or update funcs.
parse_script(file_path:String) <= parse a file and store result in dictionary (like a cache). Key it's fileName without extension.
parse_scripts(folder_path:String) <= parse all rk files in folder at path and store them.
execute_script(file_name:String) <= execute script already stored.
This also sets the stage for jumping between scripts.
The text was updated successfully, but these errors were encountered: