Skip to main content

Crate vize_armature

Crate vize_armature 

Source
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§

pub use parser::*;
pub use tokenizer::*;

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§

AllocBox
An owned pointer to a bump-allocated T value, that runs Drop implementations.
AllocVec
A contiguous growable array type, written Vec<'bump, T> but pronounced ‘vector’.
Allocator
Arena allocator for Vize.
ArrayExpression
Array expression
AssignmentExpression
Assignment expression
AttributeNode
Attribute node
BlockStatement
Block statement
CacheExpression
Cache expression
CallExpression
Call expression
CommentNode
Comment node
CompilerError
Compiler error
CompoundExpressionNode
Compound expression node (mixed content)
ConditionalExpression
Conditional expression (ternary)
DirectiveArgumentNode
Single directive argument
DirectiveArguments
Directive arguments
DirectiveNode
Directive node (v-if, v-for, v-bind, etc.)
ElementNode
Element node
ForNode
For node (v-for)
ForParseResult
Parsed result for v-for expression
FunctionExpression
Function expression
IfBranchNode
If branch node (v-if, v-else-if, v-else)
IfNode
If node (v-if)
IfStatement
If statement (SSR)
ImportItem
Import item for code generation
InterpolationNode
Interpolation node ({{ expr }})
JsExpression
Placeholder for JavaScript expression AST from OXC
ObjectExpression
Object expression
ParserOptions
Parser options
Position
Source position in the template
Property
Object property
ReturnStatement
Return statement
RootNode
Root AST node
SequenceExpression
Sequence expression
SimpleExpressionNode
Simple expression node
SourceLocation
Source location span [start, end)
TemplateLiteral
Template literal
TextCallNode
Text call node
TextNode
Text node
VNodeCall
VNode call expression

Enums§

ArrayElement
Array element type
BlockStatementBody
Block statement body item
CallArgument
Call argument type
Callee
Callee type
CodegenNode
Codegen node union type
CompoundExpressionChild
Child of a compound expression
ConstantType
Constant type levels for static analysis
DynamicProps
Dynamic props type
ElementCodegenNode
Element codegen node (VNodeCall, SimpleExpression, CacheExpression, etc.)
ElementType
Element type discriminant
ErrorCode
Error codes for compiler errors
ExpressionNode
Expression node types
FunctionBody
Function body
FunctionParam
Single function parameter
FunctionParams
Function parameters
FunctionReturns
Function returns
IfCodegenNode
If codegen node type
IfStatementAlternate
If statement alternate
JsChildNode
All JavaScript child node types for codegen
Namespace
Namespace for elements
NodeType
Node type discriminant
ParseMode
Parse mode for the tokenizer
PropNode
Prop node (attribute or directive)
PropsExpression
Props expression type
ReturnValue
Return value type
RuntimeHelper
Runtime helper symbols
SlotsExpression
Slots expression
TemplateChildNode
All template child node types
TemplateLiteralElement
Template literal element
TemplateTextChildNode
Template text child node
TextCallCodegenNode
Text call codegen node
TextCallContent
Text call content
TextMode
Text mode for different contexts
VNodeChildren
VNode children type
VNodeTag
VNode tag type
WhitespaceStrategy
Whitespace handling strategy

Traits§

CloneIn
Trait for cloning a value into an arena allocator.

Type Aliases§

CompilerResult
Result type for compiler operations