px

module
v0.7.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2025 License: MIT

README

builds.sr.ht status

Overview

px is a collection of efficiently implemented components and commonly used boilerplate typically required by parser implementations.

Useful Stuff

  1. Tokenizer
    1. Boilerplate "consume all bytes in this charset" and "consume all bytes between these two bytes" functions.
  2. Parser
    1. Depth-first and breadth-first traversal iterators.
  3. Byte recognition functions (alpha, numeric, space, symbol).
  4. A clean error baseline (Error / TokenizeError + ParseError).

TODO

  • Additional supporting functions for tree traversal (walk/visitor support).
  • More testing, coverage currently @ ~45%.
  • Improve Error to support start-to-stop "bad" annotation (currently points to start).
  • Examples.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL