parrotcode: base class for HLL compiler objects | |
Contents | Libraries |
HLLCompiler - base class for HLL compiler objects
This file implements a HLLCompiler
class of objects used for creating HLL compilers.
It provides the standard methods required for all compilers,
as well as some standard scaffolding for running compilers from a command line.
register(string name, pmc compsub)
name
and using compsub
as the subroutine to call for performing compilation.compile(PMC source, PMC adverbs :slurpy :named)
source
according to any options given by adverbs
.
If no compiler has been registered via compsub
above,
then simply return source
.parse_name(STRING name)
name
into its component namespace parts.
The default is simply to split based on double-colons.command_line(PMC args)
|