Save session state to the session’s PStore
file.
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.
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.
Parse the given source and translate it into the seattlerb/ruby_parser gem’s Sexp format.
Parse the given source and translate it into the seattlerb/ruby_parser gem’s Sexp format.
Translate the given parse result and filepath into the seattlerb/ruby_parser gem’s Sexp format.
Verifies if the arguments match with this key event. Nil arguments are ignored, but at least one must be passed as non-nil. To verify that no control keys were pressed, pass an empty array: ‘control_keys: []`.
Creates a new DNS
name from arg
. arg
can be:
Creates a new LOC::Size
from arg
which may be:
Creates a new LOC::Coord
from arg
which may be:
LOC::Coord
returns arg
.
String
arg
must match the LOC::Coord::Regex constant
Creates a new LOC::Alt
from arg
which may be: