Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aksh-bansal-dev/piece-table

A basic implementation of piece table in Go.
https://github.com/aksh-bansal-dev/piece-table

Last synced: 25 days ago
JSON representation

A basic implementation of piece table in Go.

Awesome Lists containing this project

README

        

# piece-table
A basic implementation of piece table in Go.

A piece table is a data structure generally used for representing text document while it is edited in a text editor.
In this we maintain two buffers, one for storing the original text (immutable), and the second for storing text that we added (append-only).
We also maintain a table (list) of pieces where each piece represents a substring from buffers.