Giter Site home page Giter Site logo

matiasvlevi / ludit Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 0.0 673 KB

Ludit is an interpreter for Ludi, a language meant to express and compute boolean algebra in the CLI.

License: MIT License

TypeScript 98.06% JavaScript 0.30% Vim Script 1.16% Shell 0.23% HTML 0.26%
boolean boolean-algebra boolean-logic logic-gates

ludit's Introduction

Ludit

Boolean Algebra in the CLI

InstallDocumentationLicense



Ludit is an interpreter for Ludi, a language meant to express and compute boolean algebra in the CLI.

Ludi allows you to generate truth tables and karnaugh tables.


Ludi Code Truth table
def and = A * B
def or  = A + B

or(and(A, !B), C)
luditable
Karnaugh
def and = A * B
def or  = A + B

or(and(A, !B), C) ~k
luditable

Install

npm i -g ludit

(build from source for latest check package.json)

Install the standard lib (Optional)

Run ./install.sh as root


Usage

Show help menu

ludit -h

Write boolean equations

ludit "A * 'B + 'A * B"

You can also run files with -f

ludit -f ./examples/project/main.ludi

Read the language documentation


Syntax highlighting file for vim is provided under

.vim/ludi.vim

ludit's People

Contributors

matiasvlevi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.