| lpeg.Cf |
|---|
| Lua function lpeg.Cf Summary Creates a fold capture Prototype lpeg.Cf (patt, func)Description If patt produces a list of captures C1 C2 ... Cn, this capture will produce the value func(...func(func(C1, C2), C3)..., Cn), that is, it will fold (or accumulate, or reduce) the captures from patt using function func.See Also ... Topics
Lua bc (big number) functions
Lua bit manipulation functions
Lua LPEG library
Lua package functions
Lua PCRE regular expression functions
Lua script extensions
Lua string functions
Lua table functions
Lua utilities
Regular Expressions
ScriptingLua functions
lpeg.C (Creates a simple capture)
lpeg.Carg (Creates an argument capture)
lpeg.Cb (Creates a back capture)
lpeg.Cc (Creates a constant capture)
lpeg.Cg (Creates a group capture)
lpeg.Cmt (Creates a match-time capture)
lpeg.Cp (Creates a position capture)
lpeg.Cs (Creates a substitution capture)
lpeg.Ct (Creates a table capture)
lpeg.locale (Returns a table of patterns matching the current locale)
lpeg.match (Matches a pattern against a string)
lpeg.P (Converts a value into a pattern)
lpeg.print (Outputs debugging information to stdout)
lpeg.R (Returns a pattern that matches a range of characters)
lpeg.S (Returns a pattern that matches a set of characters)
lpeg.type (Tests if a value is a pattern)
lpeg.V (Creates a non-terminal variable for a grammar)
lpeg.version (Returns the LPeg version)(Help topic: lua=lpeg.Cf)
Documentation contents page |