Skip to content

Commit

Permalink
alias for pow
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroflag committed Feb 19, 2025
1 parent 8d7ed2c commit 29fb7d7
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/equinox.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ alias: need #( require 1 1 )
alias: type #( type 1 1 )
alias: max #( math.max 2 1 )
alias: min #( math.min 2 1 )
alias: pow #( math.pow 2 1 )
alias: # size
alias: emit #( string.char 1 1 ) #( io.write 1 0 )
Expand Down
3 changes: 2 additions & 1 deletion src/equinox_bundle.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3257,7 +3257,7 @@ return utils
end
end

__VERSION__="0.1-311"
__VERSION__="0.1-312"

local Compiler = require("compiler")
local Optimizer = require("ast_optimizer")
Expand Down Expand Up @@ -3289,6 +3289,7 @@ alias: need #( require 1 1 )
alias: type #( type 1 1 )
alias: max #( math.max 2 1 )
alias: min #( math.min 2 1 )
alias: pow #( math.pow 2 1 )
alias: # size
alias: emit #( string.char 1 1 ) #( io.write 1 0 )
Expand Down
2 changes: 1 addition & 1 deletion src/version/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1-311
0.1-312
2 changes: 2 additions & 0 deletions tests/test_core.eqx
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,8 @@ depth 0 =assert

1 2 >a 3 a> - - 0 =assert

2 8 pow 256 =assert

10 20
30 40 +
70 =assert
Expand Down

0 comments on commit 29fb7d7

Please sign in to comment.