Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing rescue statements is wrong for lexical representation #29

Open
enebo opened this issue Dec 8, 2013 · 0 comments
Open

Parsing rescue statements is wrong for lexical representation #29

enebo opened this issue Dec 8, 2013 · 0 comments

Comments

@enebo
Copy link
Member

enebo commented Dec 8, 2013

  begin
    puts "test"
  rescue Exception => hello
    puts hello
  end

This snippet will create a block node and then for hello it will make a localasgnnode and the value will be $!. We definitely do not want the AST to contain $! since it is not actually in the source and we cannot neccesarily use localasgnnode since it implies assignment. We do need to declare this as a var for things to properly parse, so I think this is implying a new type of node perhaps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant