Navigation Menu

Skip to content

Commit

Permalink
Partially (non-semantically) handle labels in PASTing
Browse files Browse the repository at this point in the history
  • Loading branch information
bacek committed Feb 26, 2011
1 parent a4dbc5b commit fd3ddc8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion compilers/opsc/src/Ops/Compiler/Actions.pm
Expand Up @@ -380,7 +380,14 @@ method statement_list ($/) {

method labeled_statement ($/) {
# FIXME!!!
make $<statement>.ast;
my $past := $<statement>
?? $<statement>.ast
!! PAST::Op.new();

# FIXME!!! We need some semantics here.
$past<label> := ~$<label> if $<label>;

make $past;
}

method statement ($/) {
Expand Down

0 comments on commit fd3ddc8

Please sign in to comment.