Raises an exception if any arguments given.
Raises an exception if argument is not present.
Parses argument if given, or uses default value.
Returns nil if argument is not present or begins with ‘-’ and is not ‘-’.
The location of the token in the source.
The state of the lexer when this token was produced.
Attach the comments to their respective locations in the tree by mutating the parse result.
Formats the errors in a human-readable way and return them as a string.
Fetch the leading and trailing comments of the value.
Create comment objects from the given values.
Configure both the leading and trailing comment fields for this repository and return self.
Parses a source buffer and returns the AST.
Parses the given Ruby
program read from src
. src
must be a String
or an IO
or a object with a gets method.
Parse the source and return the result.