Re: LPEG primer
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: LPEG primer
- From: Miles Bader <miles@...>
- Date: 2010年11月19日 10:12:45 +0900
Scott Vokes <vokes.s@gmail.com> writes:
> Also, LPEG grammars are relatively composable. If you're stuck on
> something, try breaking it into smaller pieces and testing them in the
> Lua interpreter.
Yup. I usually build lpeg grammars bottom-up, starting with little bits
and pieces, testing them and getting them working, and gradually
composing them to cover larger and larger chunks of the grammar until I
eventually hit the top... :]
-Miles
--
Un-American, adj. Wicked, intolerable, heathenish.