Skip to content

yuchiki/YuchiKaml

Repository files navigation

YuchiKaml

Toy Language Interpreter using Sprache, a C# Parser Combinator language.

Version

0.1

What is this

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(For Windows, Linux and OSX)

  1. install dotnet command following an install instruction of dotnet command
  2. clone this repository and do make in the directory.
cd your/working/directory
git clone git://github.com/yuchiki/YuchiKaml.git
cd YuchikiKaml
make
  1. copy YuchikiML_build to anywhere you want.
  2. put the following line on your ~/.bashrc: export PATH=/path/to/YuchikiML_build:$PATH
  3. source ~./bashrc

YuchiKaml Language

YuchiKaml is a dynamic-typed langauge with ML-like surface grammar.

See GCD example and the document.

Comment

  • // .... end of line
  • (* ... *)

YuchiKaml Interpreter

YuchiKaml interpreter consists of YuchiKaml Preprocessor, Parser and Runner.

Usage

YuchikiML *Filename*

For further information, YuchikiML --help

Preprocess

  • #include<name>
  • #include"name"

Known Bugs

In Parse of Keyword-like Variable

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.)

About

Toy Language Interpreter using Sprache

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages