Skip to content

Commit afa0eb7

Browse files
committed
Make comments instructions again.
1 parent 04c9016 commit afa0eb7

1 file changed

Lines changed: 5 additions & 35 deletions

File tree

langs/a86/ast.rkt

Lines changed: 5 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@
219219
(symbol? x)
220220
(integer? x)))
221221

222-
(provide offset? register? instruction? label? 64-bit-integer? 32-bit-integer?)
222+
(provide offset? register? label? 64-bit-integer? 32-bit-integer?)
223223

224224
(define offset? Offset?)
225225

@@ -240,40 +240,10 @@
240240
(nasm-label? x)
241241
(not (register? x))))
242242

243-
#;
244-
(define (instruction? x)
245-
(or (Text? x)
246-
(Data? x)
247-
(Global? x)
248-
(Label? x)
249-
(Extern? x)
250-
(Call? x)
251-
(Ret? x)
252-
(Mov? x)
253-
(Add? x)
254-
(Sub? x)
255-
(Cmp? x)
256-
(Jmp? x)
257-
(Je? x)
258-
(Jne? x)
259-
(Jl? x)
260-
(Jle? x)
261-
(Jg? x)
262-
(Jge? x)
263-
(And? x)
264-
(Or? x)
265-
(Xor? x)
266-
(Sal? x)
267-
(Sar? x)
268-
(Push? x)
269-
(Pop? x)
270-
(Lea? x)
271-
(Div? x)
272-
(Comment? x)
273-
(Equ? x)
274-
(Dd? x)
275-
(Dq? x)
276-
))
243+
(provide (rename-out [a86:instruction? instruction?]))
244+
(define (a86:instruction? x)
245+
(or (instruction? x)
246+
(Comment? x)))
277247

278248
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
279249
;; Instruction sequencing and program error checking

0 commit comments

Comments
 (0)