ludit

0.3.1 • Public • Published

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

Package Sidebar

Install

npm i ludit

Weekly Downloads

2

Version

0.3.1

License

MIT

Unpacked Size

2.9 MB

Total Files

156

Last publish

Collaborators

  • matiasvlevi