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 |
#147 in Parser implementations
7,934,882 downloads per month
Used in 1,840 crates
(13 directly)
14KB
166 lines
vte
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.