||3 years ago|
|cmd/st||3 years ago|
|internal||3 years ago|
|parser||3 years ago|
|.gitignore||3 years ago|
|README.md||3 years ago|
|ScriptoidLexer.g4||3 years ago|
|ScriptoidParser.g4||3 years ago|
|main.go||3 years ago|
|test.sct||3 years ago|
|test.sh||3 years ago|
Sorry for the unfinished and bare bones README but this project is still in its very early stages so half the time I don't even know what I do.
This Project uses ANTLRv4 for lexing and parsing. Then using Go the parse tree is converted to an AST. The AST is then optimized and converted to a pure functional form. Finally and not yet even thought about is the compilation to LLVM IR.
So just install AntlrV4 and go and run
go get gitlab.com/Pixdigit/scriptoid and you should have a running copy of the scriptoid compiler. However the testing script, which creates the parser and then parses the test file, is written using ZSH (probably Bash compatible). So if you are on windows, see how to use Antlr on windows, make sure to use Go as target language and enable visitors for antlr. If you struggle, feel free to ask me or make a bug report.