Skip to content


[Truffle] Implement BEGIN, JRuby parser already does all the work for…
Browse files Browse the repository at this point in the history
… us!
  • Loading branch information
eregon committed Nov 16, 2014
1 parent 5fcaa8b commit d030fd1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Expand Up @@ -1824,6 +1824,11 @@ public RubyNode visitOrNode(org.jruby.ast.OrNode node) {
return new OrNode(context, sourceSection, x, y);

public RubyNode visitPreExeNode(PreExeNode node) {
return node.getBodyNode().accept(this);

public RubyNode visitRedoNode(org.jruby.ast.RedoNode node) {
return new RedoNode(context, translate(node.getPosition()));
Expand Down
3 changes: 0 additions & 3 deletions spec/truffle/tags/language/BEGIN_tags.txt
@@ -1,4 +1 @@
fails:The BEGIN keyword runs first in a given code unit
fails:The BEGIN keyword runs multiple begins in FIFO order
fails:The BEGIN keyword runs in a shared scope
fails:The BEGIN keyword accesses variables outside the eval scope

0 comments on commit d030fd1

Please sign in to comment.