Getting GrainEdit on GitHub
Start by cloning the Grain repository:
To get everything set up, run:
yarn setup will set up the Grain runtime, standard library, and CLI, and
yarn compiler build will compile the compiler (it’s pretty meta—we know).
After running these commands, you’ve have a new command available on your command line—
grain command is a CLI tool that both compiles and runs Grain programs.
You can check that everything is installed properly by running the version command:
If you see a a version for the CLI and the compiler, you’re all set!
We’ll first use the
grain CLI to compile and run a Hello World program, but first let’s set up our editor.