Commits

gabriele renzi  committed 8ad37b3

fix equality

  • Participants
  • Parent commits a5b154f

Comments (0)

Files changed (2)

File src/builtins/say.pir

 .end
 
 .sub 'equal'
+#todo test
     .param int a
     .param int b
     $I0 = a == b
-    set $P0, $I0
+    new $P0, 'Integer'
+    $P0 = $I0
     set_global 'the_condition', $P0
     .return ($P0)
 .end

File src/parser/actions.pm

 class z2::Grammar::Actions;
 
 method TOP($/) {
-  my $past := PAST::Stmts.new();
+  my $past := PAST::Block.new();
   for $<chardef> {
 =begin
     $past.push(PAST::Var.new(
           :scope('package')
         ),
         PAST::Val.new(
-          :value($<character>), 
-          :returns('String')
+          :value(""~$<character>), 
         ),
         :pasttype('bind'),
       )