Parrot Compiler Tools Parrot Compiler Tools #14

Building a HLL parser

# ...'abc.pir' continued from previous slide

.sub 'main' :main
    .param pmc args
    ##  get the ABC compiler
    $P0 = compreg 'ABC'
    ##  execute ABC as a command-line compiler
    .return $P0.'command_line'(args)
.end

.include 'abc-grammar.pir'
Copyright © 2007 Patrick Michaud