Post #2280782
2025-10-29 20:20 UTC
@cliffordheath@mastodon.social @robpike@hachyderm.io sounds fun! I'm primarily focused on text editing / searching so that's a little different form what I'm looking at. What sort of pattern matching / extraction are you doing on files like GIFs?
Replies (1)
-
@cliffordheath@mastodon.social 2025-10-29 20:37
@sminez@hachyderm.io @robpike@hachyderm.io my plan (because it's only a plan so far) is to extract content values to use later to steer the match, e.g. for length-delimited blocks, commonly used in protocols and file formats. Lexical typing only requires go/no-go, but useful parsing requires semantic capture, which Px already supports. A pretty-printer can re-inject non-semantic whitespace given a semantic AST. I also generate railroad diagrams and want to emit Textmate for syntax highlighters. https://github.com/cjheath/strpp