1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

pattern matching: implemented parser

This commit is contained in:
Karroffel
2016-09-30 21:40:31 +02:00
committed by karroffel
parent 20c7b65b7e
commit f8a7c46273
4 changed files with 252 additions and 1 deletions

View File

@@ -85,6 +85,7 @@ const char* GDTokenizer::token_names[TK_MAX]={
"continue",
"pass",
"return",
"match",
"func",
"class",
"extends",
@@ -888,6 +889,7 @@ void GDTokenizerText::_advance() {
{TK_CF_BREAK,"break"},
{TK_CF_CONTINUE,"continue"},
{TK_CF_RETURN,"return"},
{TK_CF_MATCH, "match"},
{TK_CF_PASS,"pass"},
{TK_SELF,"self"},
{TK_CONST_PI,"PI"},