Created
June 10, 2024 09:58
-
-
Save igaiga/1a616d2aa53c4a78923218edf37ac95e to your computer and use it in GitHub Desktop.
Revisions
-
igaiga created this gist
Jun 10, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ require "prism" code = <<~STR def foo 1+2 end STR p Prism.parse(code) #=> #<Prism::ParseResult:0x0000000101132048 @value=@ ProgramNode (location: (1,0)-(3,3)) ...