#parser

no-std utf8parse

Table-driven UTF-8 parser

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

#10 in Parser tooling

Download history 1455550/week @ 2024-06-16 1468523/week @ 2024-06-23 1400642/week @ 2024-06-30 1556683/week @ 2024-07-07 1553322/week @ 2024-07-14 1628439/week @ 2024-07-21 1641348/week @ 2024-07-28 1643867/week @ 2024-08-04 1699595/week @ 2024-08-11 1705161/week @ 2024-08-18 1706998/week @ 2024-08-25 1694017/week @ 2024-09-01 1763763/week @ 2024-09-08 1700935/week @ 2024-09-15 1949006/week @ 2024-09-22 1875789/week @ 2024-09-29

7,405,291 downloads per month
Used in 1,706 crates (13 directly)

Apache-2.0 OR MIT

14KB
166 lines

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.


lib.rs:

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.

No runtime deps

Features