⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module js_parser

Module js_parser 

Source
Expand description

JavaScript Parser

Parses a token stream from the lexer into an abstract syntax tree (AST). Uses arena allocation (Vec + index) for AST nodes, Pratt parsing for expressions (precedence climbing), and recursive descent for statements.

Structs§

AstArena
Arena allocator for AST nodes
JsParser
JavaScript parser

Enums§

AstNode
AST node
BinOp
Binary operator
UnaryOp
Unary operator
VarKind
Variable declaration kind

Constants§

AST_NONE
Sentinel value for “no node”

Type Aliases§

AstNodeId
Arena index for AST nodes