Logic Flow is an interpreted language built for mathematics. It allows developers to easily write in the language of mathematics instead of always thinking in finite terms. Topics that Logic Flow tries to make easy: linear algebra, statistical analysis, discrete mathematics, and developing algorithms.
Currently in early stages of development. Thorough documentation will be posted soon...
# Returns [1, 2, 3, ... n]
fn range(n) ::
return { x | x in pZ, x <= n };
;;
let conj = pZ;
for k in range(5)
conj *= { k*x | x in pZ };
print conj;
# Returns every subset of the set
fn P(set) ::
let subsets = {[]};
for item in set ::
for subset in subsets
subsets += {subset ++ item};
subsets += {[item]};
;;
return subsets;
;;
- Download the
logic_flow-v1.0.0-macos.zip
file. - Extract the zip file.
- Open up the terminal in the folder's directory.
- Run
chmod +x logic_flow
. - You may need to give the remove the quarantine attribute on the file that MacOS puts. Do so by running
xattr -d com.apple.quarantine logic_flow
. - Run the executable in a terminal followed by the .lf file you want to run. EX:
./logic_flow main.lf
.
- Download the
logic_flow-v1.0.0-linux.zip
file. - Extract the zip file.
- Open up the terminal in the folder's directory.
- Run
chmod +x logic_flow
. - Run the executable in a terminal followed by the .lf file you want to run. EX:
./logic_flow main.lf
.
- Download the
logic_flow-v1.0.0-windows.zip
file. - Extract the zip file.
- Open up the terminal in the folder's directory.
- Run the executable in a terminal followed by the .lf file you want to run. EX:
.\logic_flow main.lf
.