Skip to content

Interpreter for super minimalistic Micron language written in pure Go

License

Notifications You must be signed in to change notification settings

jpiechowka/micron-language-interpreter-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Micron Language Interpreter

Interpreter for super minimalistic Micron language written in pure Go.

Heavily inspired by Writing An Interpreter In Go book by Thorsten Ball:

Automated builds

Automated builds with tests run after every commit to master. Status can be found below

Build and test from latest commit on master

When version tags are pushed to the repository, release workflow will run and build the binaries for every operating system. After build is successful binaries will be uploaded and release will be published on the releases page: https://github.com/jpiechowka/micron-language-interpreter-go/releases

Build, test and create release from version tag

Download release binaries

New and latest release binaries for all operating systems will be available to download from the releases page: https://github.com/jpiechowka/micron-language-interpreter-go/releases

Building from source code

If you do not want to download one of the prebuilt binaries simply execute the commands below to build from source (Go needs to be installed and properly configured, see https://golang.org/doc/install)

git clone https://github.com/jpiechowka/micron-language-interpreter-go.git
cd micron-language-interpreter-go
go build -v -a .

Interactive console

To run Micron interactive console just execute the main binary:

./micron-interpreter-${VERSION}-${OS}

After that just type some code

   __  ____
  /  |/  (_)__________  ___ 
 / /|_/ / / __/ __/ _ \/ _ \
/_/  /_/_/\__/_/  \___/_//_/

Hello User! Welcome to the Micron language console!
Feel free to type in the code below

>>