Repository navigation
v4.1.0 - Keywords
Introducing new token pattern types: Keyword and KeywordChoice!
They do not matches if specific characters are following them:
builder.CreateToken("var_assign")
.Keyword("var")
.Identifier()
.Literal("=")
.Rule("expression");
// Ok!
var result = parser.Parse("var a = 123");
// Error!
var result = parser.Parse("vara = 123");See tutorials for more information.