public TokenKindTests() { lower = new Pattern("Lowercase", @"[a-z]+"); upper = new Pattern("Uppercase", @"[A-Z]+"); abcDEF = new Text("abcDEF"); }
private static Action<Token> Token(TokenKind expectedKind, string expectedLiteral) { return t => t.ShouldBe(expectedKind, expectedLiteral); }
public LexerTests() { lower = new Pattern("Lowercase", @"[a-z]+"); upper = new Pattern("Uppercase", @"[A-Z]+"); space = new Pattern("Space", @"\s", skippable: true); }
public TokenStreamTests() { lower = new Pattern("Lowercase", @"[a-z]+"); upper = new Pattern("Uppercase", @"[A-Z]+"); }