Skip to content

Port of the Lox language to a 68008 single board computer

Notifications You must be signed in to change notification settings

bayerf42/Lox68k

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Lox language running on the Sirichote 68008 kit

Synopsis

What is the Lox language?

It is a high-level interpreted programming language in the spirit of Python, Lua, or Javascript. Lox is dynamically typed, has garbage collection and supports functional programming idioms with closures and first-class functions. It also includes a simple class-based object system. Lox provides a read-eval-print loop (REPL) for user interaction. Here is an overview of the Lox language.

What is the Sirichote 68008 Kit?

It is an educational single-board computer, designed by Wichit Sirichote, using the ancient Motorola 68008 CPU. It is mainly intended to learn programming the 68k in machine language. It has no operating system, just a little monitor program and communicates with a terminal (emulator) via RS232. If you want to buy/build one, contact Wichit via his web site.

The combination

Lox was designed as a toy language to study the implementation of interpreters, but due to its small size and simplicity it's very well suited as a scripting language for a single board computer with very restricted resources.

The Lox68K port contains many extensions to make it a useful programming system including access to the Kit's peripherals and integrating machine level coding. I wish I had such a system in the 80ies when learning computing, but had to use stupid BASIC...

For testing and comparison, Lox68k compiles to Windows/Linux executables, too.

Continue reading the docs