sschellhoff / fml

A simple dynamic language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Friendly Multi-paradigm Language

It is highly inspired by Bob Nystroms crafting interpreters and Thorsten Balls Writing an interpreter in go

You can start the program without any arguments to get a really simple repl. Or you can add a filepath as an argument to run a file of code.

Building

Set GOPATH properly to the starting directory. Then run make in the code directory (src/language).

On linux, run export GOPATH=$(pwd), then go to the code directory cd src/language and run the makefile make.
To run the interpreters REPL: ./interpreter, to run a file, run ./interpreter filepath. For example: ./interpreter examples/project_euler_001.fml.

Examples

src/language/examples

Core library

Set environment variable FMLPATH to the absolute path of src/language/corelibrary.

Coming soon

  • plugins (for own code wrappers and stuff)
  • more tests
  • lots of refactoring

About

A simple dynamic language


Languages

Language:Go 99.8%Language:Makefile 0.2%