pigeon

command module
v0.0.0-...-f8f9fbc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2018 License: MIT Imports: 7 Imported by: 0

README

Pigeon, an educational programming language

Video lessons on Youtube.

Pigeon (reference, notes) teaches basic programming concepts common to all mainstream languages:

  • variables
  • operations
  • branching, looping
  • local and global variables
  • functions
  • lists and hashmaps

GoPigeon (reference, notes) builds upon Pigeon to teach most of the core concepts of the Go language (sans goroutines and channels):

  • static typing
  • arrays and slices
  • multi-return functions
  • structs
  • methods
  • interfaces
  • typeswitches
  • pointers
  • bitwise operations
  • reading/writing files

Once a student is comfortable with GoPigeon, learning Go is mostly a matter of adjusting to different syntax. (Learning Go after Pigeon)

Installation and usage

Because Pigeon compiles to Go, you'll need to install the Go tools if you haven't already. Once the Go tool is installed, you can install the Pigeon compiler with one command:

go get github.com/BrianWill/pigeon

This will put the Pigeon executable in your Go bin directory. Assuming the Go bin directory is on your shell path, you can then run the compiler from any directory like so:

pigeon somefile.pigeon        # compile and run somefile.pigeon as a Pigeon program
pigeon somefile.gopigeon      # compile and run somefile.gopigeon as a GoPigeon program

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL