static GDEParser() { lexer = new GDELexer(); lexer.AddDefinition(new GDETokenDefinition(STRING_TYPE, new Regex(STRING_REGEX))); lexer.AddDefinition(new GDETokenDefinition(NUMBER_TYPE, new Regex(NUMBER_REGEX))); lexer.AddDefinition(new GDETokenDefinition(LEFT_BRACKET_TYPE, new Regex(LEFT_BRACKET_REGEX))); lexer.AddDefinition(new GDETokenDefinition(RIGHT_BRACKET_TYPE, new Regex(RIGHT_BRACKET_REGEX))); lexer.AddDefinition(new GDETokenDefinition(LEFT_PAREN_TYPE, new Regex(LEFT_PAREN_REGEX))); lexer.AddDefinition(new GDETokenDefinition(RIGHT_PAREN_TYPE, new Regex(RIGHT_PAREN_REGEX))); lexer.AddDefinition(new GDETokenDefinition(COMMA_TYPE, new Regex(COMMA_REGEX), true)); lexer.AddDefinition(new GDETokenDefinition(WHITE_SPACE_TYPE, new Regex(WHITE_SPACE_REGEX), true)); }