pgn-lexer 0.1.1

A lexer for PGN files for chess. Provides an iterator over the tokens from a byte stream.
Documentation

PGN Tokenizer

Goals

  • Use zero-copy byte slices all the way through.
  • No heap allocations

API

  • A token based iterator that takes a byte slices and returns tokens that reference sub-slices

Example

This example counts the number of games in a PGN file.