[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: stripping comments
- From: "Kartik Agaram" <ak@...>
- Date: Mon, 24 Jul 2023 00:57:14 -0700
Hi everyone,
I've been thinking about the problem of stripping comments (including long/block comments) from a string containing Lua code. Is there some way to do this that is shorter than an imperative byte-by-byte state machine? I've considered Lua's patterns and also the Lpeg library, but without success.
Thanks,
Kartik