Skip to content

Latest commit

 

History

History
95 lines (94 loc) · 17.3 KB

opcodes.generated.md

File metadata and controls

95 lines (94 loc) · 17.3 KB

OpCodes

Hover opcode name to see a description or click to see all outputs.

Alias Full name Input Output
is_even is_even [Int] Bool
is_odd is_odd [Int] Bool
succ succ [Int] Int
pred pred [Int] Int
+ add
append
concat[List]
concat[Text]
[Int, Int, ...Int]
[(List T1), T1]
[(List T1), (List T1), ...(List T1)]
[Text, Text, ...Text]
Int
(List T1)
(List T1)
Text
- sub
neg
[Int, Int, ...Int]
[Int]
Int
Int
* mul [Int, Int, ...Int] Int
div div [Int, Int] Int
^ pow [Int, 0..oo] Int
mod mod [Int, Int] Int
& bit_and [Int, Int, ...Int] Int
| bit_or [Int, Int, ...Int] Int
~ bit_xor
bit_not
[Int, Int, ...Int]
[Int]
Int
Int
<< bit_shift_left [Int, 0..oo] Int
>> bit_shift_right [Int, 0..oo] Int
gcd gcd [Int, Int, ...Int] 1..oo
min min [Int, Int, ...Int] Int
max max [Int, Int, ...Int] Int
abs abs [Int] 0..oo
bit_count bit_count [0..oo] 0..2
read[line] read[line] [] Text
@ at[argv]
at[Array]
at[List]
at_back[List]
at[Table]
at[Ascii]
at_back[Ascii]
with_at[Array]
with_at[List]
with_at_back[List]
with_at[Table]
[0..oo]
[(Array T1 T2), T2]
[(List T1), 0..oo]
[(List T1), -oo..-1]
[(Table T1 T2), T1]
[Ascii, 0..oo]
[Ascii, -oo..-1]
[(Array T1 T2), T2, T1]
[(List T1), 0..oo, T1]
[(List T1), -oo..-1, T1]
[(Table T1 T2), T1, T2]
Text
T1
T1
T1
T2
(Ascii 1..1)
(Ascii 1..1)
(Array T1 T2)
(List T1)
(List T1)
(Table T1 T2)
print print[Text]
print[Int]
[Text]
[Int]
Void
Void
println println[Text]
println[Int]
[Text]
[Int]
Void
Void
putc[byte] putc[byte] [0..255] Void
putc[codepoint] putc[codepoint] [0..1114111] Void
putc putc[Ascii] [0..127] Void
or or [Bool, Bool, ...Bool] Bool
and and [Bool, Bool, ...Bool] Bool
unsafe_or unsafe_or [Bool, Bool] Bool
unsafe_and unsafe_and [Bool, Bool] Bool
not not [Bool] Bool
true true [] Bool
false false [] Bool
< lt [Int, Int] Bool
<= leq [Int, Int] Bool
>= geq [Int, Int] Bool
> gt [Int, Int] Bool
== eq[Int]
eq[Text]
[Int, Int]
[Text, Text]
Bool
Bool
!= neq[Int]
neq[Text]
[Int, Int]
[Text, Text]
Bool
Bool
at[byte] at[byte] [Text, 0..oo] (Text 1..1)
at_back[byte] at_back[byte] [Text, -oo..-1] (Text 1..1)
at[codepoint] at[codepoint] [Text, 0..oo] (Text 1..1)
at_back[codepoint] at_back[codepoint] [Text, -oo..-1] (Text 1..1)
slice[codepoint] slice[codepoint] [Text, 0..oo, 0..oo] Text
slice_back[codepoint] slice_back[codepoint] [Text, -oo..-1, 0..oo] Text
slice[byte] slice[byte] [Text, 0..oo, 0..oo] Text
slice_back[byte] slice_back[byte] [Text, -oo..-1, 0..oo] Text
slice slice[Ascii]
slice_back[Ascii]
slice[List]
slice_back[List]
[Ascii, 0..oo, 0..oo]
[Ascii, -oo..-1, 0..oo]
[(List T1), 0..oo, 0..oo]
[(List T1), -oo..-1, 0..oo]
Ascii
Ascii
(List T1)
(List T1)
ord[byte] ord[byte] [(Text 1..1)] 0..255
ord[codepoint] ord[codepoint] [(Text 1..1)] 0..1114111
ord ord[Ascii] [(Ascii 1..1)] 0..127
char[byte] char[byte] [0..255] (Text 1..1)
char[codepoint] char[codepoint] [0..1114111] (Text 1..1)
char char[Ascii] [0..127] (Ascii 1..1)
text_to_list[byte] text_to_list[byte] [Text] (List (Text 1..1))
text_to_list[codepoint] text_to_list[codepoint] [Text] (List (Text 1..1))
text_to_list text_to_list[Ascii] [Ascii] (List (Ascii 1..1))
sorted sorted[Int]
sorted[Ascii]
[(List Int)]
[(List Ascii)]
(List Int)
(List Ascii)
reversed[byte] reversed[byte] [Text] Text
reversed[codepoint] reversed[codepoint] [Text] Text
reversed reversed[Ascii]
reversed[List]
[Ascii]
[(List T1)]
Ascii
(List T1)
find[codepoint] find[codepoint] [Text, (Text 1..oo)] -1..oo
find[byte] find[byte] [Text, (Text 1..oo)] -1..oo
find find[Ascii]
find[List]
[Ascii, Ascii]
[(List T1), T1]
-1..oo
-1..2147483647
contains contains[Array]
contains[List]
contains[Table]
contains[Set]
contains[Text]
[(Array T1 T2), T1]
[(List T1), T1]
[(Table T1 T2), T1]
[(Set T1), T1]
[Text, Text]
Bool
Bool
Bool
Bool
Bool
# size[List]
size[Set]
size[Table]
size[Ascii]
[(List T1)]
[(Set T1)]
[(Table T1 T2)]
[Ascii]
0..2147483647
0..2147483647
0..2147483647
0..oo
size[codepoint] size[codepoint] [Text] 0..oo
size[byte] size[byte] [Text] 0..2147483648
include include [(Set T1), T1] Void
repeat repeat [Text, 0..oo] Text
split split [Text, Text] (List Text)
split_whitespace split_whitespace [Text] (List Text)
join join [(List Text), Text = "";] Text
right_align right_align [Text, 0..oo] Text
replace replace [Text, (Text 1..oo), Text = "";] Text
starts_with starts_with [Text, Text] Bool
ends_with ends_with [Text, Text] Bool
int_to_bin_aligned int_to_bin_aligned [0..oo, 0..oo] Ascii
int_to_hex_aligned int_to_hex_aligned [0..oo, 0..oo] Ascii
int_to_Hex_aligned int_to_Hex_aligned [0..oo, 0..oo] Ascii
int_to_dec int_to_dec [Int] (Ascii 1..oo)
int_to_bin int_to_bin [0..oo] (Ascii 1..oo)
int_to_hex int_to_hex [0..oo] (Ascii 1..oo)
int_to_Hex int_to_Hex [0..oo] (Ascii 1..oo)
int_to_bool int_to_bool [0..1] Bool
dec_to_int dec_to_int [Ascii] Int
bool_to_int bool_to_int [Bool] 0..1
.. range_incl [Int = 0;, Int, 1..oo = 1;] (List Int)
..< range_excl [Int = 0;, Int, 1..oo = 1;] (List Int)