Skip to content
Browse files

Merge pull request #1 from ChrisMissal/master

Fix misspelled identifier and unmatched parenthesis in README.md.
  • Loading branch information...
2 parents 53fb91e + c181066 commit afb9cdcff05ebd6fcb4bac7a2e72aec4d8cce4fc @plioi committed Jun 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
4 README.md
@@ -20,9 +20,9 @@ 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);
+ new Pattern("whitespace", @"\s+", skippable: true));
Token[] tokens = lexer.ToArray();

0 comments on commit afb9cdc

Please sign in to comment.
Something went wrong with that request. Please try again.