Re: html parser

"'Martin Eden' via lua-l" <[email protected]> Sat, 1 Aug 2026 20:56:19 +0200
Newsgroups gmane.comp.lang.lua.general
Message-ID <[email protected]>
On 2026-08-01 11:37, Marcus Rohrmoser wrote:
> On Fri, 31 Jul 2026 18:11:36 +0200
> "'Martin Eden' via lua-l" <[email protected]> wrote:
>
>> On 2026-07-30 20:07, Marcus Rohrmoser wrote:
>>> https://aantron.github.io/lambdasoup/
>>>
>> that ocaml code looks nice, why you want lua?
> it's indeed beautiful and I immensely enjoy it[1], but while exploring convivial, malleable tools, I consider OCaml too heavy a toolchain - compared to the lua runtime.
>
> I want tinkering with tools approachable for hobbyists, newcomers and brave non-techs.
>
> Maintaining an OCaml toolchain (in fact any toolchain) feels too high a bar for what I am after.
>
> Cheers,
> Marcus
>
> [1]: e.g. at https://codeberg.org/mro/pagerake/src/commit/9d5bf87/footnote.ml#L85 or https://codeberg.org/mro/uf2ics/src/commit/92e86af5/uf2.ml#L52
>
I like data processing and creating _tools for data processing_.
Lua is nice for this activity. It's small and complete.

But here is no big hyped libraries for this. We have LPEG (if you like
C implementations, metamethods and it's names in general). Here is
stock-like regexps (I dislike regexps).

But you can write your own for yourself if you want to implement _tool_
instead of doing one-time job fast. For example (1) that's how my code
for parsing Lua grammar looks like.

Or look at the LISP direction if you want to dive into your data structure.

[1]: 
https://github.com/martin-eden/workshop/blob/master/concepts/lua/syntax/expression.lua

-- Martin

-- 
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/e5fc568a-fed1-4bf5-a4e0-d7b5d1262640%40disroot.org.