[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: LPeg: named captures within a named capture ?
- From: Wolfgang Pupp <wolfgang.pupp@...>
- Date: Tue, 16 Feb 2010 23:32:31 +0100
How about this:
space = P" "^0
token = (R"az")^1
header = Cg(token, "first") * space * Cg(token, "second")
headerRedundant = Ct(#Cg(header, "whole") * header)