You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ruby_api.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ The full API is documented below.
20
20
*`Prism.lex_file(filepath)` - parse the tokens corresponding to the given source file and return them as an array within a parse result
21
21
*`Prism.parse(source)` - parse the syntax tree corresponding to the given source string and return it within a parse result
22
22
*`Prism.parse_file(filepath)` - parse the syntax tree corresponding to the given source file and return it within a parse result
23
+
*`Prism.parse_stream(io)` - parse the syntax tree corresponding to the source that is read out of the given IO object using the `#gets` method and return it within a parse result
23
24
*`Prism.parse_lex(source)` - parse the syntax tree corresponding to the given source string and return it within a parse result, along with the tokens
24
25
*`Prism.parse_lex_file(filepath)` - parse the syntax tree corresponding to the given source file and return it within a parse result, along with the tokens
25
26
*`Prism.load(source, serialized)` - load the serialized syntax tree using the source as a reference into a syntax tree
0 commit comments