This repository was archived by the owner on Sep 24, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
All about C Transpiler
Satakun Utama edited this page Jun 14, 2021
·
4 revisions
Transpiler is a Tool to transform the code in a language into another language.
StoryScript C Transpiler is a tool to transform StoryScript code into C language.
To get SSCT, You need to download the Main branch. And it'll be in the "ToC" folder.
To use it, simply run a command (In the StoryScript/ToC
folder) with this pattern:
python processor.py -i [input] -o [output]
And yes, This is named arguments, So you can do python processor.py -o [output] -i [input]
as well.
And you can also do this pattern:
python processor.py --input [input] --output [output]
Full version | Short version | Description |
---|---|---|
--input | -i | The input file you wanted. |
--output | -o | The output file you wanted. |
--no-auto-reallocate | -no-realloc | Disable auto String memory re-allocation. |
These Changes will break some codes.
- No dynamics (yet)
These changes will add extra features that the Original REPL version doesn't have.
- The variable that wants to be allocated on Heap allocation needed the
heap
keyword. Otherwise will be a normal Stack allocation.
int heap a