Skip to main content

Crate texform

Crate texform 

Source
Expand description

Public TeXForm facade.

This crate exposes the stable user-facing API: parse-only Parser, normalization TransformEngine, AST serialization, argspec validation, and analysis helpers.

Re-exports§

pub use argspec::ArgSpecFormInfo;
pub use argspec::ArgSpecKindInfo;
pub use argspec::DelimiterTokenInfo;
pub use argspec::DelimiterTokenPairInfo;
pub use argspec::ParsedArgSpecSlot;
pub use argspec::RuntimeContentModeInfo;
pub use argspec::ValidateArgspecResult;
pub use argspec::validate_argspec;
pub use config::NormalizeConfig;
pub use config::rule_key_from_name;
pub use document::Document;
pub use document::NodeSpanEntry;
pub use error::Error;
pub use error::NormalizeError;
pub use error::TransformBuildError;
pub use error::TransformError;
pub use knowledge::PackageInfo;
pub use knowledge::list_packages;
pub use parse_result::ParseError;
pub use parse_result::ParseResult;
pub use parser::Parser;
pub use parser::ParserBuildError;
pub use parser::ParserBuilder;
pub use transform_engine::NormalizeResult;
pub use transform_engine::TransformEngine;
pub use transform_engine::TransformEngineBuilder;

Modules§

analysis
argspec
config
document
error
knowledge
Knowledge-base package metadata.
parse_result
parser
serialize
transform_engine

Structs§

ActiveCharacterRecord
ActiveCommandRecord
ActiveDelimiterRecord
ActiveEnvironmentRecord
Argument
Command or environment argument.
AttributeFormCounts
Declarative/prefix split for a single attribute statistic bucket.
AttributeSet
AttributeStat
CommandItem
Runtime command definition to be injected into a ParseContext.
DelimiterControlItem
Runtime delimiter control sequence to be registered in the knowledge base.
DocumentId
Process-wide unique identity for a Document.
EnvironmentItem
Runtime environment definition to be injected into a ParseContext.
FinalizeAstConfig
FinalizeAstReport
FinalizeAstStepReport
FinalizeAstStepReports
FlattenGroupsActionCounts
FlattenGroupsConfig
FlattenGroupsGuardCounts
FlattenGroupsReport
LowerAttributesConfig
LowerAttributesReport
Statistics accumulated across every LowerAttributes invocation in one transform run.
MathFontValue
NodeId
Public node handle.
NodeRef
Read-only borrowed handle to a node within a Document.
NormalizationLevelSet
ParseConfig
Parse-time configuration knobs.
ParseDiagnostic
A single diagnostic produced during parsing.
ParseDiagnosticContext
Additional source span attached to a diagnostic.
RewriteReport
Accumulates statistics across an entire rewrite pass.
RewriteRuleStat
Tracks how often a specific rule changed the AST or skipped after a scheduling target match.
RuleKey
Unique identifier for a rule, composed of its package and a human-readable name.
SerializeOptions
Top-level serialization options, grouped by scope.
SizeValue
Stable scaled-integer representation of a size factor (value × 100 rounded). Avoids using a bare f64 as a Eq + Hash key.
Span
Byte-offset span within the original source string.
StyleValue
TransformConfig
TransformReport

Enums§

AllowedMode
ArgRef
Read-side view of one command/environment argument value.
ArgValue
Write-side command/environment argument value.
ArgumentKind
Argument type.
ArgumentValue
Parsed argument value.
Attr
One of the attribute axes recognised by the phase.
AttrValue
Canonical value carried by an attribute slot.
CommandKind
ContentMode
Content mode: math or text
ContextItem
A runtime-injectable definition that augments the knowledge base.
Delimiter
Delimiter type for delimited groups
DelimiterRef
DelimiterValue
Public write-side delimiter value.
EditError
Fallible editing error from Document mutation APIs.
FromSyntaxError
Error from Document::from_syntax.
GroupKind
Group type for different grouping constructs
GroupKindRef
NodeKind
Cheap node discriminant for queries that do not need full pattern matching.
PackageLoadError
Error returned when a requested package name is not found in the registry.
ParseDiagnosticKind
Profile
SerializeError
Error type for fallible LaTeX serialization.
SyntaxNode
Immutable syntax tree node
TextFamily
TextSeries
TextShape

Type Aliases§

ArgumentSlot
Optional slot for argument lists.