Parrot Compiler Tools Running Your Programming Language on Parrot #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 chromatic and Patrick Michaud