Skip to content

Commit 8de901d

Browse files
committed
fix typo
kontan#1
1 parent f2a860b commit 8de901d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
**Parsect** is a parser combinator library for [TypeScript](http://www.typescriptlang.org/) or JavaScript. It provides a easy way to write a readable parser in only TypeScript/JavaScript without any other domain-specific languages like yacc/lex, ANTLR or PEG.js. Parsect can be used from not only TypeScript and JavaScript but also other [AltJS](http://altjs.org/)s.
66

7-
I got the idea for Parsect from [Parsec](http://www.haskell.org/haskellwiki/Parsec) parser combinator library in Haskell, however this is not a porting of Parsec. Unfortunately, this library doesn't have underlying Monad or Fanctor and it doesn't deal a string as a list of charactor. However, you can combine parsers in the same manner as Parsec with Parsect.
7+
I got the idea for Parsect from [Parsec](http://www.haskell.org/haskellwiki/Parsec) parser combinator library in Haskell, however this is not a porting of Parsec. Unfortunately, this library doesn't have underlying Monad or Fanctor and it doesn't deal a string as a list of character. However, you can combine parsers in the same manner as Parsec with Parsect.
88

99
* Parsec-like API
1010
* Statically typed: The API of Parsect is statically typed like Parsec with TypeScript. However, you can also use it from JavaScript as dynamically typed API.
@@ -28,7 +28,7 @@ Parsect has some functions that creates a parser. `string` function is one of th
2828
var reply: Parsect.Reply<string,void> = Parsect.parse(parser, state);
2929
console.log(reply.value); // prints "apple".
3030

31-
Note a difference from `string` in Parsec. If the parser recieve a unexpected input string like `"application"`, the parser would consume no charactors and fail. The both two words have first four letter `"appl"` but the parser don't throw a exception and parsing would continue to search other matchings.
31+
Note a difference from `string` in Parsec. If the parser recieve a unexpected input string like `"application"`, the parser would consume no characters and fail. The both two words have first four letter `"appl"` but the parser don't throw a exception and parsing would continue to search other matchings.
3232

3333
### `many` Parser Combinator
3434

@@ -309,7 +309,7 @@ Invoke parser with the state.
309309

310310

311311

312-
### Charactor Parsers
312+
### character Parsers
313313

314314
#### `oneOf(chars: string): Parser<string>`
315315

@@ -341,7 +341,7 @@ Invoke parser with the state.
341341

342342
#### `anyChar: Parser<string>`
343343

344-
#### `satisfy(condition: (charactor: string, code: number)=>boolean): Parser<string>`
344+
#### `satisfy(condition: (character: string, code: number)=>boolean): Parser<string>`
345345

346346
#### `charCode(charCode: number): Parser<string>`
347347

0 commit comments

Comments
 (0)