Expand description
§vize_armature
Armature - The structural parser framework for Vize. Vue template tokenizer and parser implementation.
§Name Origin
Armature (/ˈɑːrmətʃər/) is the internal skeleton or framework that supports
a sculpture during its creation. Similarly, vize_armature provides the parsing
framework that builds the AST structure defined in vize_relief.
§Features
- High-performance HTML tokenizer optimized for Vue templates
- State machine-based parsing
- Full Vue directive and interpolation support
- Error recovery and detailed error reporting
Re-exports§
Modules§
- codegen
- Code generation AST node types.
- control_
flow - Control flow AST node types.
- core
- Core AST types and enumerations.
- elements
- Element-related AST node types.
- expressions
- Expression AST node types.
- nodes
- Root and template child node types.
- parser
- Vue template parser.
- tokenizer
- HTML tokenizer for Vue templates.
Structs§
- Alloc
Box - An owned pointer to a bump-allocated
Tvalue, that runsDropimplementations. - Alloc
Vec - A contiguous growable array type, written
Vec<'bump, T>but pronounced ‘vector’. - Allocator
- Arena allocator for Vize.
- Array
Expression - Array expression
- Assignment
Expression - Assignment expression
- Attribute
Node - Attribute node
- Block
Statement - Block statement
- Cache
Expression - Cache expression
- Call
Expression - Call expression
- Comment
Node - Comment node
- Compiler
Error - Compiler error
- Compound
Expression Node - Compound expression node (mixed content)
- Conditional
Expression - Conditional expression (ternary)
- Directive
Argument Node - Single directive argument
- Directive
Arguments - Directive arguments
- Directive
Node - Directive node (v-if, v-for, v-bind, etc.)
- Element
Node - Element node
- ForNode
- For node (v-for)
- ForParse
Result - Parsed result for v-for expression
- Function
Expression - Function expression
- IfBranch
Node - If branch node (v-if, v-else-if, v-else)
- IfNode
- If node (v-if)
- IfStatement
- If statement (SSR)
- Import
Item - Import item for code generation
- Interpolation
Node - Interpolation node ({{ expr }})
- JsExpression
- Placeholder for JavaScript expression AST from OXC
- Object
Expression - Object expression
- Parser
Options - Parser options
- Position
- Source position in the template
- Property
- Object property
- Return
Statement - Return statement
- Root
Node - Root AST node
- Sequence
Expression - Sequence expression
- Simple
Expression Node - Simple expression node
- Source
Location - Source location span [start, end)
- Template
Literal - Template literal
- Text
Call Node - Text call node
- Text
Node - Text node
- VNode
Call - VNode call expression
Enums§
- Array
Element - Array element type
- Block
Statement Body - Block statement body item
- Call
Argument - Call argument type
- Callee
- Callee type
- Codegen
Node - Codegen node union type
- Compound
Expression Child - Child of a compound expression
- Constant
Type - Constant type levels for static analysis
- Dynamic
Props - Dynamic props type
- Element
Codegen Node - Element codegen node (VNodeCall, SimpleExpression, CacheExpression, etc.)
- Element
Type - Element type discriminant
- Error
Code - Error codes for compiler errors
- Expression
Node - Expression node types
- Function
Body - Function body
- Function
Param - Single function parameter
- Function
Params - Function parameters
- Function
Returns - Function returns
- IfCodegen
Node - If codegen node type
- IfStatement
Alternate - If statement alternate
- JsChild
Node - All JavaScript child node types for codegen
- Namespace
- Namespace for elements
- Node
Type - Node type discriminant
- Parse
Mode - Parse mode for the tokenizer
- Prop
Node - Prop node (attribute or directive)
- Props
Expression - Props expression type
- Return
Value - Return value type
- Runtime
Helper - Runtime helper symbols
- Slots
Expression - Slots expression
- Template
Child Node - All template child node types
- Template
Literal Element - Template literal element
- Template
Text Child Node - Template text child node
- Text
Call Codegen Node - Text call codegen node
- Text
Call Content - Text call content
- Text
Mode - Text mode for different contexts
- VNode
Children - VNode children type
- VNode
Tag - VNode tag type
- Whitespace
Strategy - Whitespace handling strategy
Traits§
- CloneIn
- Trait for cloning a value into an arena allocator.
Type Aliases§
- Compiler
Result - Result type for compiler operations