Crate mortar_language

Crate mortar_language 

Source

Modules§

ast
ast.rs
cli
deserializer
deserializer.rs
diagnostics
diagnostics.rs
handler
handler.rs
lsp
parser
parser.rs
prelude
serializer
serializer.rs
token
token.rs

Structs§

Action
An action to be executed
BranchCase
A single case in a branch definition
BranchDef
A branch definition for asymmetric text interpolation
Choice
A choice option for branching dialogue
ChoiceItem
Condition
A condition for choice availability
Constant
A constant declaration
Deserializer
Deserializer for loading .mortared JSON files
Diagnostic
DiagnosticCollector
Enum
An enum definition
Event
An event triggered at a specific index
EventAction
EventDef
An event definition
FileHandler
Handle file operations
Function
A function declaration
IfCondition
A conditional expression for if-else statements
IndexOverride
Index override for run statements
Metadata
Metadata information about the compiled Mortar file
MortaredData
Node
A dialogue node with a linear content flow
NodeDef
Param
A function parameter
ParseHandler
ParserEvent
Program
Serializer
Statement
A statement (e.g., assignment)
StringPart
A part of an interpolated string
TimelineDef
A timeline definition
TimelineStmt
A timeline statement
TokenInfo
Lexical analysis result containing token information and position
Variable
A variable declaration

Enums§

ContentItem
Represents the different types of content within a node’s linear flow. This enum itself is not directly deserialized into, but serves as a guide to the structure of the Value objects in Node.content.
DiagnosticKind
FileError
Language
NodeJump
NodeStmt
Severity
Token
TopLevel

Functions§

tokenize
Public lexical analysis interface for LSP and other external components