pgn-lexer

Crates.iopgn-lexer
lib.rspgn-lexer
version0.2.0-alpha
sourcesrc
created_at2017-09-04 16:26:47.845563
updated_at2020-12-25 19:28:13.619376
descriptionA lexer for PGN files for chess. Provides an iterator over the tokens from a byte stream.
homepage
repositoryhttps://github.com/lakinwecker/pgn-lexer
max_upload_size
id30533
size98,430
Lakin Wecker (lakinwecker)

documentation

README

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.

Commit count: 39

cargo fmt