Skip to content

sandkoan/forth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Forth

A Stack-oriented language written in Rust

Builtin Functions

  • add (+),
  • sub (-)
  • mul (*)
  • div (/)
  • mod (%)
  • pow (**)
  • dot (.) prints out top of stack
  • dump prints out whole stack
  • abs
  • neg
  • dup
  • drop
    • a b --> a
  • swap
  • over
    • a b --> a b a
  • rot rotates top three stack elements
    • a b c --> b c a
  • clear clears the stack
  • exit

About

A Stack-oriented language written in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages