home.social

#ebnf — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #ebnf, aggregated by home.social.

  1. Side questing into PEGs and #EBNF grammars (that I only barely understand) to parse #CSS.

    pypi.org/project/pyparsing/ looks useful, but I found this rudimentary CSS #PEG (gist.github.com/erikrose/56241) which can be used by pypi.org/project/parsimonious/ and it… appears to work?

    I was already re-writing the current CSS processing (remove the recusion, add in dataclasses to encapsulate domains, etc), but maybe using a more formal grammar would be a good idea. #python