oak-typst

Crates.iooak-typst
lib.rsoak-typst
version0.0.1
created_at2025-10-22 03:22:57.147157+00
updated_at2026-01-23 05:20:51.242443+00
descriptionTypst document typesetting language parser with support for modern document typesetting and markup processing.
homepagehttps://github.com/ygg-lang/oaks
repositoryhttps://github.com/ygg-lang/oaks
max_upload_size
id1894878
size61,838
FuckQQ (fqq)

documentation

https://docs.rs/oak-typst

README

Oak Typst

A high-performance Typst parser built on the Oak framework.

Features

  • Fast: Incremental parsing with minimal re-parsing
  • Robust: Error recovery and fault tolerance
  • Complete: Full Typst syntax support
  • Flexible: Configurable parsing options

Usage

use oak_typst::{TypstLanguage, TypstLexer};
use oak_core::{parse, SourceText};

let source = SourceText::new("#let x = 42");
let language = TypstLanguage::standard();
let lexer = TypstLexer::new(&language);
let tree = parse(&source, &lexer);

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

Commit count: 80

cargo fmt