Coder Social home page Coder Social logo

ski's Introduction

ski

Library for calculating SKI combinator.

Build Status

1. Development

nim -v

Nim Compiler Version 0.19.4 [Linux: amd64]
Compiled at 2019-02-01
Copyright (c) 2006-2018 by Andreas Rumpf
git hash: b6d96cafc8bcad1f3d32f2910b25cd11a93f7751
active boot switches: -d:release

nimble -v

nimble v0.9.0 compiled at 2018-10-27 18:10:03
git hash: couldn't determine git hash

2. Install

nimble install ski

3. Usage

3.1. Simple examples

import ski

echo "Sxyz".calculate(combinators)

Output is xz(yz) .

3.2. Other examples

See examples directory. Run example code.

3.2.1. Calc arguments example

Run

cd examples/calc_args
nim c -r main.nim Sxyz

Output

Before : Sxyz
After  : xz(yz)

3.2.2. Read file example

Run

cd examples/read_file
nim c -r main.nim

Output

Sxyz
  -> xz(yz)
SKxz
  -> Kz(xz)
  -> z
<true>xz
  -> Kxz
  -> x
<false>xz
  -> SKxz
  -> Kz(xz)
  -> z
SKIKSIKIKISKIKIS
  -> KK(IK)SIKIKISKIKIS
  -> KSIKIKISKIKIS
  -> SKIKISKIKIS
  -> KK(IK)ISKIKIS
  -> KISKIKIS
  -> IKIKIS
  -> KIKIS
  -> IIS
  -> IS
  -> S
S<true><true><false>
  -> <true><false>(<true><false>)
  -> K<false>(<true><false>)
  -> <false>
  -> SK

5. Web application of SKI combinator calculator

I created simple SKI combinator calculator on web application.

Javascript library of SKI combinator of the application is generated by this module (nimble js).

ski's People

Contributors

jiro4989 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

ski's Issues

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.