TITLE ^

abc.pir - A basic calculator.

Description ^

This is the base file for the basic calculator.

This file includes the parsing and grammar rules from the src/ directory, loads the relevant PGE libraries, and registers the compiler under the name 'ABC'.

Functions ^

__onload()

Loads the PGE libraries needed for running the parser, and registers the "compile" subroutine as the "ABC" compiler.

compile(STR code [, 'target' = target])>

Compile the ABC code. The target named parameter allows the caller to specify the degree of compilation to be performed; a value of parse returns the parse tree, PAST returns the abstract syntax tree, PIR returns the generated PIR code, and other values return the compiled code as a PMC.


parrot