libphext is a C library that provides a reference parser for fetching text nodes from phext buffers. Support for writing directly to subspace coordinates will arrive after hello-phext (a rust implementation) is completed.
- main.c: a reference parser named 'phextio' after phext.io
- Makefile: gcc toolchain compatible
make test
: Run regression tests against sample.phextmake
: compiles phext.o and links phextio
- phext.h: Header definitions
phext_coordinate
: encodes the standard Library.Shelf.Series/Collection.Volume.Book/Chapter.Section.Scroll Coordinatephext_fetch_text
: produces the contents of the text file at the given coordinates within the phext buffer - allocates a new null-terminated buffer that you need to managephext_initialize_coordinate
: Sets your coordinates to 1.1.1/1.1.1/1.1.1phext_set_coordinate
: Sets your coordinates to match a given string representationphext_get_address
: translates a phext coordinate back to dotted-triplet-triplet formphext_validate_coordinate
: used to confirm whether or not a coordinate is realisticphext_scroll_break
: manages your coordinate for a SCROLL_BREAKphext_section_break
: manages your coordinate for a SECTION_BREAKphext_chapter_break
: manages your coordinate for a CHAPTER_BREAKphext_book_break
: manages your coordinate for a BOOK_BREAKphext_volume_break
: manages your coordinate for a VOLUME_BREAKphext_collection_break
: manages your coordinate for a COLLECTION_BREAKphext_series_break
: manages your coordinate for a SERIES_BREAKphext_shelf_break
: manages your coordinate for a SHELF_BREAKphext_library_break
: manages your coordinate for a LIBRARY_BREAK
- phext.c: Reference Parser Implementation