Skip to content

A repo for getting started with programming in Pyret at the CLI

Notifications You must be signed in to change notification settings

jpolitz/pyret-starter-repo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Starter Repo for Pyret Projects

To get started, run:

$ npm install

This will put an executable, pyret, into node_modules/.bin/pyret. It compiles Pyret files to JavaScript files. For example:

$ ./node_modules/.bin/pyret test.arr

This will print some information about starting a server, then work for a bit and generate test.arr.jarr. The first time will take a while; future runs will be much shorter. Then you can run:

$ node test.arr.jarr
Looks shipshape, your test passed, mate!

The program main.arr is a little more complicated, and uses the file library to do some real work.

Protip: You can add $HOME/.node/bin to your $PATH and it will make npm-installed executables available by default, so you can just write pyret rather than node_modules/.bin/pyret.

About

A repo for getting started with programming in Pyret at the CLI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published