Giter VIP home page Giter VIP logo

pigeon's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.