1. Home
  2. Browse
  3. lpeg

lpeg

v1.1.0#1Latest

LPeg is a pattern-matching library for Lua, based on Parsing Expression Grammars (PEGs).

Install

Run the following Vcpkg command to install the port.

vcpkg install lpeg

Usage

lpeg provides CMake targets:

find_package(unofficial-lpeg CONFIG REQUIRED)

target_link_libraries(main PRIVATE unofficial::lpeg::lpeg)

UNOFFICIAL_LPEG_LUA_FILES will be set to the path of re.lua

add_custom_command(TARGET main POST_BUILD

COMMAND ${CMAKE_COMMAND} -E copy
${UNOFFICIAL_LPEG_LUA_FILES}
$<TARGET_FILE_DIR:main>)

install(FILES ${UNOFFICIAL_LPEG_LUA_FILES} DESTINATION my_lua_path)

Dependencies

See source

Version

v1.1.0#1

Publication

Supports

All

Homepage

inf.puc-rio.br/~roberto/lpeg

Subtree

0f7284c035

License

MIT

Definition

Manifest