Used to generate a subset of the scheme language. At this phase generated code is not syntactically correct.
Usage:
- Clone into the directory with your project:
git clone https://github.com/keegandonley/schemegen.git
- cd into the directory
cd schemegen
- Run your executable:
node ./index.js <path-to-executable> <lines-to-generate> <tokens-per-line>
. For example:node ./index.js ../P1.out 10 10
- The output of your program will be displayed with randomly generated input!
To prevent the temporary output file from being cleared, run with the flag --p
or -preserve
. This can be used to debug the executable program because the input that was used is saved until the program is run again.
An example of generated code can be found in temp.ss.
Caveat: This program is only useful for testing a lexial analyzer for scheme - the generated code is not syntactically correct and won't yet work with a syntactic analyzer.