An Implementation of F by @ac1235 (https://ac1235.github.io/f.html)
- Syntax completely like in the documentation by @ac1235 (All of his example can be parsed and executed)
- Numbers are always the
Decimaltype from python. - Strings have (almost) C-like escaping and are written between
" - Variadic Value Syntax, allowing for List unpacking (
...(<List-Value>))
- install the latest version of python 3 (at least 3.7)
- execute
pip install lark-parser
f [-h] [-m {a,i,c}] [program] argv*
programselects the file to be run. If not present, will start a REPL.-m/--modeselects a mode on ho to handle the inputa/astchooses the to ast compiler. The defaulti/interpreterchooses the interpreter. The slowest option. Should get extended with a debuggerc/compilerchooses the to C compiler. Can not run a REPL or take argvs, but generates a executable (currently only on windows correctly)