Ticket #329: hll-compiler-name.patch
| File hll-compiler-name.patch, 1.6 KB (added by chrisdolan, 13 years ago) |
|---|
-
compilers/pct/src/PCT/HLLCompiler.pir
15 15 load_bytecode 'P6object.pbc' 16 16 load_bytecode 'Parrot/Exception.pbc' 17 17 $P0 = new 'P6metaclass' 18 $S0 = '@stages $parsegrammar $parseactions $astgrammar $commandline_banner $commandline_prompt @cmdoptions $usage $version '18 $S0 = '@stages $parsegrammar $parseactions $astgrammar $commandline_banner $commandline_prompt @cmdoptions $usage $version $compiler_progname' 19 19 $P0.'new_class'('PCT::HLLCompiler', 'attr'=>$S0) 20 20 .end 21 21 … … 143 143 The prompt is displayed in interactive mode at each point where 144 144 the compiler is ready for code to be compiled and executed. 145 145 146 =item compiler_progname([string name]) 147 148 Accessor for the C<compiler_progname>, which is often the filename of 149 the compiler's program entry point, like C<perl6.pbc>. 150 146 151 =cut 147 152 148 153 .sub 'stages' :method … … 181 186 .tailcall self.'attr'('$commandline_prompt', value, has_value) 182 187 .end 183 188 189 .sub 'compiler_progname' :method 190 .param pmc value :optional 191 .param int has_value :opt_flag 192 .tailcall self.'attr'('$compiler_progname', value, has_value) 193 .end 194 184 195 =item removestage(string stagename) 185 196 186 197 Delete a stage from the compilation process queue. … … 710 721 711 722 .local string arg0 712 723 arg0 = shift args 724 self.'compiler_progname'(arg0) 713 725 .local pmc getopts 714 726 getopts = new 'Getopt::Obj' 715 727 getopts.'notOptStop'(1)
