Toy Language Interpreter using Sprache, a C# Parser Combinator language.
0.1
This is an interpreter of YuchiKaml, a toy language designed by me. YuchiKaml is a dynamic typed language with ML-like surface grammar. For further specification, see the document.
This interpreter is written for my personal purpose to get accustomed with Sprache.
- install dotnet command following an install instruction of dotnet command
- clone this repository and do
make
in the directory.
cd your/working/directory
git clone git://github.com/yuchiki/YuchiKaml.git
cd YuchikiKaml
make
- copy YuchikiML_build to anywhere you want.
- put the following line on your ~/.bashrc:
export PATH=/path/to/YuchikiML_build:$PATH
source ~./bashrc
YuchiKaml is a dynamic-typed langauge with ML-like surface grammar.
See GCD example and the document.
- // .... end of line
- (* ... *)
YuchiKaml interpreter consists of YuchiKaml Preprocessor, Parser and Runner.
YuchikiML *Filename*
For further information,
YuchikiML --help
- #include<name>
- #include"name"
The interpreter cannot parse variables starting with keywords in its definition positions. For example,
let ifa = 1 in ()
cannot be parsed. (note that "if" is a keyword.)