lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Thu, Feb 5, 2015 at 10:30 AM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
>> On Sun, Feb 1, 2015 at 12:38 PM, Roberto Ierusalimschy
>> <roberto@inf.puc-rio.br> wrote:
>> > LPeg is a powerful pattern-matching library for Lua, based on Parsing
>> > Expression Grammars (PEG).
>> >
>> >   home page: http://www.inf.puc-rio.br/~roberto/lpeg/
>> >
>> > This new release fixes a few bugs; in particular, it corrects a small
>> > incompatibility with Lua 5.3.
>>
>> For those of us embedding LPeg in a project (Nmap in my case), an
>> amalgamation file or Make target would be appreciated.
>
>   cat lp*.c > lpeg.c

And the header files too. I'm afraid it's not this easy because you
need to also strip the headers from the c sources and put them in the
right order.

>   gcc lpeg.c -shared -fPIC -o lpeg.so -I<whatever>
>
> ?

I think this worked because lpeg.c was in the same directory as the headers.

-- 
Patrick Donnelly