Coder Social home page Coder Social logo

yuchikaml's Introduction

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

yuchikaml's People

Contributors

yuchiki avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.