An experimental stack-based language with 'macros'

debris 5502e1bc87 Updated tff for IF# macro and debug LOG#REAR 1 year ago
LICENSE 25d4850864 Initial commit 1 year ago
README.md 00a2f37677 added example 1 year ago
felth.png ad7c76897d Upload files to '' 1 year ago
felth.svg 3cbd75b0f0 main file, icon added 1 year ago
monolithic.lua 704938fe86 Produce monolithic.lua 1 year ago
repl.lua 5a43f20b07 Add 'repl.lua' 1 year ago
tff.lua 5502e1bc87 Updated tff for IF# macro and debug LOG#REAR 1 year ago

README.md

felth-lua

Felth is an attempt at making a language that's as powerful as a Lisp while operating on a tape (ie, Lisp for Turing Machines).

Felth's logo

Example

Factorial:

DEFM# -- | 1 - 2 ! |

DEFM# one? | 1 =? 2 ! |

DEFM# one?: | : 1 ! one? |

DEFM# discard1 | discard 1 ! |

DEFM# dup! | dup 1 ! |

DEFM# swap2! | swap2 2 ! |

DEFM# swap3! | swap3 3 ! |

DEFM# fac' | one?: IF# |² discard1 |² dup! swap3! -- * 2 ! swap2! -- fac' |² |