Browse files

Corrected tiny typo in

  • Loading branch information...
1 parent 2253a86 commit be5f2b366deae4a452c08ddc7f1ad1d9f2e155e9 @ChrisMissal ChrisMissal committed Jun 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1
@@ -20,7 +20,7 @@ Strings being parsed are represented with a `Text` instance, which tracks the or
The lexer phase is implemented by anything that produces an `IEnumerable<Token>`. The default implementation, `Lexer`, builds the series of tokens when given a prioritized series of `TokenKind` token recognizers. The most common `TokenKind` implementation is `Pattern`, which recognizes tokens via regex patterns. `TokenKinds` can be skippable, if you want them to be recognized but discarded:
var text = new Text("1 2 3 a b c");
- var lexer = new Lexer(new Patter("letter", @"[a-z]"),
+ var lexer = new Lexer(new Pattern("letter", @"[a-z]"),
new Pattern("number", @"[0-9]+"),
new Pattern("whitespace", @"\s+", skippable: true);

0 comments on commit be5f2b3

Please sign in to comment.