Skip to content
Experimental Programming Language
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
example
lib
test
.gitignore
LICENSE.md
README.md
pubspec.yaml

README.md

Badger

Notice: Badger is being completely rewritten.

Badger is an experimental programming language. It can be compiled to multiple languages or can be interpreted by the reference interpreter.

Links

Example:

greet(name) {
  return "Hello $(name)"
}

let names = ["Kenneth", "Logan", "Sam", "Mike"]

for name in names {
  print(greet(name))
}

Getting Started

To install the badger interpreter, run the following command:

pub global activate -sgit git://github.com/badger-lang/badger.git

To run an example, run the following command:

badger example/greeting.badger

To compile to JavaScript, run the following command:

badger --compile=js example/greeting.badger > hello.js
You can’t perform that action at this time.