Grain is a new programming language that compiles to WebAssembly. For more information about the language, check out grain-lang.org.
If it's your first time here, it's highly recommended that you follow the Grain guide to get up and running!
There are tons of ways to contribute to Grain. Check out our contributing guide for more info and instructions on how to join our community Discord. All contributors are held to our contributor code of conduct.
To build Grain, you'll need yarn
and Node.js version 10 or higher. To get everything set up, run:
yarn
yarn setup
yarn compiler:build
This will set up the Grain runtime, standard library, and CLI.
If running tests is your kind of thing, run
yarn compiler:test
To build the standard library:
yarn stdlib:build
To build the runtime:
yarn runtime:build
To link the CLI:
yarn cli:link
To reset your compiler build:
yarn compiler:clean
You can run programs using the Grain CLI:
echo "print('Hello world')" > hello.gr
grain hello.gr
Alternatively, you can invoke the compiler directly:
grainc hello.gr
Copyright ©️ 2017-2020 Philip Blair and Oscar Spencer.