Skip to main content

Module parser

Module parser 

Source
Expand description

High-performance AST parser for ForgeScript with optional validation

This module provides a fast, single-pass parser that builds a proper Abstract Syntax Tree with extensive optimizations for speed and memory efficiency, plus optional validation.

Structs§

Argument
Modifiers
ParseError
Parser
Span
ValidationConfig
Configuration for parser validation

Enums§

AstNode
ErrorKind

Functions§

is_escaped
Determines if a character at a given byte index is escaped by backslashes. This checks for an odd number of preceding backslashes.
parse
Parse ForgeScript source code into an AST (no validation)
parse_with_errors
Parse with error handling