Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Commit

Permalink
Break HLL::Compiler away from PCT::HLLCompiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
colomon committed Nov 23, 2010
1 parent 9474e17 commit 60d7e50
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/HLL/Compiler.pm
Expand Up @@ -3,9 +3,12 @@ INIT {
}


class HLL::Compiler is PCT::HLLCompiler {
class HLL::Compiler {

has $!language;
has $!parsegrammar;
has $!parseactions;
has @!cmdoptions;

INIT {
HLL::Compiler.language('parrot');
Expand Down Expand Up @@ -170,4 +173,19 @@ class HLL::Compiler is PCT::HLLCompiler {
};
$*CTXSAVE := 0;
}

method parsegrammar($value?) {
if pir::defined($value) {
$!parsegrammar := $value;
}
$!parsegrammar;
}

method parseactions($value?) {
if pir::defined($value) {
$!parseactions := $value;
}
$!parseactions;
}

}

0 comments on commit 60d7e50

Please sign in to comment.