Crate koto_parser
source ·Expand description
Contains the parser and AST format used by the Koto language
Structs§
- A Koto program represented as an Abstract Syntax Tree
- A for loop definition
- An if expression definition
- A string definition
- A try expression definition
- A constant pool produced by the Parser for a Koto script
- An error that can be produced by the Parser
- A function definition
- A node in an import item, see Node::Import
- An arm in a match expression
- Koto’s parser
- Represents a line/column position in a script
- The delimiter used by a raw string
- A span is a range in the source code, represented by a start and end position
- The formatting options that are available for interpolated strings
- An arm in a switch expression
Enums§
- An operation used in BinaryOp expressions
- An operation used in UnaryOp expressions
- A constant provided by a ConstantPool
- Either an Id or a String
- A node in a lookup chain
- A map key definition
- A meta key
- A parsed node that can be included in the AST.
- Alignment options for formatted strings
- The contents of an AstString
- A node in a string definition
- The type of quotation mark used in string delimiters
- The string types that the lexer can produce
Functions§
- Renders the excerpt of the source corresponding to the given span
Type Aliases§
- The index type used by nodes in the Ast
- The type used to refer to constants in the ConstantPool
- The result type used by the Parser