Meta generated data working

This commit is contained in:
Krzosa Karol
2022-09-29 19:17:53 +02:00
parent 3601e83032
commit e46d936c38
6 changed files with 108 additions and 98 deletions

56
meta.py
View File

@@ -59,34 +59,34 @@ token_assign_expr = [
]
token_rest = [
["TK_OpenParen", "("],
["TK_CloseParen", ")"],
["TK_OpenBrace", "{"],
["TK_CloseBrace", "}"],
["TK_OpenBracket", "["],
["TK_CloseBracket", "]"],
["TK_Comma", ","],
["TK_Pound", "#"],
["TK_Question", "?"],
["TK_ThreeDots", "..."],
["TK_Semicolon", ";"],
["TK_Dot", "."],
["TK_TwoDots", ".."],
["TK_NewLine", "[NewLine]"],
["TK_Colon", ":"],
["TK_DoubleColon", "::"],
["TK_At", "@"],
["TK_Arrow", "->"],
["TK_ExprSizeof", "[SizeOf]"],
["TK_DocComment", "[///]"],
["TK_Comment", "//"],
["TK_Identifier", "[Ident]"],
["TK_UnicodeLit", "[Unicode]"],
["TK_StringLit", "[String]"],
["TK_Error", "[Error]"],
["TK_Float", "[Float]"],
["TK_Integer", "[Int]"],
["TK_Keyword", "[Keyword]"],
["OpenParen", "("],
["CloseParen", ")"],
["OpenBrace", "{"],
["CloseBrace", "}"],
["OpenBracket", "["],
["CloseBracket", "]"],
["Comma", ","],
["Pound", "#"],
["Question", "?"],
["ThreeDots", "..."],
["Semicolon", ";"],
["Dot", "."],
["TwoDots", ".."],
["NewLine", "[NewLine]"],
["Colon", ":"],
["DoubleColon", "::"],
["At", "@"],
["Arrow", "->"],
["ExprSizeof", "[SizeOf]"],
["DocComment", "[///]"],
["Comment", "//"],
["Identifier", "[Ident]"],
["UnicodeLit", "[Unicode]"],
["StringLit", "[String]"],
["Error", "[Error]"],
["Float", "[Float]"],
["Integer", "[Int]"],
["Keyword", "[Keyword]"],
]
token_kinds = token_simple_expr + token_assign_expr + token_rest