mirror of
https://github.com/ruuda/rcl.git
synced 2025-12-23 04:47:19 +00:00
I want to add an unpack operator, and to be able to type the type expectation, I need a collection supertype for List and Set. Maybe once I have this, I can actually type the union operator in a more elegant way as well and I no longer need unpack. But unpack seems nice anyway, and a Collection supertype seems nice as well.
99 lines
978 B
Text
99 lines
978 B
Text
# This file is generated by tools/generate_keywords.py.
|
|
|
|
# Operators
|
|
"*"
|
|
"+"
|
|
"-"
|
|
"/"
|
|
"=>"
|
|
"=="
|
|
">="
|
|
"<="
|
|
">"
|
|
"<"
|
|
|
|
# Collection literals.
|
|
"[]"
|
|
"{}"
|
|
|
|
# String literals and escape sequences.
|
|
"\"\"\""
|
|
"\\\""
|
|
"\\\\"
|
|
"\\u{1f574}"
|
|
"f\""
|
|
"f\"\"\""
|
|
|
|
# Some examples of numbers.
|
|
"0x1"
|
|
"0b1"
|
|
"0.1e1"
|
|
# The maximum value of an i64, to make the fuzzer more likely to hit overflows.
|
|
"0x7fffffffffffffff"
|
|
|
|
# Keywords.
|
|
"and"
|
|
"assert"
|
|
"else"
|
|
"false"
|
|
"for"
|
|
"if"
|
|
"import"
|
|
"in"
|
|
"let"
|
|
"not"
|
|
"null"
|
|
"or"
|
|
"trace"
|
|
"true"
|
|
|
|
# Builtins methods.
|
|
"all"
|
|
"any"
|
|
"chars"
|
|
"contains"
|
|
"ends_with"
|
|
"enumerate"
|
|
"except"
|
|
"filter"
|
|
"flat_map"
|
|
"fold"
|
|
"get"
|
|
"group_by"
|
|
"join"
|
|
"key_by"
|
|
"keys"
|
|
"len"
|
|
"map"
|
|
"parse_int"
|
|
"remove_prefix"
|
|
"remove_suffix"
|
|
"replace"
|
|
"reverse"
|
|
"round"
|
|
"sort"
|
|
"sort_by"
|
|
"split"
|
|
"split_lines"
|
|
"starts_with"
|
|
"sum"
|
|
"to_lowercase"
|
|
"to_uppercase"
|
|
"values"
|
|
"empty_set"
|
|
"range"
|
|
"read_file_utf8"
|
|
"std"
|
|
|
|
# Builtin types.
|
|
"Any"
|
|
"Bool"
|
|
"Collection"
|
|
"Dict"
|
|
"List"
|
|
"Null"
|
|
"Number"
|
|
"Set"
|
|
"String"
|
|
"Union"
|
|
"Void"
|