Skip to content

Commit cb593e8

Browse files
committed
Add booleans to lex and grammar in assign03 write-up.
1 parent 0e33fef commit cb593e8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

www/assignments/3.scrbl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ language based on the following grammar:
142142

143143
@verbatim{
144144
<expr> ::= integer
145+
| boolean
145146
| ( <compound> )
146147
| [ <compound> ]
147148

@@ -170,6 +171,7 @@ which are defined as:
170171
(racketblock
171172
;; type Token =
172173
;; | Integer
174+
;; | Boolean
173175
;; | 'add1
174176
;; | 'sub1
175177
;; | 'zero?

0 commit comments

Comments
 (0)