Skip to content
Snippets Groups Projects
Commit d1a0944c authored by Sam Atman's avatar Sam Atman
Browse files

__pow not __exp

parent 89c00c56
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment