Expand description
§ruby-prism-sys
FFI-bindings for prism
.
Structs§
- __
Bindgen Bitfield Unit - pm_
alias_ global_ variable_ node - AliasGlobalVariableNode
- pm_
alias_ method_ node - AliasMethodNode
- pm_
alternation_ pattern_ node - AlternationPatternNode
- pm_
and_ node - AndNode
- pm_
arguments_ node - ArgumentsNode
- pm_
array_ node - ArrayNode
- pm_
array_ pattern_ node - ArrayPatternNode
- pm_
assoc_ node - AssocNode
- pm_
assoc_ splat_ node - AssocSplatNode
- pm_
back_ reference_ read_ node - BackReferenceReadNode
- pm_
begin_ node - BeginNode
- pm_
block_ argument_ node - BlockArgumentNode
- pm_
block_ local_ variable_ node - BlockLocalVariableNode
- pm_
block_ node - BlockNode
- pm_
block_ parameter_ node - BlockParameterNode
- pm_
block_ parameters_ node - BlockParametersNode
- pm_
break_ node - BreakNode
- pm_
call_ and_ write_ node - CallAndWriteNode
- pm_
call_ node - CallNode
- pm_
call_ operator_ write_ node - CallOperatorWriteNode
- pm_
call_ or_ write_ node - CallOrWriteNode
- pm_
call_ target_ node - CallTargetNode
- pm_
capture_ pattern_ node - CapturePatternNode
- pm_
case_ match_ node - CaseMatchNode
- pm_
case_ node - CaseNode
- pm_
class_ node - ClassNode
- pm_
class_ variable_ and_ write_ node - ClassVariableAndWriteNode
- pm_
class_ variable_ operator_ write_ node - ClassVariableOperatorWriteNode
- pm_
class_ variable_ or_ write_ node - ClassVariableOrWriteNode
- pm_
class_ variable_ read_ node - ClassVariableReadNode
- pm_
class_ variable_ target_ node - ClassVariableTargetNode
- pm_
class_ variable_ write_ node - ClassVariableWriteNode
- pm_
comment - This is a node in the linked list of comments that we’ve found while parsing.
- pm_
constant_ and_ write_ node - ConstantAndWriteNode
- pm_
constant_ id_ list_ t - A list of constant IDs. Usually used to represent a set of locals.
- pm_
constant_ operator_ write_ node - ConstantOperatorWriteNode
- pm_
constant_ or_ write_ node - ConstantOrWriteNode
- pm_
constant_ path_ and_ write_ node - ConstantPathAndWriteNode
- pm_
constant_ path_ node - ConstantPathNode
- pm_
constant_ path_ operator_ write_ node - ConstantPathOperatorWriteNode
- pm_
constant_ path_ or_ write_ node - ConstantPathOrWriteNode
- pm_
constant_ path_ target_ node - ConstantPathTargetNode
- pm_
constant_ path_ write_ node - ConstantPathWriteNode
- pm_
constant_ pool_ bucket_ t - A bucket in the hash map.
- pm_
constant_ pool_ t - The overall constant pool, which stores constants found while parsing.
- pm_
constant_ read_ node - ConstantReadNode
- pm_
constant_ t - A constant in the pool which effectively stores a string.
- pm_
constant_ target_ node - ConstantTargetNode
- pm_
constant_ write_ node - ConstantWriteNode
- pm_
context_ node - This is a node in a linked list of contexts.
- pm_
def_ node - DefNode
- pm_
defined_ node - DefinedNode
- pm_
diagnostic_ t - This struct represents a diagnostic generated during parsing.
- pm_
else_ node - ElseNode
- pm_
embedded_ statements_ node - EmbeddedStatementsNode
- pm_
embedded_ variable_ node - EmbeddedVariableNode
- pm_
encoding_ t - This struct defines the functions necessary to implement the encoding interface so we can determine how many bytes the subsequent character takes. Each callback should return the number of bytes, or 0 if the next bytes are invalid for the encoding and type.
- pm_
ensure_ node - EnsureNode
- pm_
false_ node - FalseNode
- pm_
find_ pattern_ node - FindPatternNode
- pm_
flip_ flop_ node - FlipFlopNode
- pm_
float_ node - FloatNode
- pm_
for_ node - ForNode
- pm_
forwarding_ arguments_ node - ForwardingArgumentsNode
- pm_
forwarding_ parameter_ node - ForwardingParameterNode
- pm_
forwarding_ super_ node - ForwardingSuperNode
- pm_
global_ variable_ and_ write_ node - GlobalVariableAndWriteNode
- pm_
global_ variable_ operator_ write_ node - GlobalVariableOperatorWriteNode
- pm_
global_ variable_ or_ write_ node - GlobalVariableOrWriteNode
- pm_
global_ variable_ read_ node - GlobalVariableReadNode
- pm_
global_ variable_ target_ node - GlobalVariableTargetNode
- pm_
global_ variable_ write_ node - GlobalVariableWriteNode
- pm_
hash_ node - HashNode
- pm_
hash_ pattern_ node - HashPatternNode
- pm_
heredoc_ lex_ mode_ t - All of the information necessary to store to lexing a heredoc.
- pm_
if_ node - IfNode
- pm_
imaginary_ node - ImaginaryNode
- pm_
implicit_ node - ImplicitNode
- pm_
implicit_ rest_ node - ImplicitRestNode
- pm_
in_ node - InNode
- pm_
index_ and_ write_ node - IndexAndWriteNode
- pm_
index_ operator_ write_ node - IndexOperatorWriteNode
- pm_
index_ or_ write_ node - IndexOrWriteNode
- pm_
index_ target_ node - IndexTargetNode
- pm_
instance_ variable_ and_ write_ node - InstanceVariableAndWriteNode
- pm_
instance_ variable_ operator_ write_ node - InstanceVariableOperatorWriteNode
- pm_
instance_ variable_ or_ write_ node - InstanceVariableOrWriteNode
- pm_
instance_ variable_ read_ node - InstanceVariableReadNode
- pm_
instance_ variable_ target_ node - InstanceVariableTargetNode
- pm_
instance_ variable_ write_ node - InstanceVariableWriteNode
- pm_
integer_ node - IntegerNode
- pm_
integer_ t - A structure represents an arbitrary-sized integer.
- pm_
interpolated_ match_ last_ line_ node - InterpolatedMatchLastLineNode
- pm_
interpolated_ regular_ expression_ node - InterpolatedRegularExpressionNode
- pm_
interpolated_ string_ node - InterpolatedStringNode
- pm_
interpolated_ symbol_ node - InterpolatedSymbolNode
- pm_
interpolated_ x_ string_ node - InterpolatedXStringNode
- pm_
it_ local_ variable_ read_ node - ItLocalVariableReadNode
- pm_
it_ parameters_ node - ItParametersNode
- pm_
keyword_ hash_ node - KeywordHashNode
- pm_
keyword_ rest_ parameter_ node - KeywordRestParameterNode
- pm_
lambda_ node - LambdaNode
- pm_
lex_ callback_ t - When you are lexing through a file, the lexer needs all of the information that the parser additionally provides (for example, the local table). So if you want to properly lex Ruby, you need to actually lex it in the context of the parser. In order to provide this functionality, we optionally allow a struct to be attached to the parser that calls back out to a user-provided callback when each token is lexed.
- pm_
lex_ mode - When lexing Ruby source, the lexer has a small amount of state to tell which kind of token it is currently lexing. For example, when we find the start of a string, the first token that we return is a TOKEN_STRING_BEGIN token. After that the lexer is now in the PM_LEX_STRING mode, and will return tokens that are found as part of a string.
- pm_
lex_ mode__ bindgen_ ty_ 2__ bindgen_ ty_ 1 - pm_
lex_ mode__ bindgen_ ty_ 2__ bindgen_ ty_ 2 - pm_
lex_ mode__ bindgen_ ty_ 2__ bindgen_ ty_ 3 - pm_
lex_ mode__ bindgen_ ty_ 2__ bindgen_ ty_ 4 - pm_
list_ node - This struct represents an abstract linked list that provides common functionality. It is meant to be used any time a linked list is necessary to store data.
- pm_
list_ t - This represents the overall linked list. It keeps a pointer to the head and tail so that iteration is easy and pushing new nodes is easy.
- pm_
local_ t - This tracks an individual local variable in a certain lexical context, as well as the number of times is it read.
- pm_
local_ variable_ and_ write_ node - LocalVariableAndWriteNode
- pm_
local_ variable_ operator_ write_ node - LocalVariableOperatorWriteNode
- pm_
local_ variable_ or_ write_ node - LocalVariableOrWriteNode
- pm_
local_ variable_ read_ node - LocalVariableReadNode
- pm_
local_ variable_ target_ node - LocalVariableTargetNode
- pm_
local_ variable_ write_ node - LocalVariableWriteNode
- pm_
locals - This is a set of local variables in a certain lexical context (method, class, module, etc.). We need to track how many times these variables are read in order to warn if they only get written.
- pm_
location_ t - This represents a range of bytes in the source string to which a node or token corresponds.
- pm_
magic_ comment_ t - This is a node in the linked list of magic comments that we’ve found while parsing.
- pm_
match_ last_ line_ node - MatchLastLineNode
- pm_
match_ predicate_ node - MatchPredicateNode
- pm_
match_ required_ node - MatchRequiredNode
- pm_
match_ write_ node - MatchWriteNode
- pm_
missing_ node - MissingNode
- pm_
module_ node - ModuleNode
- pm_
multi_ target_ node - MultiTargetNode
- pm_
multi_ write_ node - MultiWriteNode
- pm_
newline_ list_ t - A list of offsets of newlines in a string. The offsets are assumed to be sorted/inserted in ascending order.
- pm_
next_ node - NextNode
- pm_
nil_ node - NilNode
- pm_
no_ keywords_ parameter_ node - NoKeywordsParameterNode
- pm_node
- This is the base structure that represents a node in the syntax tree. It is embedded into every node type.
- pm_
node_ hash_ t - An internal hash table for a set of nodes.
- pm_
node_ list - A list of nodes in the source, most often used for lists of children.
- pm_
numbered_ parameters_ node - NumberedParametersNode
- pm_
numbered_ reference_ read_ node - NumberedReferenceReadNode
- pm_
optional_ keyword_ parameter_ node - OptionalKeywordParameterNode
- pm_
optional_ parameter_ node - OptionalParameterNode
- pm_
options - Forward declaration needed by the callback typedef.
- pm_
options_ scope - A scope of locals surrounding the code that is being parsed.
- pm_
or_ node - OrNode
- pm_
parameters_ node - ParametersNode
- pm_
parentheses_ node - ParenthesesNode
- pm_
parser - This struct represents the overall parser. It contains a reference to the source file, as well as pointers that indicate where in the source it’s currently parsing. It also contains the most recent and current token that it’s considering.
- pm_
parser__ bindgen_ ty_ 1 - A stack of lex modes.
- pm_
pinned_ expression_ node - PinnedExpressionNode
- pm_
pinned_ variable_ node - PinnedVariableNode
- pm_
post_ execution_ node - PostExecutionNode
- pm_
pre_ execution_ node - PreExecutionNode
- pm_
program_ node - ProgramNode
- pm_
range_ node - RangeNode
- pm_
rational_ node - RationalNode
- pm_
redo_ node - RedoNode
- pm_
regular_ expression_ node - RegularExpressionNode
- pm_
required_ keyword_ parameter_ node - RequiredKeywordParameterNode
- pm_
required_ parameter_ node - RequiredParameterNode
- pm_
rescue_ modifier_ node - RescueModifierNode
- pm_
rescue_ node - RescueNode
- pm_
rest_ parameter_ node - RestParameterNode
- pm_
retry_ node - RetryNode
- pm_
return_ node - ReturnNode
- pm_
scope - This struct represents a node in a linked list of scopes. Some scopes can see into their parent scopes, while others cannot.
- pm_
self_ node - SelfNode
- pm_
shareable_ constant_ node - ShareableConstantNode
- pm_
singleton_ class_ node - SingletonClassNode
- pm_
source_ encoding_ node - SourceEncodingNode
- pm_
source_ file_ node - SourceFileNode
- pm_
source_ line_ node - SourceLineNode
- pm_
splat_ node - SplatNode
- pm_
statements_ node - StatementsNode
- pm_
static_ literals_ t - Certain sets of nodes (hash keys and when clauses) check for duplicate nodes to alert the user of potential issues. To do this, we keep a set of the nodes that have been seen so far, and compare whenever we find a new node.
- pm_
string_ node - StringNode
- pm_
string_ t - A generic string type that can have various ownership semantics.
- pm_
super_ node - SuperNode
- pm_
symbol_ node - SymbolNode
- pm_
token_ t - This struct represents a token in the Ruby source. We use it to track both type and location information.
- pm_
true_ node - TrueNode
- pm_
undef_ node - UndefNode
- pm_
unless_ node - UnlessNode
- pm_
until_ node - UntilNode
- pm_
when_ node - WhenNode
- pm_
while_ node - WhileNode
- pm_
x_ string_ node - XStringNode
- pm_
yield_ node - YieldNode
Enums§
- pm_
arguments_ node_ flags - Flags for arguments nodes.
- pm_
array_ node_ flags - Flags for array nodes.
- pm_
call_ node_ flags - Flags for call nodes.
- pm_
comment_ type_ t - This is the type of a comment that we’ve found while parsing.
- pm_
encoding_ flags - Flags for nodes that have unescaped content.
- pm_
integer_ base_ flags - Flags for integer nodes that correspond to the base of the integer.
- pm_
interpolated_ string_ node_ flags - Flags for interpolated string nodes that indicated mutability if they are also marked as literals.
- pm_
keyword_ hash_ node_ flags - Flags for keyword hash nodes.
- pm_
loop_ flags - Flags for while and until loop nodes.
- pm_
node_ type - This enum represents every type of node in the Ruby syntax tree.
- pm_
pack_ encoding - The type of encoding for a pack template string.
- pm_
pack_ endian - The endianness of a pack directive.
- pm_
pack_ length_ type - The type of length of a pack directive.
- pm_
pack_ result - The result of parsing a pack template.
- pm_
pack_ signed - The signness of a pack directive.
- pm_
pack_ size - The size of an integer pack directive.
- pm_
pack_ type - A directive within the pack template.
- pm_
pack_ variant - The type of pack template we are parsing.
- pm_
parameter_ flags - Flags for parameter nodes.
- pm_
parentheses_ node_ flags - Flags for parentheses nodes.
- pm_
range_ flags - Flags for range and flip-flop nodes.
- pm_
regular_ expression_ flags - Flags for regular expression and match last line nodes.
- pm_
shareable_ constant_ node_ flags - Flags for shareable constant nodes.
- pm_
string_ flags - Flags for string nodes.
- pm_
symbol_ flags - Flags for symbol nodes.
Constants§
- PM_
CONTEXT_ BEGIN - a begin statement
- PM_
CONTEXT_ BEGIN_ ELSE - a rescue else statement with an explicit begin
- PM_
CONTEXT_ BEGIN_ ENSURE - an ensure statement with an explicit begin
- PM_
CONTEXT_ BEGIN_ RESCUE - a rescue statement with an explicit begin
- PM_
CONTEXT_ BLOCK_ BRACES - expressions in block arguments using braces
- PM_
CONTEXT_ BLOCK_ ELSE - a rescue else statement within a do..end block
- PM_
CONTEXT_ BLOCK_ ENSURE - an ensure statement within a do..end block
- PM_
CONTEXT_ BLOCK_ KEYWORDS - expressions in block arguments using do..end
- PM_
CONTEXT_ BLOCK_ RESCUE - a rescue statement within a do..end block
- PM_
CONTEXT_ CASE_ IN - a case in statements
- PM_
CONTEXT_ CASE_ WHEN - a case when statements
- PM_
CONTEXT_ CLASS - a class declaration
- PM_
CONTEXT_ CLASS_ ELSE - a rescue else statement within a class statement
- PM_
CONTEXT_ CLASS_ ENSURE - an ensure statement within a class statement
- PM_
CONTEXT_ CLASS_ RESCUE - a rescue statement within a class statement
- PM_
CONTEXT_ DEF - a method definition
- PM_
CONTEXT_ DEFAULT_ PARAMS - a method definition’s default parameter
- PM_
CONTEXT_ DEFINED - a defined? expression
- PM_
CONTEXT_ DEF_ ELSE - a rescue else statement within a method definition
- PM_
CONTEXT_ DEF_ ENSURE - an ensure statement within a method definition
- PM_
CONTEXT_ DEF_ PARAMS - a method definition’s parameters
- PM_
CONTEXT_ DEF_ RESCUE - a rescue statement within a method definition
- PM_
CONTEXT_ ELSE - an else clause
- PM_
CONTEXT_ ELSIF - an elsif clause
- PM_
CONTEXT_ EMBEXPR - an interpolated expression
- PM_
CONTEXT_ FOR - a for loop
- PM_
CONTEXT_ FOR_ INDEX - a for loop’s index
- PM_
CONTEXT_ IF - an if statement
- PM_
CONTEXT_ LAMBDA_ BRACES - a lambda expression with braces
- PM_
CONTEXT_ LAMBDA_ DO_ END - a lambda expression with do..end
- PM_
CONTEXT_ LAMBDA_ ELSE - a rescue else statement within a lambda expression
- PM_
CONTEXT_ LAMBDA_ ENSURE - an ensure statement within a lambda expression
- PM_
CONTEXT_ LAMBDA_ RESCUE - a rescue statement within a lambda expression
- PM_
CONTEXT_ LOOP_ PREDICATE - the predicate clause of a loop statement
- PM_
CONTEXT_ MAIN - the top level context
- PM_
CONTEXT_ MODULE - a module declaration
- PM_
CONTEXT_ MODULE_ ELSE - a rescue else statement within a module statement
- PM_
CONTEXT_ MODULE_ ENSURE - an ensure statement within a module statement
- PM_
CONTEXT_ MODULE_ RESCUE - a rescue statement within a module statement
- PM_
CONTEXT_ MULTI_ TARGET - a multiple target expression
- PM_
CONTEXT_ NONE - a null context, used for returning a value from a function
- PM_
CONTEXT_ PARENS - a parenthesized expression
- PM_
CONTEXT_ POSTEXE - an END block
- PM_
CONTEXT_ PREDICATE - a predicate inside an if/elsif/unless statement
- PM_
CONTEXT_ PREEXE - a BEGIN block
- PM_
CONTEXT_ RESCUE_ MODIFIER - a modifier rescue clause
- PM_
CONTEXT_ SCLASS - a singleton class definition
- PM_
CONTEXT_ SCLASS_ ELSE - a rescue else statement with a singleton class
- PM_
CONTEXT_ SCLASS_ ENSURE - an ensure statement with a singleton class
- PM_
CONTEXT_ SCLASS_ RESCUE - a rescue statement with a singleton class
- PM_
CONTEXT_ TERNARY - a ternary expression
- PM_
CONTEXT_ UNLESS - an unless statement
- PM_
CONTEXT_ UNTIL - an until statement
- PM_
CONTEXT_ WHILE - a while statement
- PM_
ERR_ ALIAS_ ARGUMENT - These are the error diagnostics.
- PM_
ERR_ ALIAS_ ARGUMENT_ NUMBERED_ REFERENCE - These are the error diagnostics.
- PM_
ERR_ AMPAMPEQ_ MULTI_ ASSIGN - These are the error diagnostics.
- PM_
ERR_ ARGUMENT_ AFTER_ BLOCK - These are the error diagnostics.
- PM_
ERR_ ARGUMENT_ AFTER_ FORWARDING_ ELLIPSES - These are the error diagnostics.
- PM_
ERR_ ARGUMENT_ BARE_ HASH - These are the error diagnostics.
- PM_
ERR_ ARGUMENT_ BLOCK_ FORWARDING - These are the error diagnostics.
- PM_
ERR_ ARGUMENT_ BLOCK_ MULTI - These are the error diagnostics.
- PM_
ERR_ ARGUMENT_ CONFLICT_ AMPERSAND - These are the error diagnostics.
- PM_
ERR_ ARGUMENT_ CONFLICT_ STAR - These are the error diagnostics.
- PM_
ERR_ ARGUMENT_ CONFLICT_ STAR_ STAR - These are the error diagnostics.
- PM_
ERR_ ARGUMENT_ FORMAL_ CLASS - These are the error diagnostics.
- PM_
ERR_ ARGUMENT_ FORMAL_ CONSTANT - These are the error diagnostics.
- PM_
ERR_ ARGUMENT_ FORMAL_ GLOBAL - These are the error diagnostics.
- PM_
ERR_ ARGUMENT_ FORMAL_ IVAR - These are the error diagnostics.
- PM_
ERR_ ARGUMENT_ FORWARDING_ UNBOUND - These are the error diagnostics.
- PM_
ERR_ ARGUMENT_ NO_ FORWARDING_ AMPERSAND - These are the error diagnostics.
- PM_
ERR_ ARGUMENT_ NO_ FORWARDING_ ELLIPSES - These are the error diagnostics.
- PM_
ERR_ ARGUMENT_ NO_ FORWARDING_ STAR - These are the error diagnostics.
- PM_
ERR_ ARGUMENT_ NO_ FORWARDING_ STAR_ STAR - These are the error diagnostics.
- PM_
ERR_ ARGUMENT_ SPLAT_ AFTER_ ASSOC_ SPLAT - These are the error diagnostics.
- PM_
ERR_ ARGUMENT_ SPLAT_ AFTER_ SPLAT - These are the error diagnostics.
- PM_
ERR_ ARGUMENT_ TERM_ PAREN - These are the error diagnostics.
- PM_
ERR_ ARGUMENT_ UNEXPECTED_ BLOCK - These are the error diagnostics.
- PM_
ERR_ ARRAY_ ELEMENT - These are the error diagnostics.
- PM_
ERR_ ARRAY_ EXPRESSION - These are the error diagnostics.
- PM_
ERR_ ARRAY_ EXPRESSION_ AFTER_ STAR - These are the error diagnostics.
- PM_
ERR_ ARRAY_ SEPARATOR - These are the error diagnostics.
- PM_
ERR_ ARRAY_ TERM - These are the error diagnostics.
- PM_
ERR_ BEGIN_ LONELY_ ELSE - These are the error diagnostics.
- PM_
ERR_ BEGIN_ TERM - These are the error diagnostics.
- PM_
ERR_ BEGIN_ UPCASE_ BRACE - These are the error diagnostics.
- PM_
ERR_ BEGIN_ UPCASE_ TERM - These are the error diagnostics.
- PM_
ERR_ BEGIN_ UPCASE_ TOPLEVEL - These are the error diagnostics.
- PM_
ERR_ BLOCK_ PARAM_ LOCAL_ VARIABLE - These are the error diagnostics.
- PM_
ERR_ BLOCK_ PARAM_ PIPE_ TERM - These are the error diagnostics.
- PM_
ERR_ BLOCK_ TERM_ BRACE - These are the error diagnostics.
- PM_
ERR_ BLOCK_ TERM_ END - These are the error diagnostics.
- PM_
ERR_ CANNOT_ PARSE_ EXPRESSION - These are the error diagnostics.
- PM_
ERR_ CANNOT_ PARSE_ STRING_ PART - These are the error diagnostics.
- PM_
ERR_ CASE_ EXPRESSION_ AFTER_ CASE - These are the error diagnostics.
- PM_
ERR_ CASE_ EXPRESSION_ AFTER_ WHEN - These are the error diagnostics.
- PM_
ERR_ CASE_ MATCH_ MISSING_ PREDICATE - These are the error diagnostics.
- PM_
ERR_ CASE_ MISSING_ CONDITIONS - These are the error diagnostics.
- PM_
ERR_ CASE_ TERM - These are the error diagnostics.
- PM_
ERR_ CLASS_ IN_ METHOD - These are the error diagnostics.
- PM_
ERR_ CLASS_ NAME - These are the error diagnostics.
- PM_
ERR_ CLASS_ SUPERCLASS - These are the error diagnostics.
- PM_
ERR_ CLASS_ TERM - These are the error diagnostics.
- PM_
ERR_ CLASS_ UNEXPECTED_ END - These are the error diagnostics.
- PM_
ERR_ CLASS_ VARIABLE_ BARE - These are the error diagnostics.
- PM_
ERR_ CONDITIONAL_ ELSIF_ PREDICATE - These are the error diagnostics.
- PM_
ERR_ CONDITIONAL_ IF_ PREDICATE - These are the error diagnostics.
- PM_
ERR_ CONDITIONAL_ PREDICATE_ TERM - These are the error diagnostics.
- PM_
ERR_ CONDITIONAL_ TERM - These are the error diagnostics.
- PM_
ERR_ CONDITIONAL_ TERM_ ELSE - These are the error diagnostics.
- PM_
ERR_ CONDITIONAL_ UNLESS_ PREDICATE - These are the error diagnostics.
- PM_
ERR_ CONDITIONAL_ UNTIL_ PREDICATE - These are the error diagnostics.
- PM_
ERR_ CONDITIONAL_ WHILE_ PREDICATE - These are the error diagnostics.
- PM_
ERR_ CONSTANT_ PATH_ COLON_ COLON_ CONSTANT - These are the error diagnostics.
- PM_
ERR_ DEFINED_ EXPRESSION - These are the error diagnostics.
- PM_
ERR_ DEF_ ENDLESS - These are the error diagnostics.
- PM_
ERR_ DEF_ ENDLESS_ SETTER - These are the error diagnostics.
- PM_
ERR_ DEF_ NAME - These are the error diagnostics.
- PM_
ERR_ DEF_ PARAMS_ TERM - These are the error diagnostics.
- PM_
ERR_ DEF_ PARAMS_ TERM_ PAREN - These are the error diagnostics.
- PM_
ERR_ DEF_ RECEIVER - These are the error diagnostics.
- PM_
ERR_ DEF_ RECEIVER_ TERM - These are the error diagnostics.
- PM_
ERR_ DEF_ TERM - These are the error diagnostics.
- PM_
ERR_ EMBDOC_ TERM - These are the error diagnostics.
- PM_
ERR_ EMBEXPR_ END - These are the error diagnostics.
- PM_
ERR_ EMBVAR_ INVALID - These are the error diagnostics.
- PM_
ERR_ END_ UPCASE_ BRACE - These are the error diagnostics.
- PM_
ERR_ END_ UPCASE_ TERM - These are the error diagnostics.
- PM_
ERR_ ESCAPE_ INVALID_ CONTROL - These are the error diagnostics.
- PM_
ERR_ ESCAPE_ INVALID_ CONTROL_ REPEAT - These are the error diagnostics.
- PM_
ERR_ ESCAPE_ INVALID_ HEXADECIMAL - These are the error diagnostics.
- PM_
ERR_ ESCAPE_ INVALID_ META - These are the error diagnostics.
- PM_
ERR_ ESCAPE_ INVALID_ META_ REPEAT - These are the error diagnostics.
- PM_
ERR_ ESCAPE_ INVALID_ UNICODE - These are the error diagnostics.
- PM_
ERR_ ESCAPE_ INVALID_ UNICODE_ CM_ FLAGS - These are the error diagnostics.
- PM_
ERR_ ESCAPE_ INVALID_ UNICODE_ LIST - These are the error diagnostics.
- PM_
ERR_ ESCAPE_ INVALID_ UNICODE_ LITERAL - These are the error diagnostics.
- PM_
ERR_ ESCAPE_ INVALID_ UNICODE_ LONG - These are the error diagnostics.
- PM_
ERR_ ESCAPE_ INVALID_ UNICODE_ SHORT - These are the error diagnostics.
- PM_
ERR_ ESCAPE_ INVALID_ UNICODE_ TERM - These are the error diagnostics.
- PM_
ERR_ EXPECT_ ARGUMENT - These are the error diagnostics.
- PM_
ERR_ EXPECT_ EOL_ AFTER_ STATEMENT - These are the error diagnostics.
- PM_
ERR_ EXPECT_ EXPRESSION_ AFTER_ AMPAMPEQ - These are the error diagnostics.
- PM_
ERR_ EXPECT_ EXPRESSION_ AFTER_ COMMA - These are the error diagnostics.
- PM_
ERR_ EXPECT_ EXPRESSION_ AFTER_ EQUAL - These are the error diagnostics.
- PM_
ERR_ EXPECT_ EXPRESSION_ AFTER_ LESS_ LESS - These are the error diagnostics.
- PM_
ERR_ EXPECT_ EXPRESSION_ AFTER_ LPAREN - These are the error diagnostics.
- PM_
ERR_ EXPECT_ EXPRESSION_ AFTER_ OPERATOR - These are the error diagnostics.
- PM_
ERR_ EXPECT_ EXPRESSION_ AFTER_ PIPEPIPEEQ - These are the error diagnostics.
- PM_
ERR_ EXPECT_ EXPRESSION_ AFTER_ QUESTION - These are the error diagnostics.
- PM_
ERR_ EXPECT_ EXPRESSION_ AFTER_ SPLAT - These are the error diagnostics.
- PM_
ERR_ EXPECT_ EXPRESSION_ AFTER_ SPLAT_ HASH - These are the error diagnostics.
- PM_
ERR_ EXPECT_ EXPRESSION_ AFTER_ STAR - These are the error diagnostics.
- PM_
ERR_ EXPECT_ FOR_ DELIMITER - These are the error diagnostics.
- PM_
ERR_ EXPECT_ IDENT_ REQ_ PARAMETER - These are the error diagnostics.
- PM_
ERR_ EXPECT_ IN_ DELIMITER - These are the error diagnostics.
- PM_
ERR_ EXPECT_ LPAREN_ REQ_ PARAMETER - These are the error diagnostics.
- PM_
ERR_ EXPECT_ MESSAGE - These are the error diagnostics.
- PM_
ERR_ EXPECT_ RBRACKET - These are the error diagnostics.
- PM_
ERR_ EXPECT_ RPAREN - These are the error diagnostics.
- PM_
ERR_ EXPECT_ RPAREN_ AFTER_ MULTI - These are the error diagnostics.
- PM_
ERR_ EXPECT_ RPAREN_ REQ_ PARAMETER - These are the error diagnostics.
- PM_
ERR_ EXPECT_ SINGLETON_ CLASS_ DELIMITER - These are the error diagnostics.
- PM_
ERR_ EXPECT_ STRING_ CONTENT - These are the error diagnostics.
- PM_
ERR_ EXPECT_ WHEN_ DELIMITER - These are the error diagnostics.
- PM_
ERR_ EXPRESSION_ BARE_ HASH - These are the error diagnostics.
- PM_
ERR_ EXPRESSION_ NOT_ WRITABLE - These are the error diagnostics.
- PM_
ERR_ EXPRESSION_ NOT_ WRITABLE_ ENCODING - These are the error diagnostics.
- PM_
ERR_ EXPRESSION_ NOT_ WRITABLE_ FALSE - These are the error diagnostics.
- PM_
ERR_ EXPRESSION_ NOT_ WRITABLE_ FILE - These are the error diagnostics.
- PM_
ERR_ EXPRESSION_ NOT_ WRITABLE_ LINE - These are the error diagnostics.
- PM_
ERR_ EXPRESSION_ NOT_ WRITABLE_ NIL - These are the error diagnostics.
- PM_
ERR_ EXPRESSION_ NOT_ WRITABLE_ NUMBERED - These are the error diagnostics.
- PM_
ERR_ EXPRESSION_ NOT_ WRITABLE_ SELF - These are the error diagnostics.
- PM_
ERR_ EXPRESSION_ NOT_ WRITABLE_ TRUE - These are the error diagnostics.
- PM_
ERR_ FLOAT_ PARSE - These are the error diagnostics.
- PM_
ERR_ FOR_ COLLECTION - These are the error diagnostics.
- PM_
ERR_ FOR_ IN - These are the error diagnostics.
- PM_
ERR_ FOR_ INDEX - These are the error diagnostics.
- PM_
ERR_ FOR_ TERM - These are the error diagnostics.
- PM_
ERR_ GLOBAL_ VARIABLE_ BARE - These are the error diagnostics.
- PM_
ERR_ HASH_ EXPRESSION_ AFTER_ LABEL - These are the error diagnostics.
- PM_
ERR_ HASH_ KEY - These are the error diagnostics.
- PM_
ERR_ HASH_ ROCKET - These are the error diagnostics.
- PM_
ERR_ HASH_ TERM - These are the error diagnostics.
- PM_
ERR_ HASH_ VALUE - These are the error diagnostics.
- PM_
ERR_ HEREDOC_ IDENTIFIER - These are the error diagnostics.
- PM_
ERR_ HEREDOC_ TERM - These are the error diagnostics.
- PM_
ERR_ INCOMPLETE_ QUESTION_ MARK - These are the error diagnostics.
- PM_
ERR_ INCOMPLETE_ VARIABLE_ CLASS - These are the error diagnostics.
- PM_
ERR_ INCOMPLETE_ VARIABLE_ CLASS_ 3_ 3 - These are the error diagnostics.
- PM_
ERR_ INCOMPLETE_ VARIABLE_ INSTANCE - These are the error diagnostics.
- PM_
ERR_ INCOMPLETE_ VARIABLE_ INSTANCE_ 3_ 3 - These are the error diagnostics.
- PM_
ERR_ INSTANCE_ VARIABLE_ BARE - These are the error diagnostics.
- PM_
ERR_ INVALID_ BLOCK_ EXIT - These are the error diagnostics.
- PM_
ERR_ INVALID_ CHARACTER - These are the error diagnostics.
- PM_
ERR_ INVALID_ COMMA - These are the error diagnostics.
- PM_
ERR_ INVALID_ ENCODING_ MAGIC_ COMMENT - These are the error diagnostics.
- PM_
ERR_ INVALID_ ESCAPE_ CHARACTER - These are the error diagnostics.
- PM_
ERR_ INVALID_ FLOAT_ EXPONENT - These are the error diagnostics.
- PM_
ERR_ INVALID_ LOCAL_ VARIABLE_ READ - These are the error diagnostics.
- PM_
ERR_ INVALID_ LOCAL_ VARIABLE_ WRITE - These are the error diagnostics.
- PM_
ERR_ INVALID_ MULTIBYTE_ CHAR - These are the error diagnostics.
- PM_
ERR_ INVALID_ MULTIBYTE_ CHARACTER - These are the error diagnostics.
- PM_
ERR_ INVALID_ MULTIBYTE_ ESCAPE - These are the error diagnostics.
- PM_
ERR_ INVALID_ NUMBER_ BINARY - These are the error diagnostics.
- PM_
ERR_ INVALID_ NUMBER_ DECIMAL - These are the error diagnostics.
- PM_
ERR_ INVALID_ NUMBER_ FRACTION - These are the error diagnostics.
- PM_
ERR_ INVALID_ NUMBER_ HEXADECIMAL - These are the error diagnostics.
- PM_
ERR_ INVALID_ NUMBER_ OCTAL - These are the error diagnostics.
- PM_
ERR_ INVALID_ NUMBER_ UNDERSCORE_ INNER - These are the error diagnostics.
- PM_
ERR_ INVALID_ NUMBER_ UNDERSCORE_ TRAILING - These are the error diagnostics.
- PM_
ERR_ INVALID_ PERCENT - These are the error diagnostics.
- PM_
ERR_ INVALID_ PERCENT_ EOF - These are the error diagnostics.
- PM_
ERR_ INVALID_ PRINTABLE_ CHARACTER - These are the error diagnostics.
- PM_
ERR_ INVALID_ RETRY_ AFTER_ ELSE - These are the error diagnostics.
- PM_
ERR_ INVALID_ RETRY_ AFTER_ ENSURE - These are the error diagnostics.
- PM_
ERR_ INVALID_ RETRY_ WITHOUT_ RESCUE - These are the error diagnostics.
- PM_
ERR_ INVALID_ SYMBOL - These are the error diagnostics.
- PM_
ERR_ INVALID_ VARIABLE_ GLOBAL - These are the error diagnostics.
- PM_
ERR_ INVALID_ VARIABLE_ GLOBAL_ 3_ 3 - These are the error diagnostics.
- PM_
ERR_ INVALID_ YIELD - These are the error diagnostics.
- PM_
ERR_ IT_ NOT_ ALLOWED_ NUMBERED - These are the error diagnostics.
- PM_
ERR_ IT_ NOT_ ALLOWED_ ORDINARY - These are the error diagnostics.
- PM_
ERR_ LAMBDA_ OPEN - These are the error diagnostics.
- PM_
ERR_ LAMBDA_ TERM_ BRACE - These are the error diagnostics.
- PM_
ERR_ LAMBDA_ TERM_ END - These are the error diagnostics.
- PM_
ERR_ LIST_ I_ LOWER_ ELEMENT - These are the error diagnostics.
- PM_
ERR_ LIST_ I_ LOWER_ TERM - These are the error diagnostics.
- PM_
ERR_ LIST_ I_ UPPER_ ELEMENT - These are the error diagnostics.
- PM_
ERR_ LIST_ I_ UPPER_ TERM - These are the error diagnostics.
- PM_
ERR_ LIST_ W_ LOWER_ ELEMENT - These are the error diagnostics.
- PM_
ERR_ LIST_ W_ LOWER_ TERM - These are the error diagnostics.
- PM_
ERR_ LIST_ W_ UPPER_ ELEMENT - These are the error diagnostics.
- PM_
ERR_ LIST_ W_ UPPER_ TERM - These are the error diagnostics.
- PM_
ERR_ MALLOC_ FAILED - These are the error diagnostics.
- PM_
ERR_ MIXED_ ENCODING - These are the error diagnostics.
- PM_
ERR_ MODULE_ IN_ METHOD - These are the error diagnostics.
- PM_
ERR_ MODULE_ NAME - These are the error diagnostics.
- PM_
ERR_ MODULE_ TERM - These are the error diagnostics.
- PM_
ERR_ MULTI_ ASSIGN_ MULTI_ SPLATS - These are the error diagnostics.
- PM_
ERR_ MULTI_ ASSIGN_ UNEXPECTED_ REST - These are the error diagnostics.
- PM_
ERR_ NESTING_ TOO_ DEEP - These are the error diagnostics.
- PM_
ERR_ NON_ ASSOCIATIVE_ OPERATOR - These are the error diagnostics.
- PM_
ERR_ NOT_ EXPRESSION - These are the error diagnostics.
- PM_
ERR_ NO_ LOCAL_ VARIABLE - These are the error diagnostics.
- PM_
ERR_ NUMBERED_ PARAMETER_ INNER_ BLOCK - These are the error diagnostics.
- PM_
ERR_ NUMBERED_ PARAMETER_ IT - These are the error diagnostics.
- PM_
ERR_ NUMBERED_ PARAMETER_ ORDINARY - These are the error diagnostics.
- PM_
ERR_ NUMBERED_ PARAMETER_ OUTER_ BLOCK - These are the error diagnostics.
- PM_
ERR_ NUMBER_ LITERAL_ UNDERSCORE - These are the error diagnostics.
- PM_
ERR_ OPERATOR_ MULTI_ ASSIGN - These are the error diagnostics.
- PM_
ERR_ OPERATOR_ WRITE_ ARGUMENTS - These are the error diagnostics.
- PM_
ERR_ OPERATOR_ WRITE_ BLOCK - These are the error diagnostics.
- PM_
ERR_ PARAMETER_ ASSOC_ SPLAT_ MULTI - These are the error diagnostics.
- PM_
ERR_ PARAMETER_ BLOCK_ MULTI - These are the error diagnostics.
- PM_
ERR_ PARAMETER_ CIRCULAR - These are the error diagnostics.
- PM_
ERR_ PARAMETER_ FORWARDING_ AFTER_ REST - These are the error diagnostics.
- PM_
ERR_ PARAMETER_ METHOD_ NAME - These are the error diagnostics.
- PM_
ERR_ PARAMETER_ NAME_ DUPLICATED - These are the error diagnostics.
- PM_
ERR_ PARAMETER_ NO_ DEFAULT - These are the error diagnostics.
- PM_
ERR_ PARAMETER_ NO_ DEFAULT_ KW - These are the error diagnostics.
- PM_
ERR_ PARAMETER_ NUMBERED_ RESERVED - These are the error diagnostics.
- PM_
ERR_ PARAMETER_ ORDER - These are the error diagnostics.
- PM_
ERR_ PARAMETER_ SPLAT_ MULTI - These are the error diagnostics.
- PM_
ERR_ PARAMETER_ STAR - These are the error diagnostics.
- PM_
ERR_ PARAMETER_ UNEXPECTED_ FWD - These are the error diagnostics.
- PM_
ERR_ PARAMETER_ UNEXPECTED_ NO_ KW - These are the error diagnostics.
- PM_
ERR_ PARAMETER_ WILD_ LOOSE_ COMMA - These are the error diagnostics.
- PM_
ERR_ PATTERN_ ARRAY_ MULTIPLE_ RESTS - These are the error diagnostics.
- PM_
ERR_ PATTERN_ CAPTURE_ DUPLICATE - These are the error diagnostics.
- PM_
ERR_ PATTERN_ EXPRESSION_ AFTER_ BRACKET - These are the error diagnostics.
- PM_
ERR_ PATTERN_ EXPRESSION_ AFTER_ COMMA - These are the error diagnostics.
- PM_
ERR_ PATTERN_ EXPRESSION_ AFTER_ HROCKET - These are the error diagnostics.
- PM_
ERR_ PATTERN_ EXPRESSION_ AFTER_ IN - These are the error diagnostics.
- PM_
ERR_ PATTERN_ EXPRESSION_ AFTER_ KEY - These are the error diagnostics.
- PM_
ERR_ PATTERN_ EXPRESSION_ AFTER_ PAREN - These are the error diagnostics.
- PM_
ERR_ PATTERN_ EXPRESSION_ AFTER_ PIN - These are the error diagnostics.
- PM_
ERR_ PATTERN_ EXPRESSION_ AFTER_ PIPE - These are the error diagnostics.
- PM_
ERR_ PATTERN_ EXPRESSION_ AFTER_ RANGE - These are the error diagnostics.
- PM_
ERR_ PATTERN_ EXPRESSION_ AFTER_ REST - These are the error diagnostics.
- PM_
ERR_ PATTERN_ FIND_ MISSING_ INNER - These are the error diagnostics.
- PM_
ERR_ PATTERN_ HASH_ IMPLICIT - These are the error diagnostics.
- PM_
ERR_ PATTERN_ HASH_ KEY - These are the error diagnostics.
- PM_
ERR_ PATTERN_ HASH_ KEY_ DUPLICATE - These are the error diagnostics.
- PM_
ERR_ PATTERN_ HASH_ KEY_ INTERPOLATED - These are the error diagnostics.
- PM_
ERR_ PATTERN_ HASH_ KEY_ LABEL - These are the error diagnostics.
- PM_
ERR_ PATTERN_ HASH_ KEY_ LOCALS - These are the error diagnostics.
- PM_
ERR_ PATTERN_ IDENT_ AFTER_ HROCKET - These are the error diagnostics.
- PM_
ERR_ PATTERN_ LABEL_ AFTER_ COMMA - These are the error diagnostics.
- PM_
ERR_ PATTERN_ REST - These are the error diagnostics.
- PM_
ERR_ PATTERN_ TERM_ BRACE - These are the error diagnostics.
- PM_
ERR_ PATTERN_ TERM_ BRACKET - These are the error diagnostics.
- PM_
ERR_ PATTERN_ TERM_ PAREN - These are the error diagnostics.
- PM_
ERR_ PIPEPIPEEQ_ MULTI_ ASSIGN - These are the error diagnostics.
- PM_
ERR_ REGEXP_ ENCODING_ OPTION_ MISMATCH - These are the error diagnostics.
- PM_
ERR_ REGEXP_ INCOMPAT_ CHAR_ ENCODING - These are the error diagnostics.
- PM_
ERR_ REGEXP_ INVALID_ UNICODE_ RANGE - These are the error diagnostics.
- PM_
ERR_ REGEXP_ NON_ ESCAPED_ MBC - These are the error diagnostics.
- PM_
ERR_ REGEXP_ PARSE_ ERROR - These are the error diagnostics.
- PM_
ERR_ REGEXP_ TERM - These are the error diagnostics.
- PM_
ERR_ REGEXP_ UNKNOWN_ OPTIONS - These are the error diagnostics.
- PM_
ERR_ REGEXP_ UTF8_ CHAR_ NON_ UTF8_ REGEXP - These are the error diagnostics.
- PM_
ERR_ RESCUE_ EXPRESSION - These are the error diagnostics.
- PM_
ERR_ RESCUE_ MODIFIER_ VALUE - These are the error diagnostics.
- PM_
ERR_ RESCUE_ TERM - These are the error diagnostics.
- PM_
ERR_ RESCUE_ VARIABLE - These are the error diagnostics.
- PM_
ERR_ RETURN_ INVALID - These are the error diagnostics.
- PM_
ERR_ SCRIPT_ NOT_ FOUND - These are the error diagnostics.
- PM_
ERR_ SINGLETON_ FOR_ LITERALS - These are the error diagnostics.
- PM_
ERR_ STATEMENT_ ALIAS - These are the error diagnostics.
- PM_
ERR_ STATEMENT_ POSTEXE_ END - These are the error diagnostics.
- PM_
ERR_ STATEMENT_ PREEXE_ BEGIN - These are the error diagnostics.
- PM_
ERR_ STATEMENT_ UNDEF - These are the error diagnostics.
- PM_
ERR_ STRING_ CONCATENATION - These are the error diagnostics.
- PM_
ERR_ STRING_ INTERPOLATED_ TERM - These are the error diagnostics.
- PM_
ERR_ STRING_ LITERAL_ EOF - These are the error diagnostics.
- PM_
ERR_ STRING_ LITERAL_ TERM - These are the error diagnostics.
- PM_
ERR_ SYMBOL_ INVALID - These are the error diagnostics.
- PM_
ERR_ SYMBOL_ TERM_ DYNAMIC - These are the error diagnostics.
- PM_
ERR_ SYMBOL_ TERM_ INTERPOLATED - These are the error diagnostics.
- PM_
ERR_ TERNARY_ COLON - These are the error diagnostics.
- PM_
ERR_ TERNARY_ EXPRESSION_ FALSE - These are the error diagnostics.
- PM_
ERR_ TERNARY_ EXPRESSION_ TRUE - These are the error diagnostics.
- PM_
ERR_ UNARY_ DISALLOWED - These are the error diagnostics.
- PM_
ERR_ UNARY_ RECEIVER - These are the error diagnostics.
- PM_
ERR_ UNDEF_ ARGUMENT - These are the error diagnostics.
- PM_
ERR_ UNEXPECTED_ BLOCK_ ARGUMENT - These are the error diagnostics.
- PM_
ERR_ UNEXPECTED_ INDEX_ BLOCK - These are the error diagnostics.
- PM_
ERR_ UNEXPECTED_ INDEX_ KEYWORDS - These are the error diagnostics.
- PM_
ERR_ UNEXPECTED_ LABEL - These are the error diagnostics.
- PM_
ERR_ UNEXPECTED_ MULTI_ WRITE - These are the error diagnostics.
- PM_
ERR_ UNEXPECTED_ RANGE_ OPERATOR - These are the error diagnostics.
- PM_
ERR_ UNEXPECTED_ SAFE_ NAVIGATION - These are the error diagnostics.
- PM_
ERR_ UNEXPECTED_ TOKEN_ CLOSE_ CONTEXT - These are the error diagnostics.
- PM_
ERR_ UNEXPECTED_ TOKEN_ IGNORE - These are the error diagnostics.
- PM_
ERR_ UNTIL_ TERM - These are the error diagnostics.
- PM_
ERR_ VOID_ EXPRESSION - These are the error diagnostics.
- PM_
ERR_ WHILE_ TERM - These are the error diagnostics.
- PM_
ERR_ WRITE_ TARGET_ IN_ METHOD - These are the error diagnostics.
- PM_
ERR_ WRITE_ TARGET_ READONLY - These are the error diagnostics.
- PM_
ERR_ WRITE_ TARGET_ UNEXPECTED - These are the error diagnostics.
- PM_
ERR_ XSTRING_ TERM - These are the error diagnostics.
- PM_
HEREDOC_ INDENT_ DASH - PM_
HEREDOC_ INDENT_ NONE - PM_
HEREDOC_ INDENT_ TILDE - PM_
HEREDOC_ QUOTE_ BACKTICK - PM_
HEREDOC_ QUOTE_ DOUBLE - PM_
HEREDOC_ QUOTE_ NONE - PM_
HEREDOC_ QUOTE_ SINGLE - PM_
LEX_ DEFAULT - This state is used when any given token is being lexed.
- PM_
LEX_ EMBEXPR - This state is used when we’re lexing as normal but inside an embedded expression of a string.
- PM_
LEX_ EMBVAR - This state is used when we’re lexing a variable that is embedded directly inside of a string with the # shorthand.
- PM_
LEX_ HEREDOC - This state is used when you are inside the content of a heredoc.
- PM_
LEX_ LIST - This state is used when we are lexing a list of tokens, as in a %w word list literal or a %i symbol list literal.
- PM_
LEX_ REGEXP - This state is used when a regular expression has been begun and we are looking for the terminator.
- PM_
LEX_ STATE_ ARG - PM_
LEX_ STATE_ ARG_ ANY - PM_
LEX_ STATE_ BEG - PM_
LEX_ STATE_ BEG_ ANY - PM_
LEX_ STATE_ CLASS - PM_
LEX_ STATE_ CMDARG - PM_
LEX_ STATE_ DOT - PM_
LEX_ STATE_ END - PM_
LEX_ STATE_ ENDARG - PM_
LEX_ STATE_ ENDFN - PM_
LEX_ STATE_ END_ ANY - PM_
LEX_ STATE_ FITEM - PM_
LEX_ STATE_ FNAME - PM_
LEX_ STATE_ LABEL - PM_
LEX_ STATE_ LABELED - PM_
LEX_ STATE_ MID - PM_
LEX_ STATE_ NONE - PM_
LEX_ STRING - This state is used when we are lexing a string or a string-like token, as in string content with either quote or an xstring.
- PM_
OPTIONS_ VERSION_ CRUBY_ 3_ 3 - The vendored version of prism in CRuby 3.3.x.
- PM_
OPTIONS_ VERSION_ CRUBY_ 3_ 4 - The vendored version of prism in CRuby 3.4.x.
- PM_
OPTIONS_ VERSION_ LATEST - The current version of prism.
- PM_
STRING_ CONSTANT - This string is a constant string, and should not be freed.
- PM_
STRING_ MAPPED - This string is a memory-mapped file, and should be freed using
pm_string_free
. - PM_
STRING_ OWNED - This string owns its memory, and should be freed using
pm_string_free
. - PM_
STRING_ SHARED - This is a slice of another string, and should not be freed.
- PM_
TOKEN_ AMPERSAND - &
- PM_
TOKEN_ AMPERSAND_ AMPERSAND - &&
- PM_
TOKEN_ AMPERSAND_ AMPERSAND_ EQUAL - &&=
- PM_
TOKEN_ AMPERSAND_ DOT - &.
- PM_
TOKEN_ AMPERSAND_ EQUAL - &=
- PM_
TOKEN_ BACKTICK - `
- PM_
TOKEN_ BACK_ REFERENCE - a back reference
- PM_
TOKEN_ BANG - ! or !@
- PM_
TOKEN_ BANG_ EQUAL - !=
- PM_
TOKEN_ BANG_ TILDE - !~
- PM_
TOKEN_ BRACE_ LEFT - {
- PM_
TOKEN_ BRACE_ RIGHT - }
- PM_
TOKEN_ BRACKET_ LEFT - [
- PM_
TOKEN_ BRACKET_ LEFT_ ARRAY - [ for the beginning of an array
- PM_
TOKEN_ BRACKET_ LEFT_ RIGHT - []
- PM_
TOKEN_ BRACKET_ LEFT_ RIGHT_ EQUAL - []=
- PM_
TOKEN_ BRACKET_ RIGHT - ]
- PM_
TOKEN_ CARET - ^
- PM_
TOKEN_ CARET_ EQUAL - ^=
- PM_
TOKEN_ CHARACTER_ LITERAL - a character literal
- PM_
TOKEN_ CLASS_ VARIABLE - a class variable
- PM_
TOKEN_ COLON - :
- PM_
TOKEN_ COLON_ COLON - ::
- PM_
TOKEN_ COMMA - ,
- PM_
TOKEN_ COMMENT - a comment
- PM_
TOKEN_ CONSTANT - a constant
- PM_
TOKEN_ DOT - the . call operator
- PM_
TOKEN_ DOT_ DOT - the .. range operator
- PM_
TOKEN_ DOT_ DOT_ DOT - the … range operator or forwarding parameter
- PM_
TOKEN_ EMBDOC_ BEGIN - =begin
- PM_
TOKEN_ EMBDOC_ END - =end
- PM_
TOKEN_ EMBDOC_ LINE - a line inside of embedded documentation
- PM_
TOKEN_ EMBEXPR_ BEGIN - #{
- PM_
TOKEN_ EMBEXPR_ END - }
- PM_
TOKEN_ EMBVAR - PM_
TOKEN_ EOF - final token in the file
- PM_
TOKEN_ EQUAL - =
- PM_
TOKEN_ EQUAL_ EQUAL - ==
- PM_
TOKEN_ EQUAL_ EQUAL_ EQUAL - ===
- PM_
TOKEN_ EQUAL_ GREATER - =>
- PM_
TOKEN_ EQUAL_ TILDE - =~
- PM_
TOKEN_ FLOAT - a floating point number
- PM_
TOKEN_ FLOAT_ IMAGINARY - a floating pointer number with an imaginary suffix
- PM_
TOKEN_ FLOAT_ RATIONAL - a floating pointer number with a rational suffix
- PM_
TOKEN_ FLOAT_ RATIONAL_ IMAGINARY - a floating pointer number with a rational and imaginary suffix
- PM_
TOKEN_ GLOBAL_ VARIABLE - a global variable
- PM_
TOKEN_ GREATER - PM_
TOKEN_ GREATER_ EQUAL =
- PM_
TOKEN_ GREATER_ GREATER - PM_
TOKEN_ GREATER_ GREATER_ EQUAL =
- PM_
TOKEN_ HEREDOC_ END - the end of a heredoc
- PM_
TOKEN_ HEREDOC_ START - the start of a heredoc
- PM_
TOKEN_ IDENTIFIER - an identifier
- PM_
TOKEN_ IGNORED_ NEWLINE - an ignored newline
- PM_
TOKEN_ INSTANCE_ VARIABLE - an instance variable
- PM_
TOKEN_ INTEGER - an integer (any base)
- PM_
TOKEN_ INTEGER_ IMAGINARY - an integer with an imaginary suffix
- PM_
TOKEN_ INTEGER_ RATIONAL - an integer with a rational suffix
- PM_
TOKEN_ INTEGER_ RATIONAL_ IMAGINARY - an integer with a rational and imaginary suffix
- PM_
TOKEN_ KEYWORD_ ALIAS - alias
- PM_
TOKEN_ KEYWORD_ AND - and
- PM_
TOKEN_ KEYWORD_ BEGIN - begin
- PM_
TOKEN_ KEYWORD_ BEGIN_ UPCASE - BEGIN
- PM_
TOKEN_ KEYWORD_ BREAK - break
- PM_
TOKEN_ KEYWORD_ CASE - case
- PM_
TOKEN_ KEYWORD_ CLASS - class
- PM_
TOKEN_ KEYWORD_ DEF - def
- PM_
TOKEN_ KEYWORD_ DEFINED - defined?
- PM_
TOKEN_ KEYWORD_ DO - do
- PM_
TOKEN_ KEYWORD_ DO_ LOOP - do keyword for a predicate in a while, until, or for loop
- PM_
TOKEN_ KEYWORD_ ELSE - else
- PM_
TOKEN_ KEYWORD_ ELSIF - elsif
- PM_
TOKEN_ KEYWORD_ END - end
- PM_
TOKEN_ KEYWORD_ END_ UPCASE - END
- PM_
TOKEN_ KEYWORD_ ENSURE - ensure
- PM_
TOKEN_ KEYWORD_ FALSE - false
- PM_
TOKEN_ KEYWORD_ FOR - for
- PM_
TOKEN_ KEYWORD_ IF - if
- PM_
TOKEN_ KEYWORD_ IF_ MODIFIER - if in the modifier form
- PM_
TOKEN_ KEYWORD_ IN - in
- PM_
TOKEN_ KEYWORD_ MODULE - module
- PM_
TOKEN_ KEYWORD_ NEXT - next
- PM_
TOKEN_ KEYWORD_ NIL - nil
- PM_
TOKEN_ KEYWORD_ NOT - not
- PM_
TOKEN_ KEYWORD_ OR - or
- PM_
TOKEN_ KEYWORD_ REDO - redo
- PM_
TOKEN_ KEYWORD_ RESCUE - rescue
- PM_
TOKEN_ KEYWORD_ RESCUE_ MODIFIER - rescue in the modifier form
- PM_
TOKEN_ KEYWORD_ RETRY - retry
- PM_
TOKEN_ KEYWORD_ RETURN - return
- PM_
TOKEN_ KEYWORD_ SELF - self
- PM_
TOKEN_ KEYWORD_ SUPER - super
- PM_
TOKEN_ KEYWORD_ THEN - then
- PM_
TOKEN_ KEYWORD_ TRUE - true
- PM_
TOKEN_ KEYWORD_ UNDEF - undef
- PM_
TOKEN_ KEYWORD_ UNLESS - unless
- PM_
TOKEN_ KEYWORD_ UNLESS_ MODIFIER - unless in the modifier form
- PM_
TOKEN_ KEYWORD_ UNTIL - until
- PM_
TOKEN_ KEYWORD_ UNTIL_ MODIFIER - until in the modifier form
- PM_
TOKEN_ KEYWORD_ WHEN - when
- PM_
TOKEN_ KEYWORD_ WHILE - while
- PM_
TOKEN_ KEYWORD_ WHILE_ MODIFIER - while in the modifier form
- PM_
TOKEN_ KEYWORD_ YIELD - yield
- PM_
TOKEN_ KEYWORD___ ENCODING__ - ENCODING
- PM_
TOKEN_ KEYWORD___ FILE__ - FILE
- PM_
TOKEN_ KEYWORD___ LINE__ - LINE
- PM_
TOKEN_ LABEL - a label
- PM_
TOKEN_ LABEL_ END - the end of a label
- PM_
TOKEN_ LAMBDA_ BEGIN - {
- PM_
TOKEN_ LESS - <
- PM_
TOKEN_ LESS_ EQUAL - <=
- PM_
TOKEN_ LESS_ EQUAL_ GREATER - <=>
- PM_
TOKEN_ LESS_ LESS - <<
- PM_
TOKEN_ LESS_ LESS_ EQUAL - <<=
- PM_
TOKEN_ MAXIMUM - The maximum token value.
- PM_
TOKEN_ METHOD_ NAME - a method name
- PM_
TOKEN_ MINUS - PM_
TOKEN_ MINUS_ EQUAL - -=
- PM_
TOKEN_ MINUS_ GREATER - ->
- PM_
TOKEN_ MISSING - a token that was expected but not found
- PM_
TOKEN_ NEWLINE - a newline character outside of other tokens
- PM_
TOKEN_ NOT_ PROVIDED - a token that was not present but it is okay
- PM_
TOKEN_ NUMBERED_ REFERENCE - a numbered reference to a capture group in the previous regular expression match
- PM_
TOKEN_ PARENTHESIS_ LEFT - (
- PM_
TOKEN_ PARENTHESIS_ LEFT_ PARENTHESES - ( for a parentheses node
- PM_
TOKEN_ PARENTHESIS_ RIGHT - )
- PM_
TOKEN_ PERCENT - %
- PM_
TOKEN_ PERCENT_ EQUAL - %=
- PM_
TOKEN_ PERCENT_ LOWER_ I - %i
- PM_
TOKEN_ PERCENT_ LOWER_ W - %w
- PM_
TOKEN_ PERCENT_ LOWER_ X - %x
- PM_
TOKEN_ PERCENT_ UPPER_ I - %I
- PM_
TOKEN_ PERCENT_ UPPER_ W - %W
- PM_
TOKEN_ PIPE - |
- PM_
TOKEN_ PIPE_ EQUAL - |=
- PM_
TOKEN_ PIPE_ PIPE - ||
- PM_
TOKEN_ PIPE_ PIPE_ EQUAL - ||=
- PM_
TOKEN_ PLUS - PM_
TOKEN_ PLUS_ EQUAL - +=
- PM_
TOKEN_ QUESTION_ MARK - ?
- PM_
TOKEN_ REGEXP_ BEGIN - the beginning of a regular expression
- PM_
TOKEN_ REGEXP_ END - the end of a regular expression
- PM_
TOKEN_ SEMICOLON - ;
- PM_
TOKEN_ SLASH - /
- PM_
TOKEN_ SLASH_ EQUAL - /=
- PM_
TOKEN_ STAR - PM_
TOKEN_ STAR_ EQUAL - *=
- PM_
TOKEN_ STAR_ STAR - **
- PM_
TOKEN_ STAR_ STAR_ EQUAL - **=
- PM_
TOKEN_ STRING_ BEGIN - the beginning of a string
- PM_
TOKEN_ STRING_ CONTENT - the contents of a string
- PM_
TOKEN_ STRING_ END - the end of a string
- PM_
TOKEN_ SYMBOL_ BEGIN - the beginning of a symbol
- PM_
TOKEN_ TILDE - ~ or ~@
- PM_
TOKEN_ UAMPERSAND - unary &
- PM_
TOKEN_ UCOLON_ COLON - unary ::
- PM_
TOKEN_ UDOT_ DOT - unary .. operator
- PM_
TOKEN_ UDOT_ DOT_ DOT - unary … operator
- PM_
TOKEN_ UMINUS - -@
- PM_
TOKEN_ UMINUS_ NUM - -@ for a number
- PM_
TOKEN_ UPLUS - +@
- PM_
TOKEN_ USTAR - unary *
- PM_
TOKEN_ USTAR_ STAR - unary **
- PM_
TOKEN_ WORDS_ SEP - a separator between words in a list
- PM_
TOKEN___ END__ - marker for the point in the file at which the parser should stop
- PM_
WARN_ AMBIGUOUS_ BINARY_ OPERATOR - These are the warning diagnostics.
- PM_
WARN_ AMBIGUOUS_ FIRST_ ARGUMENT_ MINUS - These are the warning diagnostics.
- PM_
WARN_ AMBIGUOUS_ FIRST_ ARGUMENT_ PLUS - These are the warning diagnostics.
- PM_
WARN_ AMBIGUOUS_ PREFIX_ AMPERSAND - These are the warning diagnostics.
- PM_
WARN_ AMBIGUOUS_ PREFIX_ STAR - These are the warning diagnostics.
- PM_
WARN_ AMBIGUOUS_ PREFIX_ STAR_ STAR - These are the warning diagnostics.
- PM_
WARN_ AMBIGUOUS_ SLASH - These are the warning diagnostics.
- PM_
WARN_ COMPARISON_ AFTER_ COMPARISON - These are the warning diagnostics.
- PM_
WARN_ DOT_ DOT_ DOT_ EOL - These are the warning diagnostics.
- PM_
WARN_ DUPLICATED_ HASH_ KEY - These are the warning diagnostics.
- PM_
WARN_ DUPLICATED_ WHEN_ CLAUSE - These are the warning diagnostics.
- PM_
WARN_ END_ IN_ METHOD - These are the warning diagnostics.
- PM_
WARN_ EQUAL_ IN_ CONDITIONAL - These are the warning diagnostics.
- PM_
WARN_ EQUAL_ IN_ CONDITIONAL_ 3_ 3 - These are the warning diagnostics.
- PM_
WARN_ FLOAT_ OUT_ OF_ RANGE - These are the warning diagnostics.
- PM_
WARN_ IGNORED_ FROZEN_ STRING_ LITERAL - These are the warning diagnostics.
- PM_
WARN_ INDENTATION_ MISMATCH - These are the warning diagnostics.
- PM_
WARN_ INTEGER_ IN_ FLIP_ FLOP - These are the warning diagnostics.
- PM_
WARN_ INVALID_ CHARACTER - These are the warning diagnostics.
- PM_
WARN_ INVALID_ MAGIC_ COMMENT_ VALUE - These are the warning diagnostics.
- PM_
WARN_ INVALID_ NUMBERED_ REFERENCE - These are the warning diagnostics.
- PM_
WARN_ KEYWORD_ EOL - These are the warning diagnostics.
- PM_
WARN_ LITERAL_ IN_ CONDITION_ DEFAULT - These are the warning diagnostics.
- PM_
WARN_ LITERAL_ IN_ CONDITION_ VERBOSE - These are the warning diagnostics.
- PM_
WARN_ SHAREABLE_ CONSTANT_ VALUE_ LINE - These are the warning diagnostics.
- PM_
WARN_ SHEBANG_ CARRIAGE_ RETURN - These are the warning diagnostics.
- PM_
WARN_ UNEXPECTED_ CARRIAGE_ RETURN - These are the warning diagnostics.
- PM_
WARN_ UNREACHABLE_ STATEMENT - These are the warning diagnostics.
- PM_
WARN_ UNUSED_ LOCAL_ VARIABLE - These are the warning diagnostics.
- PM_
WARN_ VOID_ STATEMENT - These are the warning diagnostics.
Statics§
- pm_
encoding_ ⚠unicode_ table - This lookup table is referenced in both the UTF-8 encoding file and the parser directly in order to speed up the default encoding processing. It is used to indicate whether a character is alphabetical, alphanumeric, or uppercase in unicode mappings.
- pm_
encodings ⚠ - This is the table of all of the encodings that prism supports.
Functions§
- pm_
list_ ⚠empty_ p - Returns true if the given list is empty.
- pm_
list_ ⚠free - Deallocate the internal state of the given list.
- pm_
node_ ⚠destroy - Deallocate a node and all of its children.
- pm_
pack_ ⚠parse - Parse a single directive from a pack or unpack format string.
- pm_
parse ⚠ - Initiate the parser with the given parser.
- pm_
parser_ ⚠free - Free any memory associated with the given parser.
- pm_
parser_ ⚠init - Initialize a parser with the given start and end pointers.
- pm_
size_ ⚠to_ native - Prism abstracts sizes away from the native system - this converts an abstract size to a native size.
- pm_
string_ ⚠free - Free the associated memory of the given string.
- pm_
string_ ⚠length - Returns the length associated with the string.
- pm_
string_ ⚠source - Returns the start pointer associated with the string.
- pm_
version ⚠ - The prism version and the serialization format.
Type Aliases§
- pm_
alias_ global_ variable_ node_ t - AliasGlobalVariableNode
- pm_
alias_ method_ node_ t - AliasMethodNode
- pm_
alternation_ pattern_ node_ t - AlternationPatternNode
- pm_
and_ node_ t - AndNode
- pm_
arguments_ node_ t - ArgumentsNode
- pm_
array_ node_ t - ArrayNode
- pm_
array_ pattern_ node_ t - ArrayPatternNode
- pm_
assoc_ node_ t - AssocNode
- pm_
assoc_ splat_ node_ t - AssocSplatNode
- pm_
back_ reference_ read_ node_ t - BackReferenceReadNode
- pm_
begin_ node_ t - BeginNode
- pm_
block_ argument_ node_ t - BlockArgumentNode
- pm_
block_ local_ variable_ node_ t - BlockLocalVariableNode
- pm_
block_ node_ t - BlockNode
- pm_
block_ parameter_ node_ t - BlockParameterNode
- pm_
block_ parameters_ node_ t - BlockParametersNode
- pm_
break_ node_ t - BreakNode
- pm_
call_ and_ write_ node_ t - CallAndWriteNode
- pm_
call_ node_ t - CallNode
- pm_
call_ operator_ write_ node_ t - CallOperatorWriteNode
- pm_
call_ or_ write_ node_ t - CallOrWriteNode
- pm_
call_ target_ node_ t - CallTargetNode
- pm_
capture_ pattern_ node_ t - CapturePatternNode
- pm_
case_ match_ node_ t - CaseMatchNode
- pm_
case_ node_ t - CaseNode
- pm_
class_ node_ t - ClassNode
- pm_
class_ variable_ and_ write_ node_ t - ClassVariableAndWriteNode
- pm_
class_ variable_ operator_ write_ node_ t - ClassVariableOperatorWriteNode
- pm_
class_ variable_ or_ write_ node_ t - ClassVariableOrWriteNode
- pm_
class_ variable_ read_ node_ t - ClassVariableReadNode
- pm_
class_ variable_ target_ node_ t - ClassVariableTargetNode
- pm_
class_ variable_ write_ node_ t - ClassVariableWriteNode
- pm_
comment_ t - This is a node in the linked list of comments that we’ve found while parsing.
- pm_
constant_ and_ write_ node_ t - ConstantAndWriteNode
- pm_
constant_ id_ t - A constant id is a unique identifier for a constant in the constant pool.
- pm_
constant_ operator_ write_ node_ t - ConstantOperatorWriteNode
- pm_
constant_ or_ write_ node_ t - ConstantOrWriteNode
- pm_
constant_ path_ and_ write_ node_ t - ConstantPathAndWriteNode
- pm_
constant_ path_ node_ t - ConstantPathNode
- pm_
constant_ path_ operator_ write_ node_ t - ConstantPathOperatorWriteNode
- pm_
constant_ path_ or_ write_ node_ t - ConstantPathOrWriteNode
- pm_
constant_ path_ target_ node_ t - ConstantPathTargetNode
- pm_
constant_ path_ write_ node_ t - ConstantPathWriteNode
- pm_
constant_ pool_ bucket_ type_ t - The type of bucket in the constant pool hash map. This determines how the bucket should be freed.
- pm_
constant_ read_ node_ t - ConstantReadNode
- pm_
constant_ target_ node_ t - ConstantTargetNode
- pm_
constant_ write_ node_ t - ConstantWriteNode
- pm_
context_ node_ t - This is a node in a linked list of contexts.
- pm_
context_ t - While parsing, we keep track of a stack of contexts. This is helpful for error recovery so that we can pop back to a previous context when we hit a token that is understood by a parent context but not by the current context.
- pm_
def_ node_ t - DefNode
- pm_
defined_ node_ t - DefinedNode
- pm_
diagnostic_ id_ t - The diagnostic IDs of all of the diagnostics, used to communicate the types of errors between the parser and the user.
- pm_
else_ node_ t - ElseNode
- pm_
embedded_ statements_ node_ t - EmbeddedStatementsNode
- pm_
embedded_ variable_ node_ t - EmbeddedVariableNode
- pm_
encoding_ changed_ callback_ t - When the encoding that is being used to parse the source is changed by prism, we provide the ability here to call out to a user-defined function.
- pm_
ensure_ node_ t - EnsureNode
- pm_
false_ node_ t - FalseNode
- pm_
find_ pattern_ node_ t - FindPatternNode
- pm_
flip_ flop_ node_ t - FlipFlopNode
- pm_
float_ node_ t - FloatNode
- pm_
for_ node_ t - ForNode
- pm_
forwarding_ arguments_ node_ t - ForwardingArgumentsNode
- pm_
forwarding_ parameter_ node_ t - ForwardingParameterNode
- pm_
forwarding_ super_ node_ t - ForwardingSuperNode
- pm_
global_ variable_ and_ write_ node_ t - GlobalVariableAndWriteNode
- pm_
global_ variable_ operator_ write_ node_ t - GlobalVariableOperatorWriteNode
- pm_
global_ variable_ or_ write_ node_ t - GlobalVariableOrWriteNode
- pm_
global_ variable_ read_ node_ t - GlobalVariableReadNode
- pm_
global_ variable_ target_ node_ t - GlobalVariableTargetNode
- pm_
global_ variable_ write_ node_ t - GlobalVariableWriteNode
- pm_
hash_ node_ t - HashNode
- pm_
hash_ pattern_ node_ t - HashPatternNode
- pm_
heredoc_ indent_ t - The type of indentation that a heredoc uses.
- pm_
heredoc_ quote_ t - The type of quote that a heredoc uses.
- pm_
if_ node_ t - IfNode
- pm_
imaginary_ node_ t - ImaginaryNode
- pm_
implicit_ node_ t - ImplicitNode
- pm_
implicit_ rest_ node_ t - ImplicitRestNode
- pm_
in_ node_ t - InNode
- pm_
index_ and_ write_ node_ t - IndexAndWriteNode
- pm_
index_ operator_ write_ node_ t - IndexOperatorWriteNode
- pm_
index_ or_ write_ node_ t - IndexOrWriteNode
- pm_
index_ target_ node_ t - IndexTargetNode
- pm_
instance_ variable_ and_ write_ node_ t - InstanceVariableAndWriteNode
- pm_
instance_ variable_ operator_ write_ node_ t - InstanceVariableOperatorWriteNode
- pm_
instance_ variable_ or_ write_ node_ t - InstanceVariableOrWriteNode
- pm_
instance_ variable_ read_ node_ t - InstanceVariableReadNode
- pm_
instance_ variable_ target_ node_ t - InstanceVariableTargetNode
- pm_
instance_ variable_ write_ node_ t - InstanceVariableWriteNode
- pm_
integer_ node_ t - IntegerNode
- pm_
interpolated_ match_ last_ line_ node_ t - InterpolatedMatchLastLineNode
- pm_
interpolated_ regular_ expression_ node_ t - InterpolatedRegularExpressionNode
- pm_
interpolated_ string_ node_ t - InterpolatedStringNode
- pm_
interpolated_ symbol_ node_ t - InterpolatedSymbolNode
- pm_
interpolated_ x_ string_ node_ t - InterpolatedXStringNode
- pm_
it_ local_ variable_ read_ node_ t - ItLocalVariableReadNode
- pm_
it_ parameters_ node_ t - ItParametersNode
- pm_
keyword_ hash_ node_ t - KeywordHashNode
- pm_
keyword_ rest_ parameter_ node_ t - KeywordRestParameterNode
- pm_
lambda_ node_ t - LambdaNode
- pm_
lex_ mode__ bindgen_ ty_ 1 - The type of this lex mode.
- pm_
lex_ mode_ t - When lexing Ruby source, the lexer has a small amount of state to tell which kind of token it is currently lexing. For example, when we find the start of a string, the first token that we return is a TOKEN_STRING_BEGIN token. After that the lexer is now in the PM_LEX_STRING mode, and will return tokens that are found as part of a string.
- pm_
lex_ state_ t - This enum combines the various bits from the above enum into individual values that represent the various states of the lexer.
- pm_
list_ node_ t - This struct represents an abstract linked list that provides common functionality. It is meant to be used any time a linked list is necessary to store data.
- pm_
local_ variable_ and_ write_ node_ t - LocalVariableAndWriteNode
- pm_
local_ variable_ operator_ write_ node_ t - LocalVariableOperatorWriteNode
- pm_
local_ variable_ or_ write_ node_ t - LocalVariableOrWriteNode
- pm_
local_ variable_ read_ node_ t - LocalVariableReadNode
- pm_
local_ variable_ target_ node_ t - LocalVariableTargetNode
- pm_
local_ variable_ write_ node_ t - LocalVariableWriteNode
- pm_
locals_ t - This is a set of local variables in a certain lexical context (method, class, module, etc.). We need to track how many times these variables are read in order to warn if they only get written.
- pm_
match_ last_ line_ node_ t - MatchLastLineNode
- pm_
match_ predicate_ node_ t - MatchPredicateNode
- pm_
match_ required_ node_ t - MatchRequiredNode
- pm_
match_ write_ node_ t - MatchWriteNode
- pm_
missing_ node_ t - MissingNode
- pm_
module_ node_ t - ModuleNode
- pm_
multi_ target_ node_ t - MultiTargetNode
- pm_
multi_ write_ node_ t - MultiWriteNode
- pm_
next_ node_ t - NextNode
- pm_
nil_ node_ t - NilNode
- pm_
no_ keywords_ parameter_ node_ t - NoKeywordsParameterNode
- pm_
node_ flags_ t - These are the flags embedded in the node struct. We explicitly control the size of it here to avoid having the variable-width enum.
- pm_
node_ list_ t - A list of nodes in the source, most often used for lists of children.
- pm_
node_ t - This is the base structure that represents a node in the syntax tree. It is embedded into every node type.
- pm_
node_ type_ t - This is the type of node embedded in the node struct. We explicitly control the size of it here to avoid having the variable-width enum.
- pm_
numbered_ parameters_ node_ t - NumberedParametersNode
- pm_
numbered_ reference_ read_ node_ t - NumberedReferenceReadNode
- pm_
optional_ keyword_ parameter_ node_ t - OptionalKeywordParameterNode
- pm_
optional_ parameter_ node_ t - OptionalParameterNode
- pm_
options_ scope_ t - A scope of locals surrounding the code that is being parsed.
- pm_
options_ shebang_ callback_ t - The callback called when additional switches are found in a shebang comment that need to be processed by the runtime.
- pm_
options_ t - The options that can be passed to the parser.
- pm_
options_ version_ t - The version of Ruby syntax that we should be parsing with. This is used to allow consumers to specify which behavior they want in case they need to parse in the same way as a specific version of CRuby would have.
- pm_
or_ node_ t - OrNode
- pm_
parameters_ node_ t - ParametersNode
- pm_
parentheses_ node_ t - ParenthesesNode
- pm_
parser_ t - The parser used to parse Ruby source.
- pm_
pinned_ expression_ node_ t - PinnedExpressionNode
- pm_
pinned_ variable_ node_ t - PinnedVariableNode
- pm_
post_ execution_ node_ t - PostExecutionNode
- pm_
pre_ execution_ node_ t - PreExecutionNode
- pm_
program_ node_ t - ProgramNode
- pm_
range_ node_ t - RangeNode
- pm_
rational_ node_ t - RationalNode
- pm_
redo_ node_ t - RedoNode
- pm_
regular_ expression_ node_ t - RegularExpressionNode
- pm_
required_ keyword_ parameter_ node_ t - RequiredKeywordParameterNode
- pm_
required_ parameter_ node_ t - RequiredParameterNode
- pm_
rescue_ modifier_ node_ t - RescueModifierNode
- pm_
rescue_ node_ t - RescueNode
- pm_
rest_ parameter_ node_ t - RestParameterNode
- pm_
retry_ node_ t - RetryNode
- pm_
return_ node_ t - ReturnNode
- pm_
scope_ parameters_ t - The flags about scope parameters that can be set.
- pm_
scope_ t - This struct represents a node in a linked list of scopes. Some scopes can see into their parent scopes, while others cannot.
- pm_
self_ node_ t - SelfNode
- pm_
shareable_ constant_ node_ t - ShareableConstantNode
- pm_
shareable_ constant_ value_ t - The type of shareable constant value that can be set.
- pm_
singleton_ class_ node_ t - SingletonClassNode
- pm_
source_ encoding_ node_ t - SourceEncodingNode
- pm_
source_ file_ node_ t - SourceFileNode
- pm_
source_ line_ node_ t - SourceLineNode
- pm_
splat_ node_ t - SplatNode
- pm_
state_ stack_ t - A struct that represents a stack of boolean values.
- pm_
statements_ node_ t - StatementsNode
- pm_
string_ node_ t - StringNode
- pm_
string_ t__ bindgen_ ty_ 1 - The type of the string. This field determines how the string should be freed.
- pm_
super_ node_ t - SuperNode
- pm_
symbol_ node_ t - SymbolNode
- pm_
token_ type - This enum represents every type of token in the Ruby source.
- pm_
token_ type_ t - This enum represents every type of token in the Ruby source. This enum represents every type of token in the Ruby source.
- pm_
true_ node_ t - TrueNode
- pm_
undef_ node_ t - UndefNode
- pm_
unless_ node_ t - UnlessNode
- pm_
until_ node_ t - UntilNode
- pm_
when_ node_ t - WhenNode
- pm_
while_ node_ t - WhileNode
- pm_
x_ string_ node_ t - XStringNode
- pm_
yield_ node_ t - YieldNode
Unions§
- pm_
lex_ mode__ bindgen_ ty_ 2 - The data associated with this type of lex mode.