Skip to content

Latest commit

 

History

History
23 lines (21 loc) · 667 Bytes

README.md

File metadata and controls

23 lines (21 loc) · 667 Bytes

Forthuna

A tiny Forth interpreter (Based on Forthress)

How to launch and use

  1. Clone repository
  2. Run Make
  3. Run ./forthuna

implemented words

  1. Arithmetic:

+, -, *, /, %, <

  1. Logic:

lor, land, =, not, and, or

  1. Data stack:

buf, drop, swap, dup, rot, ., .S, !, @, c!, c@, pushmode_addr, isimmeriate, itincmd

  1. Return stack:

r, r>, r@

  1. System:

isbranch, lit, pushlit, unsetbranch, saveword, savenum, wasbranch, pushmode, buffer, comp_m, inte_m, branchifz, branch, docol, "," , create, warn, bye, exit

  1. Util:

read, prints, printnl, parsei, compare, key, emit, cfa, find

  1. Colon:

', double, >, :, ;