3 releases

0.2.4 Jun 17, 2024
0.2.2-rc2 Apr 19, 2024

#510 in Text processing

Download history 7/week @ 2024-07-27 2/week @ 2024-08-31 1/week @ 2024-09-14 19/week @ 2024-09-21 5/week @ 2024-09-28

227 downloads per month
Used in 2 crates

Apache-2.0

225KB
4.5K SLoC

Given source strings, MiTeX Parser provides an AST (abstract syntax tree).

Option: Command Specification

The parser retrieves a command specification which defines shape of commands. With the specification, the parser can parse commands correctly. Otherwise, all commands are parsed as barely names without arguments.

Produce: AST

It returns an untyped syntax node representing the AST defined by rowan. You can access the AST conveniently with interfaces provided by rowan::SyntaxNode.

The untyped syntax node can convert to typed ones defined in crate::syntax.

The untyped syntax node can also convert to rowan::cursor::SyntaxNode to modify the AST syntactically.

Dependencies

~5MB
~77K SLoC