sipha-core
Core foundation types and traits for sipha - minimal dependencies, no parsing logic.
Overview
sipha-core is the minimal foundation of the sipha parser ecosystem. It provides only the essential traits and types that are shared across all other sipha crates:
- Core traits:
TokenKind,RuleId,NodeId,SymbolId,GrammarContext,AstNode - Basic types:
Span,Token,TokenTrivia
This crate has minimal dependencies and contains no parsing logic, focusing solely on defining the interfaces for tokens, rules, nodes, and spans.
Quick Start
Add sipha-core to your Cargo.toml:
[]
= "0.1.1"
With optional features:
[]
= { = "0.1.1", = ["serde"] }
Features
default: No features enabled (minimal dependencies)serde: Enables serialization/deserialization forSpanandToken
Example
use ;
use Span;
use Token;
;
Documentation
For more information, see:
License
This project is licensed under the MIT License - see the LICENSE file for details.
See Also
- sipha - Umbrella crate with feature flags
- sipha-tree - CST/AST construction
- sipha-parse - Parsing engine
- sipha-error - Error handling