Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/src/parsing_startrules.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ use lrlex::DefaultLexeme;

### Lexer

In our lexer we'll need to add a directive to advise that the checker that we expect the missing tokens.
In our lexer we'll need to add a directive to advise the checker that we expect the missing tokens.

```
%expect-missing "START_A" "START_B"
Expand Down Expand Up @@ -93,8 +93,8 @@ fn main() {

Finally we'll need to:

1. Run our input text through the parser.
2. Prepend the selected start token.
1. Run our input text through the lexer generating a list of output tokens.
2. Prepend the selected start token to the output tokens generated in the previous step.
3. Run the parser with the combined tokens.

```rust
Expand Down