Skip to content

tbrundige/JAIL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JAIL - Just Another Interpreted Language

This is a tiny interpreter for the JAIL language implemented in C with no external libraries.

Compile time errors... right to jail. Compiled binaries... right to jail.

Right to jail

Features in this initial version:

  • String types only
  • Variable declaration: var name = "value"
  • Function definitions: func name(param) { ... }
  • Function calls: name(arg)
  • String concatenation with +
  • Built-in print(...) function

Build:

make
./jail example.jail

Example: example.jail

var greeting = "Hello"
var name = "World"

func sayHello(who) {
  var msg = greeting + ", " + who + "!!"
  print(msg)
}

sayHello(name)

To run:

./bin/jail example.jail

About

JAIL - Just Another Interpreted Language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors