Crate lib_ruby_parser[−][src]
Expand description
A Ruby parser written in Rust.
Uses bison under the hood.
Modules
containers | Module with generic containers |
debug_level | Debug level of the parser |
lex_states | Mod with all known lex states |
nodes | Module with all known node types |
source | Module with everything related to output of the Parser, but not related to AST,
like |
token_rewriter | Module to perform token rewriting |
traverse | Module to perform recursive traversing |
Structs
Bytes | Representation of a byte sequence, see |
Diagnostic | Diagnostic message that comes from the parser when there’s an error or warning |
LexState | State of the lexer |
Lexer | A struct responsible for converting a given input into a sequence of tokens |
Loc | Representation of any location in the given input |
Parser | A Bison parser, automatically generated from src/parser.y. |
ParserOptions | Configuration of the parser |
ParserResult | Combination of all data that |
ReservedWord | Representation of a reserved word in Ruby |
StaticEnvironment | Stack of local variables in nested scopes |
StringValue | Representation of the value of the string literal |
Token | A token that is emitted by a lexer and consumed by a parser |
Enums
DiagnosticMessage | Enum of all possible diagnostic message (both warnings and errors) |
ErrorLevel | Error level of the diagnostic message |
Node | Generic combination of all known nodes. |
Traits
BytesTrait | Trait with common methods of Bytes (Rust- or external-based) |
TokenTrait | Trait with common methods of Token (Rust- or external-based) |
Functions
reserved_word | Returns a |