Files
pplus-web/mojo/corpus/tokens/tokens.json
T
2026-10-05 03:03:38 +00:00

786 lines
13 KiB
JSON

{
"decorators": [
"align",
"always_inline",
"copy_capture",
"deprecated",
"doc_hidden",
"export",
"fieldwise_init",
"implicit",
"no_inline",
"parameter",
"staticmethod"
],
"effects": [
"raises",
"capturing",
"abi",
"thin",
"where",
"escaping"
],
"keywords": [
{
"internal": false,
"note": "",
"word": "_"
},
{
"internal": false,
"note": "",
"word": "and"
},
{
"internal": false,
"note": "",
"word": "as"
},
{
"internal": false,
"note": "",
"word": "assert"
},
{
"internal": false,
"note": "",
"word": "async"
},
{
"internal": false,
"note": "",
"word": "await"
},
{
"internal": false,
"note": "",
"word": "break"
},
{
"internal": false,
"note": "",
"word": "case"
},
{
"internal": false,
"note": "",
"word": "class"
},
{
"internal": false,
"note": "",
"word": "comptime"
},
{
"internal": false,
"note": "",
"word": "continue"
},
{
"internal": false,
"note": "",
"word": "def"
},
{
"internal": false,
"note": "",
"word": "del"
},
{
"internal": false,
"note": "",
"word": "elif"
},
{
"internal": false,
"note": "",
"word": "else"
},
{
"internal": false,
"note": "",
"word": "except"
},
{
"internal": false,
"note": "Mojo extension.",
"removed": true,
"replacement": "def",
"word": "fn"
},
{
"internal": false,
"note": "",
"word": "False"
},
{
"internal": false,
"note": "",
"word": "finally"
},
{
"internal": false,
"note": "",
"word": "for"
},
{
"internal": false,
"note": "",
"word": "from"
},
{
"internal": false,
"note": "",
"word": "global"
},
{
"internal": false,
"note": "",
"word": "if"
},
{
"internal": false,
"note": "",
"word": "import"
},
{
"internal": false,
"note": "",
"word": "in"
},
{
"internal": false,
"note": "",
"word": "is"
},
{
"internal": false,
"note": "",
"word": "lambda"
},
{
"internal": false,
"note": "",
"word": "match"
},
{
"internal": false,
"note": "",
"word": "None"
},
{
"internal": false,
"note": "",
"word": "nonlocal"
},
{
"internal": false,
"note": "",
"word": "not"
},
{
"internal": false,
"note": "",
"word": "or"
},
{
"internal": false,
"note": "",
"word": "pass"
},
{
"internal": false,
"note": "",
"word": "raise"
},
{
"internal": false,
"note": "Mojo extension.",
"word": "ref"
},
{
"internal": false,
"note": "",
"word": "return"
},
{
"internal": false,
"note": "Mojo extension.",
"word": "Self"
},
{
"internal": false,
"note": "Mojo extension.",
"word": "struct"
},
{
"internal": false,
"note": "Mojo extension.",
"word": "trait"
},
{
"internal": false,
"note": "",
"word": "True"
},
{
"internal": false,
"note": "",
"word": "try"
},
{
"internal": false,
"note": "Mojo extension.",
"word": "var"
},
{
"internal": false,
"note": "",
"word": "while"
},
{
"internal": false,
"note": "",
"word": "with"
},
{
"internal": false,
"note": "",
"word": "yield"
},
{
"internal": true,
"note": "Mojo extension extension.",
"word": "__extension"
},
{
"internal": true,
"note": "Mojo extension: generator type literal.",
"word": "__generator_type"
},
{
"internal": true,
"note": "",
"word": "__get_address_as_uninit_lvalue"
},
{
"internal": true,
"note": "",
"word": "__get_mvalue_as_litref"
},
{
"internal": true,
"note": "",
"word": "__get_litref_as_mvalue"
},
{
"internal": true,
"note": "",
"word": "__get_address_as_owned_value"
},
{
"internal": true,
"note": "",
"word": "__mlir_region"
},
{
"internal": false,
"note": "",
"word": "origin_of"
},
{
"internal": false,
"note": "",
"word": "type_of"
},
{
"internal": false,
"note": "",
"word": "conforms_to"
},
{
"internal": true,
"note": "",
"word": "__functions_in_module"
},
{
"internal": true,
"note": "",
"word": "__get_current_function_name"
},
{
"internal": true,
"note": "",
"word": "__struct_field_ref"
},
{
"internal": true,
"note": "",
"word": "__is_run_in_comptime_interpreter"
},
{
"internal": true,
"note": "Experimental match statement (pattern matching).",
"word": "__match"
},
{
"internal": true,
"note": "Crashes the compiler. Not shipped to users.",
"word": "__mojo_crash"
}
],
"literals": [
{
"example": "42, 0x42, 0o42, 0b101010",
"name": "integer"
},
{
"example": "1.0",
"name": "float_num"
},
{
"example": "\"Hello\"",
"name": "string"
},
{
"example": "t\"Hello {world}!\"",
"name": "t_string"
}
],
"prelude": [
"Absable",
"AddressSpace",
"AnyOrigin",
"AnyType",
"Array",
"BFloat16",
"Bool",
"Boolable",
"Byte",
"Codepoint",
"Comparable",
"Copyable",
"DType",
"Defaultable",
"Deinitable",
"Dict",
"Equatable",
"Error",
"FileDescriptor",
"FileHandle",
"Float16",
"Float32",
"Float4_e2m1fn",
"Float64",
"Float8_e4m3fn",
"Float8_e4m3fnuz",
"Float8_e5m2",
"Float8_e5m2fnuz",
"Float8_e8m0fnu",
"FloatLiteral",
"Floatable",
"FloatableRaising",
"Hashable",
"Identifiable",
"ImmOpaquePointer",
"ImmOrigin",
"ImmPointer",
"ImmSpan",
"ImmStaticOrigin",
"ImmStringSlice",
"ImmStringSpan",
"ImmUnsafeAnyOrigin",
"ImmUntrackedOrigin",
"ImmutAnyOrigin",
"ImplicitlyCopyable",
"Indexer",
"InlineLevel",
"Int",
"Int128",
"Int16",
"Int256",
"Int32",
"Int64",
"Int8",
"IntLiteral",
"Intable",
"IntableRaising",
"Iterable",
"IterableOwned",
"Iterator",
"KeyElement",
"List",
"Movable",
"MutAnyOrigin",
"MutOpaquePointer",
"MutOrigin",
"MutPointer",
"MutSpan",
"MutStringSlice",
"MutStringSpan",
"MutUnsafeAnyOrigin",
"MutUntrackedOrigin",
"Never",
"NoneType",
"OpaquePointer",
"Optional",
"OptionalPointer",
"Origin",
"OriginSet",
"ParameterList",
"Pointer",
"Powable",
"RegisterPassable",
"ReversibleRange",
"Roundable",
"SIMD",
"SIMDLength",
"Scalar",
"Sized",
"SizedRaising",
"Slice",
"Some",
"SomeTypeList",
"Span",
"StaticString",
"StopIteration",
"String",
"StringLiteral",
"StringSlice",
"StringSpan",
"TrivialRegisterPassable",
"Tuple",
"TypeList",
"UInt",
"UInt128",
"UInt16",
"UInt256",
"UInt32",
"UInt64",
"UInt8",
"UnsafeAnyOrigin",
"UnsafePointer",
"UntrackedOrigin",
"VariadicList",
"VariadicPack",
"Writable",
"Writer",
"abs",
"all",
"alloc",
"any",
"ascii",
"atof",
"atol",
"bin",
"breakpoint",
"chr",
"debug_assert",
"deinit",
"divmod",
"doc_hidden",
"enumerate",
"hash",
"hex",
"index",
"input",
"iter",
"len",
"map",
"materialize",
"max",
"min",
"next",
"oct",
"open",
"ord",
"partition",
"pow",
"print",
"range",
"rebind",
"rebind_var",
"reflect",
"repr",
"reversed",
"round",
"slice",
"sort",
"swap",
"zip"
],
"provenance": {
"decorators": {
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
"path": "docs/site/reference/decorators/*.mdx",
"repo": "modular/modular",
"source": "modular",
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
},
"prelude": {
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
"path": "stdlib/std/prelude/__init__.mojo",
"repo": "modular/modular",
"source": "modular",
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
},
"softKeywords": {
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
"path": "lib/MojoParser/*.cpp",
"repo": "modular/modular",
"source": "modular",
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
},
"tokenKinds": {
"commit": "c6fa49f712fe15c99d0461ad2baaf2a15cbc58ce",
"license": "Apache-2.0 WITH LLVM-exception (per file headers; confirm the docs carry the same licence)",
"path": "include/Mojo/MojoParser/TokenKinds.def",
"repo": "modular/modular",
"source": "modular",
"zipSha256": "5220972c0e4d2a447170592f329361b3e9923f3a30162135d22717913a09b2d6"
}
},
"punctuation": [
{
"name": "percent",
"spelling": "%"
},
{
"name": "amp",
"spelling": "&"
},
{
"name": "l_paren",
"spelling": "("
},
{
"name": "r_paren",
"spelling": ")"
},
{
"name": "star",
"spelling": "*"
},
{
"name": "plus",
"spelling": "+"
},
{
"name": "comma",
"spelling": ","
},
{
"name": "minus",
"spelling": "-"
},
{
"name": "dot",
"spelling": "."
},
{
"name": "slash",
"spelling": "/"
},
{
"name": "colon",
"spelling": ":"
},
{
"name": "semi",
"spelling": ";"
},
{
"name": "less",
"spelling": "<"
},
{
"name": "equal",
"spelling": "="
},
{
"name": "greater",
"spelling": ">"
},
{
"name": "at",
"spelling": "@"
},
{
"name": "l_square",
"spelling": "["
},
{
"name": "r_square",
"spelling": "]"
},
{
"name": "caret",
"spelling": "^"
},
{
"name": "l_brace",
"spelling": "{"
},
{
"name": "pipe",
"spelling": "|"
},
{
"name": "r_brace",
"spelling": "}"
},
{
"name": "tilde",
"spelling": "~"
},
{
"name": "underscore",
"spelling": "_"
},
{
"name": "exclaim_equal",
"spelling": "!="
},
{
"name": "percent_equal",
"spelling": "%="
},
{
"name": "amp_equal",
"spelling": "&="
},
{
"name": "star_star",
"spelling": "**"
},
{
"name": "star_equal",
"spelling": "*="
},
{
"name": "plus_equal",
"spelling": "+="
},
{
"name": "minus_equal",
"spelling": "-="
},
{
"name": "minus_greater",
"spelling": "->"
},
{
"name": "slash_slash",
"spelling": "//"
},
{
"name": "slash_equal",
"spelling": "/="
},
{
"name": "colon_equal",
"spelling": ":="
},
{
"name": "less_less",
"spelling": "<<"
},
{
"name": "less_equal",
"spelling": "<="
},
{
"name": "less_greater",
"spelling": "<>"
},
{
"name": "equal_equal",
"spelling": "=="
},
{
"name": "greater_equal",
"spelling": ">="
},
{
"name": "right_right",
"spelling": ">>"
},
{
"name": "at_equal",
"spelling": "@="
},
{
"name": "caret_equal",
"spelling": "^="
},
{
"name": "pipe_equal",
"spelling": "|="
},
{
"name": "star_star_equal",
"spelling": "**="
},
{
"name": "dot_dot_dot",
"spelling": "..."
},
{
"name": "slash_slash_equal",
"spelling": "//="
},
{
"name": "less_less_equal",
"spelling": "<<="
},
{
"name": "right_right_equal",
"spelling": ">>="
}
],
"softKeywords": [
{
"seenIn": [
"Signatures.cpp"
],
"word": "deinit"
},
{
"seenIn": [
"Signatures.cpp"
],
"word": "imm"
},
{
"seenIn": [
"Signatures.cpp"
],
"word": "mut"
},
{
"seenIn": [
"Signatures.cpp"
],
"word": "out"
},
{
"removed": true,
"replacement": "imm",
"seenIn": [
"Signatures.cpp"
],
"word": "read"
},
{
"seenIn": [
"DeclResolution.cpp",
"Signatures.cpp"
],
"word": "where"
}
]
}