[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Parsing strings written by string.format("%q")
- From: David Given <dg@...>
- Date: Thu, 24 Nov 2016 22:03:57 +0100
On 23/11/16 21:35, Soni L. wrote:
>[...]
> It's usually called "someone else".
> https://github.com/SoniEx2/Stuff/blob/master/lua/String.lua
Thanks, but I was rather hoping for something that didn't involve so
much interpreted Lua; it's not that I'm worried about the size, but
performance is important here.
And I don't have LPEG.
I'm tending towards the compile-and-execute method right now, actually.
It's ugly, but it's also a reasonably trusted environment, and it would
let me combine it with some other code (for parsing numbers and booleans).
--
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│ "There is nothing in the world so dangerous --- and I mean *nothing*
│ --- as a children's story that happens to be true." --- Master Li Kao,
│ _The Bridge of Birds_
Attachment:
signature.asc
Description: OpenPGP digital signature