0.0.12 • Published 7 years ago

thelogic v0.0.12

Weekly downloads
52
License
-
Repository
github
Last release
7 years ago

A Logic Engine written in TypeScript

Discover the release history by heading on over to the releases page.

WARNING: CURRENTLY IN DEVELOPMENT!

To Use:

  1. Install (npm required):
npm install thelogic
  1. Import:
import { default as L } from 'thelogic';
  1. Logic away:
let a = new L.Statement();
let b = new L.Statement();
let impl = new L.BinaryOperator((v) => {return (!v[0]) || v[1];});
let exp = new L.Expression([new L.Atom(a), new L.Atom(b)], impl);
let env = new L.Environment([[a, true], [b, false]]);
exp.value(env); // true

Manual coming soon (maybe).

To Help Develop:

Currently a private repo. 1. Clone the repository (git required):

cd MY_PROJECTS
git clone https://github.com/trharley/thelogic.git
  1. Install dependencies and development-dependencies (npm required):
cd thelogic/
npm install
  • Tests are run:
npm test
  • To transpile the TS into JS (not necessary for testing):
npm run-script buildjs

the output goes into build/.

  • To generate documentation:
npm run-script builddocs
0.0.12

7 years ago

0.0.11

7 years ago

0.0.9

7 years ago

0.0.8

7 years ago

0.0.6

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago

1.0.0

7 years ago