Skip to content

Commit 1970c6d

Browse files
committed
Update docs
1 parent 9ecd394 commit 1970c6d

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ lexer can be found in `src/calc.l`:
4646
and where the definitions for the parser can be found in `src/calc.y`:
4747

4848
```rust
49-
%grmtools{yacckind Grmtools}
49+
%grmtools{yacckind: Grmtools}
5050
%start Expr
5151
%avoid_insert "INT"
5252
%%

doc/src/errorrecovery.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ make use of error recovery.
4949
A simple calculator grammar looks as follows:
5050

5151
```rust,noplaypen
52-
%grmtools{yacckind Grmtools}
52+
%grmtools{yacckind: Grmtools}
5353
%start Expr
5454
%%
5555
Expr -> u64:
@@ -182,7 +182,7 @@ We thus change the grammar so that inserted integers prevent evaluation from
182182
occurring:
183183

184184
```rust,noplaypen
185-
%grmtools{yacckind Grmtools}
185+
%grmtools{yacckind: Grmtools}
186186
%start Expr
187187
%%
188188
Expr -> Result<u64, ()>:

doc/src/lexextensions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ other flags should specify their value immediately after the flag name.
1515

1616
```
1717
%grmtools {
18-
allow_wholeline_comments
19-
!octal
20-
size_limit 1024
18+
allow_wholeline_comments,
19+
!octal,
20+
size_limit: 1024,
2121
}
2222
%%
2323
. "rule"
@@ -56,7 +56,7 @@ The following flags can change the behavior to match posix lex more closely.
5656

5757
```
5858
%grmtools {
59-
!dot_matches_new_line
59+
!dot_matches_new_line,
6060
posix_escapes
6161
}
6262
%%

doc/src/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ is lexed, but no lexemes are created from it.
101101

102102
Our initial version of calc.y looks as follows:
103103
```rust,noplaypen
104-
%grmtools{yacckind Grmtools}
104+
%grmtools{yacckind: Grmtools}
105105
%start Expr
106106
%%
107107
Expr -> Result<u64, ()>:

doc/src/yaccextensions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ But a default can be set or forced by using a `YaccKindResolver`.
1111
## Example
1212

1313
```
14-
%grmtools{yacckind Grmtools}
14+
%grmtools{yacckind: Grmtools}
1515
%%
1616
Start: ;
1717
```

0 commit comments

Comments
 (0)