Re: html parser

Marcus Rohrmoser <[email protected]> Mon, 3 Aug 2026 10:48:24 +0200
Newsgroups gmane.comp.lang.lua.general
Message-ID <[email protected]>
On Sat, 1 Aug 2026 15:52:25 -0400
Sean Conner <[email protected]> wrote:

>   I do have an HTML parser [2] in LPeg, about 500 lines of code.  I wouldn't
> consider LPeg all that approachable for hobbyists, newcomers or even brave
> non-techs.

maybe I won't parse HTML in its entirety and flavours, but run a filter on text-level, sift the limited tags I care about[1], and amend the output.

I still hesitate, but may turn to LPEGs (rather than a homegrown state-machine) to be a more idiomatic and maybe hone the craft.

Thanks for your input,
Marcus

[1]: at first something like https://codeberg.org/mro/pagerake/src/commit/9d5bf870/prake.ml#L35-L41

-- 
You received this message because you are subscribed to the Google Groups "lua-l" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/lua-l/20260803104824.12cbda11f9c0df49ec09c175%40mro.name.