Skip to content

A simple compiler for a forth-like programming language

License

Notifications You must be signed in to change notification settings

3xcpy/forthlike-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

An unfinished stack-based language

This compiler lets you compile code like 17 . 22 11 + emit (prints out 17!). It is completely useless, but it helped me get a bit better at Common Lisp and x86-64 assembly.

Requirements

  • x86-64 Linux
  • fasm
  • A Common Lisp implementation

Usage

  1. Load compiler.lisp in the Common Lisp implementation of your choice (only tested with sbcl)
  2. Call (compile-code "<your source code")
  3. Run make (runs the assembler)

About

A simple compiler for a forth-like programming language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published