| parrotcode: Parser for .ops files | |
| Contents | Ops |

build_tools/ops2c.pl - Parser for .ops files

% perl build_tools/ops2c.pl transform options
For example:
% perl build_tools/ops2c.pl C --core
% perl build_tools/ops2c.pl C --dynamic myops.ops

This script uses a supplied transform to create a pair of C header and implementation files from the operation definitions found in one or more *.ops files.

The first command-line argument is the last package name component of a subclass of Parrot::OpTrans. These subclasses all have full names of the form Parrot::OpTrans::*. An instance of the class is created and later consulted for various bits of information needed to generate the C code. Each creates a different type of run loop.
CCGotogoto run loop.CGPgoto and predereferenced run loop.CSwitchswitched and predereferenced run loop.CPrederef

|
|
|