5 releases

0.2.2 Jun 8, 2024
0.2.1 Mar 9, 2023
0.2.0 Jan 12, 2020
0.1.1 Sep 26, 2018
0.1.0 Sep 18, 2016

#249 in Parser implementations

Download history 2278736/week @ 2025-01-28 2453432/week @ 2025-02-04 2455161/week @ 2025-02-11 2796566/week @ 2025-02-18 2742916/week @ 2025-02-25 3096034/week @ 2025-03-04 3058979/week @ 2025-03-11 3596147/week @ 2025-03-18 3227036/week @ 2025-03-25 2982949/week @ 2025-04-01 3104150/week @ 2025-04-08 2680054/week @ 2025-04-15 2777565/week @ 2025-04-22 2670669/week @ 2025-04-29 2808779/week @ 2025-05-06 2413045/week @ 2025-05-13

11,071,157 downloads per month
Used in 1,807 crates (12 directly)

Apache-2.0 OR MIT

14KB
166 lines

A table-driven UTF-8 Parser

This module implements a table-driven UTF-8 parser which should theoretically contain the minimal number of branches (1). The only branch is on the Action returned from unpacking a transition.


vte

Build Status Crates.io Version

Parser for implementing virtual terminal emulators in Rust.

The parser is implemented according to Paul Williams' ANSI parser state machine. The state machine doesn't assign meaning to the parsed data and is thus not itself sufficient for writing a terminal emulator. Instead, it is expected that an implementation of the Perform trait which does something useful with the parsed data. The Parser handles the book keeping, and the Perform gets to simply handle actions.

See the docs for more info.

No runtime deps

Features