From d1a0944cfd510762c92af4e6932bcb9219063fe4 Mon Sep 17 00:00:00 2001
From: Sam Atman <atmanistan@gmail.com>
Date: Wed, 27 Nov 2019 15:03:51 -0800
Subject: [PATCH] __pow not __exp

---
 src/bindings/lua/hammer.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/bindings/lua/hammer.lua b/src/bindings/lua/hammer.lua
index 0236bd9e..011f5c35 100644
--- a/src/bindings/lua/hammer.lua
+++ b/src/bindings/lua/hammer.lua
@@ -142,7 +142,7 @@ end
 
 -- Exponents do a lot of heavy lifting in Lpeg,
 -- which is the overloading template we're going to follow
-local function __exp(rule, power)
+local function __pow(rule, power)
   assert(type(power) == "number")
   if power == 0 then
     return h.h_many(rule)
@@ -164,7 +164,7 @@ local mt = {
   __mul = function(left, right)
     return h.h_sequence(left, right)
   end,
-  __exp = __exp,
+  __pow = __pow,
   __len = function(rule)
     return h.h_and(rule)
   end,
-- 
GitLab