Demos
Three Golo programs to open in Turbo Golo. Each runs under golo, and the tests pass under golo --test:
| Directory | What it shows | Run it |
|---|---|---|
hello/ |
The smallest program: a module, a function, a greeting | golo demos/hello/hello.golo |
shapes/ |
Structs, a union with two variants, augmentations, closures and a comprehension — with a *_test.golo beside it |
golo demos/shapes/shapes.golo then golo --test demos/shapes |
syntax-tour/ |
One of everything the scanner colours, each line of tour.golo running; lexer-only.golo beside it holds the tokens the lexer reads and the parser refuses, coloured but not runnable |
golo demos/syntax-tour/tour.golo |
From the repository root:
turbo-golo demos/shapes/shapes.golo
Open one, press F9 for the project tree, and Alt-G for the Golo menu. Create the project's tools file from that menu and Run asks which script to run.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|