Skip to content

Commit 25b5bf8

Browse files
jasonhemannrfindler
authored andcommitted
Updating docs to match extension of tutorial lang
It looks like at some point the tutorial's language was extended; I update the beginning section of the documentation to match.
1 parent 4c2dc96 commit 25b5bf8

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

redex-doc/redex/scribblings/tut.scrbl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,16 @@ Next, enter the following definition.
145145
The @racket[define-language] form gives a name to
146146
a grammar. In this case, @racket[L] is the Racket-level
147147
name referring to the grammar containing the non-terminal
148-
@racket[e], with six productions (application, abstraction,
149-
variables, @racket[amb] expressions, numbers, and addition
148+
@racket[e], with eight productions (application, abstraction,
149+
variables, @racket[amb] expressions, numbers, addition
150+
expressions, if-zero expressions, and fixpoint
150151
expressions), the non-terminal @racket[t] with two productions,
151152
and the non-terminal @racket[x] that uses the pattern
152153
keyword @racket[variable-not-otherwise-mentioned]. This
153154
special pattern matches all symbols except those used
154155
as literals in the grammar (in this case: @racket[λ],
155-
@racket[amb], @racket[+], and @racket[→]).
156+
@racket[amb], @racket[+], @racket[if0], @racket[fix],
157+
and @racket[→]).
156158

157159
Once we have defined the grammar, we can ask Redex if
158160
specific terms match the grammar. This expression checks

0 commit comments

Comments
 (0)