mirror of
https://github.com/ruuda/rcl.git
synced 2025-12-23 04:47:19 +00:00
I regularly add new methods, and it's becoming tedious to have to remember to update all the places that reference these, so let's generate them and automate the process. For now, I'm choosing the Pygments grammar as the source of truth, and the first target to generate is the fuzz dictionary.
98 lines
965 B
Text
98 lines
965 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"
|
|
"Dict"
|
|
"List"
|
|
"Null"
|
|
"Number"
|
|
"Set"
|
|
"String"
|
|
"Union"
|
|
"Void"
|