aboutsummaryrefslogtreecommitdiff
path: root/Lua/README.md
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-09-22 23:51:34 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-09-22 23:51:34 -0700
commit7122dcdc8143c76336074fec1de172d6c569f0c2 (patch)
tree67471ba9bde82b42845f733c16a490f0f6457390 /Lua/README.md
parentf1f60c9dcf3de1475851958af0529bed0dfc6d54 (diff)
Added Lua bindings
Diffstat (limited to 'Lua/README.md')
-rw-r--r--Lua/README.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/Lua/README.md b/Lua/README.md
new file mode 100644
index 0000000..dfc10bf
--- /dev/null
+++ b/Lua/README.md
@@ -0,0 +1,11 @@
+# Lua Bindings
+
+This directory contains Lua bindings for bp.
+
+## API
+
+```lua
+local bp = require("bp")
+local m, i, len = bp.match("like finding a needle in a haystack", '"n" +`e "dle"')
+local replaced = bp.match("like finding a needle in a haystack", '"n" +`e "dle"', "cat")
+```