2017-12-28 22:21:54 +00:00
|
|
|
Grammar(
|
2018-01-01 15:58:46 +00:00
|
|
|
keywords: [
|
|
|
|
"use",
|
|
|
|
"fn",
|
|
|
|
"struct",
|
|
|
|
"enum",
|
|
|
|
"trait",
|
|
|
|
"impl",
|
|
|
|
],
|
2017-12-31 20:27:36 +00:00
|
|
|
tokens: [
|
2017-12-29 21:48:47 +00:00
|
|
|
"ERROR",
|
2017-12-28 22:21:54 +00:00
|
|
|
"IDENT",
|
2017-12-29 21:48:47 +00:00
|
|
|
"UNDERSCORE",
|
2017-12-28 22:21:54 +00:00
|
|
|
"WHITESPACE",
|
2017-12-30 12:22:40 +00:00
|
|
|
"INT_NUMBER",
|
|
|
|
"FLOAT_NUMBER",
|
2017-12-30 13:30:37 +00:00
|
|
|
"SEMI",
|
|
|
|
"COMMA",
|
|
|
|
"DOT",
|
|
|
|
"DOTDOT",
|
|
|
|
"DOTDOTDOT",
|
|
|
|
"DOTDOTEQ",
|
|
|
|
"L_PAREN",
|
|
|
|
"R_PAREN",
|
|
|
|
"L_CURLY",
|
|
|
|
"R_CURLY",
|
|
|
|
"L_BRACK",
|
|
|
|
"R_BRACK",
|
2017-12-30 17:56:54 +00:00
|
|
|
"L_ANGLE",
|
|
|
|
"R_ANGLE",
|
2017-12-30 13:30:37 +00:00
|
|
|
"AT",
|
|
|
|
"POUND",
|
|
|
|
"TILDE",
|
|
|
|
"QUESTION",
|
|
|
|
"COLON",
|
|
|
|
"COLONCOLON",
|
|
|
|
"DOLLAR",
|
2017-12-30 15:25:37 +00:00
|
|
|
"EQ",
|
|
|
|
"EQEQ",
|
|
|
|
"FAT_ARROW",
|
|
|
|
"NEQ",
|
2018-01-07 16:50:54 +00:00
|
|
|
"EXCL",
|
2017-12-31 07:41:42 +00:00
|
|
|
"LIFETIME",
|
2017-12-31 11:02:55 +00:00
|
|
|
"CHAR",
|
|
|
|
"BYTE",
|
|
|
|
"STRING",
|
|
|
|
"RAW_STRING",
|
|
|
|
"BYTE_STRING",
|
|
|
|
"RAW_BYTE_STRING",
|
2017-12-31 12:29:09 +00:00
|
|
|
"PLUS",
|
|
|
|
"MINUS",
|
|
|
|
"STAR",
|
|
|
|
"SLASH",
|
|
|
|
"CARET",
|
|
|
|
"PERCENT",
|
|
|
|
"AMPERSAND",
|
|
|
|
"PIPE",
|
|
|
|
"THIN_ARROW",
|
2017-12-31 13:42:22 +00:00
|
|
|
"COMMENT",
|
|
|
|
"DOC_COMMENT",
|
|
|
|
"SHEBANG",
|
2017-12-31 20:27:36 +00:00
|
|
|
],
|
|
|
|
nodes: [
|
2018-01-01 15:58:46 +00:00
|
|
|
"FILE",
|
2018-01-06 14:16:00 +00:00
|
|
|
"STRUCT_ITEM",
|
|
|
|
"STRUCT_FIELD",
|
2018-01-07 13:01:30 +00:00
|
|
|
"FN_ITEM",
|
2018-01-07 16:50:54 +00:00
|
|
|
"ATTR",
|
2018-01-07 18:40:18 +00:00
|
|
|
"META_ITEM",
|
2017-12-28 22:21:54 +00:00
|
|
|
]
|
|
|
|
)
|