PIR

Parrot 0.8.2 "Feliz Loro" Released!

On behalf of the Parrot team, I'm proud to announce Parrot 0.8.2 "Feliz Loro." Parrot is a virtual machine aimed at running all dynamic languages.

How to convert PIR to C

OBSOLETE: Needs to be updated post-PDD17

tags:

PIR Syntax Cleanup Proposals

Introduction

Since IMCC has become Parrot's parser, it has changed a lot and acquired all sorts of new syntax in order to support Parrot's new features. On the TODO list for Parrot is defining PDD 19 - PIR. Now is a good time to review the current PIR language as implemented in IMCC. Some syntax constructs are ambiguous and inconsistent. This page is intended to list these inconsistencies and help in the process of deciding what syntax should stay and which should go.

tags:

PIR Tutorial and FAQ

FAQ

What does 'PIR' stand for?

PIR stands for Parrot Intermediate Representation. In the early days, Parrot could only be programmed in Parrot Assembly (PASM), but that soon got an intermediate code compiler (IMCC) to allow for a bit more human readable syntax. For instance, instead of saying:


  set I0, 42

one could say:


  I0 = 42
tags:

The Parrot Intermediate Representation Reference Manual

Getting Started

Bits and Pieces

Parrot Magic Cookies

Arrays

Hash tables

Namespaces

Conditional statements

Subroutines

Defining subroutines

Subroutine flags

Invoking subroutines

Object Oriented Programming

Defining Classes

Methods

The Native Calling Interface

Miscellaneous

Creating and using your own opcodes

tags:
Syndicate content