Skip to content

h8gi/fifth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fifth

Simple forth interpreter written in go

Usage

You can use fifth as a repl or a library.

as a repl

go get github.com/h8gi/fifth
./fifth

as a library

package main

import (
	fifth "github.com/h8gi/fifth/lib"
)

func main() {
	i := fifth.NewInterpreter()
	i.SetReader(os.Stdin)
	i.SetWriter(os.Stdout)
	i.Repl()
}

Primitive words

see primitives.go

Todo

  • Get values from the interpreter
  • Send values to the interpreter
  • Eval text

About

forth interpreter written in golang

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages