Skip to content

Instantly share code, notes, and snippets.

@domgetter
Created January 14, 2016 19:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save domgetter/600fb6a51b9891188a5d to your computer and use it in GitHub Desktop.
Save domgetter/600fb6a51b9891188a5d to your computer and use it in GitHub Desktop.
irb(main):010:0> Parser::CurrentRuby.parse("\"123\" =~ /1/")
=> (send
(str "123") :=~
(regexp
(str "1")
(regopt)))
irb(main):011:0> Parser::CurrentRuby.parse("\"123\" !=~ /1/")
=> (send
(str "123") :!=
(send
(regexp
(str "1")
(regopt)) :~))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment