2017-12-28 16:21:54 -06:00
|
|
|
Grammar(
|
2018-01-01 09:58:46 -06:00
|
|
|
keywords: [
|
|
|
|
"use",
|
|
|
|
"fn",
|
|
|
|
"struct",
|
|
|
|
"enum",
|
|
|
|
"trait",
|
|
|
|
"impl",
|
2018-01-08 12:21:59 -06:00
|
|
|
"true",
|
|
|
|
"false",
|
2018-01-08 15:06:42 -06:00
|
|
|
"as",
|
|
|
|
"extern",
|
|
|
|
"crate",
|
2018-01-09 13:35:55 -06:00
|
|
|
"mod",
|
2018-01-12 13:05:46 -06:00
|
|
|
"pub",
|
|
|
|
"self",
|
|
|
|
"super",
|
2018-01-13 02:55:03 -06:00
|
|
|
"in",
|
2018-01-13 13:00:26 -06:00
|
|
|
"where",
|
2018-01-30 13:53:19 -06:00
|
|
|
"for",
|
|
|
|
"loop",
|
|
|
|
"while",
|
|
|
|
"if",
|
|
|
|
"match"
|
2018-01-01 09:58:46 -06:00
|
|
|
],
|
2017-12-31 14:27:36 -06:00
|
|
|
tokens: [
|
2017-12-29 15:48:47 -06:00
|
|
|
"ERROR",
|
2017-12-28 16:21:54 -06:00
|
|
|
"IDENT",
|
2017-12-29 15:48:47 -06:00
|
|
|
"UNDERSCORE",
|
2017-12-28 16:21:54 -06:00
|
|
|
"WHITESPACE",
|
2017-12-30 06:22:40 -06:00
|
|
|
"INT_NUMBER",
|
|
|
|
"FLOAT_NUMBER",
|
2017-12-30 07:30:37 -06:00
|
|
|
"SEMI",
|
|
|
|
"COMMA",
|
|
|
|
"DOT",
|
|
|
|
"DOTDOT",
|
|
|
|
"DOTDOTDOT",
|
|
|
|
"DOTDOTEQ",
|
|
|
|
"L_PAREN",
|
|
|
|
"R_PAREN",
|
|
|
|
"L_CURLY",
|
|
|
|
"R_CURLY",
|
|
|
|
"L_BRACK",
|
|
|
|
"R_BRACK",
|
2017-12-30 11:56:54 -06:00
|
|
|
"L_ANGLE",
|
|
|
|
"R_ANGLE",
|
2017-12-30 07:30:37 -06:00
|
|
|
"AT",
|
|
|
|
"POUND",
|
|
|
|
"TILDE",
|
|
|
|
"QUESTION",
|
|
|
|
"COLON",
|
|
|
|
"COLONCOLON",
|
|
|
|
"DOLLAR",
|
2017-12-30 09:25:37 -06:00
|
|
|
"EQ",
|
|
|
|
"EQEQ",
|
|
|
|
"FAT_ARROW",
|
|
|
|
"NEQ",
|
2018-01-07 10:50:54 -06:00
|
|
|
"EXCL",
|
2017-12-31 01:41:42 -06:00
|
|
|
"LIFETIME",
|
2017-12-31 05:02:55 -06:00
|
|
|
"CHAR",
|
|
|
|
"BYTE",
|
|
|
|
"STRING",
|
|
|
|
"RAW_STRING",
|
|
|
|
"BYTE_STRING",
|
|
|
|
"RAW_BYTE_STRING",
|
2017-12-31 06:29:09 -06:00
|
|
|
"PLUS",
|
|
|
|
"MINUS",
|
|
|
|
"STAR",
|
|
|
|
"SLASH",
|
|
|
|
"CARET",
|
|
|
|
"PERCENT",
|
|
|
|
"AMPERSAND",
|
|
|
|
"PIPE",
|
|
|
|
"THIN_ARROW",
|
2017-12-31 07:42:22 -06:00
|
|
|
"COMMENT",
|
|
|
|
"DOC_COMMENT",
|
|
|
|
"SHEBANG",
|
2017-12-31 14:27:36 -06:00
|
|
|
],
|
|
|
|
nodes: [
|
2018-01-01 09:58:46 -06:00
|
|
|
"FILE",
|
2018-01-06 08:16:00 -06:00
|
|
|
"STRUCT_ITEM",
|
2018-01-28 13:59:18 -06:00
|
|
|
"ENUM_ITEM",
|
|
|
|
"ENUM_VARIANT",
|
2018-01-13 13:00:26 -06:00
|
|
|
"NAMED_FIELD",
|
|
|
|
"POS_FIELD",
|
2018-01-07 07:01:30 -06:00
|
|
|
"FN_ITEM",
|
2018-01-08 15:06:42 -06:00
|
|
|
"EXTERN_CRATE_ITEM",
|
2018-01-07 10:50:54 -06:00
|
|
|
"ATTR",
|
2018-01-07 12:40:18 -06:00
|
|
|
"META_ITEM",
|
2018-01-09 13:35:55 -06:00
|
|
|
"MOD_ITEM",
|
2018-01-09 14:32:18 -06:00
|
|
|
"USE_ITEM",
|
2018-01-13 04:42:19 -06:00
|
|
|
"USE_TREE",
|
2018-01-09 14:32:18 -06:00
|
|
|
"PATH",
|
|
|
|
"PATH_SEGMENT",
|
2018-01-08 12:40:00 -06:00
|
|
|
"LITERAL",
|
2018-01-08 15:06:42 -06:00
|
|
|
"ALIAS",
|
2018-01-12 13:05:46 -06:00
|
|
|
"VISIBILITY",
|
2018-01-28 09:53:53 -06:00
|
|
|
"TYPE_PARAM_LIST",
|
|
|
|
"LIFETIME_PARAM",
|
|
|
|
"TYPE_PARAM",
|
2017-12-28 16:21:54 -06:00
|
|
|
]
|
2018-01-28 09:53:53 -06:00
|
|
|
)
|