Skip to content

Commit 7ee7595

Browse files
authored
doc: fix typos (leanprover#2467)
1 parent 0b64c1e commit 7ee7595

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Lean/Parser/Basic.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ The Lean parser was developed with the following primary goals in mind:
2323
Given these constraints, we decided to implement a combinatoric, non-monadic, lexer-less, memoizing recursive-descent
2424
parser. Using combinators instead of some more formal and introspectible grammar representation ensures ultimate
2525
flexibility as well as efficient extensibility: there is (almost) no pre-processing necessary when extending the grammar
26-
with a new parser. However, because the all results the combinators produce are of the homogeneous `Syntax` type, the
26+
with a new parser. However, because all the results the combinators produce are of the homogeneous `Syntax` type, the
2727
basic parser type is not actually a monad but a monomorphic linear function `ParserState → ParserState`, avoiding
2828
constructing and deconstructing countless monadic return values. Instead of explicitly returning syntax objects, parsers
2929
push (zero or more of) them onto a syntax stack inside the linear state. Chaining parsers via `>>` accumulates their
@@ -1346,7 +1346,7 @@ inductive LeadingIdentBehavior where
13461346
| default
13471347
/-- `LeadingIdentBehavior.symbol`: if the leading token is
13481348
an identifier `<foo>`, and there are parsers `P` associated with
1349-
the toek `<foo>`, then it executes `P`. Otherwise, it executes
1349+
the token `<foo>`, then it executes `P`. Otherwise, it executes
13501350
only the parsers associated with the auxiliary token "ident". -/
13511351
| symbol
13521352
/-- `LeadingIdentBehavior.both`: if the leading token

0 commit comments

Comments
 (0)