Skip to content

Commit 016b47b

Browse files
committed
Merge pull request #4 from bmastenbrook/lang-reader
Make #lang rosette and #lang rosette/safe work
2 parents 035b949 + 165c3dc commit 016b47b

File tree

8 files changed

+15
-11
lines changed

8 files changed

+15
-11
lines changed

doc/guide/scribble/datatypes/test.rkt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#lang s-exp rosette/safe
1+
#lang rosette/safe
22

33

44

@@ -33,4 +33,4 @@
3333
(label (if b (suit 'club) 3))
3434

3535
(define env (solve (assert (suit<? s (suit 'diamond)))))
36-
(evaluate s env)
36+
(evaluate s env)

doc/guide/scribble/essentials/poly.rkt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#lang s-exp rosette/safe
1+
#lang rosette/safe
22

33
;(configure [bitwidth 8])
44

@@ -40,4 +40,4 @@
4040
(assert (< (abs y) 10))
4141
(assert (not (= (poly x) 0)))
4242
(assert (= (poly x) (poly y))))))
43-
env
43+
env

doc/guide/scribble/essentials/queries.rkt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#lang s-exp rosette/safe
1+
#lang rosette/safe
22

33
(define (poly x)
44
(+ (* x x x x) (* 6 x x x) (* 11 x x) (* 6 x)))
@@ -30,4 +30,4 @@
3030
#:guarantee (same-as-poly factored-sketch n))))
3131

3232
(print-forms sol)
33-
33+

doc/guide/scribble/libs/rosette-lib-test.rkt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#lang s-exp rosette
1+
#lang rosette
22

33
(require rosette/lib/meta/meta)
44

@@ -25,4 +25,4 @@
2525
(synthesize #:forall (list i)
2626
#:assume (assert (>= i 0))
2727
#:guarantee (assert (= (div2mul4 i) (* 4 (quotient i 2))))))
28-
(print-forms m2)
28+
(print-forms m2)

doc/guide/scribble/reflection/test.rkt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#lang s-exp rosette
1+
#lang rosette
22

33
(define-symbolic b boolean?)
44
(define v (vector 1))

doc/guide/scribble/welcome/welcome.scrbl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ The Rosette system ships with two dialects of the Rosette language:
6666

6767
To use the safe dialect, start your programs with the following line:
6868

69-
@racketmod[s-exp rosette/safe]
69+
@racketmod[rosette/safe]
7070

7171
To use the unsafe dialect, type this line instead:
7272

73-
@racketmod[s-exp rosette]
73+
@racketmod[rosette]
7474

7575
We strongly recommend that you start with the safe dialect, which includes a core subset of Racket. The unsafe dialect includes all of Racket, but unless you understand and observe the restrictions on using non-core features, your seemingly correct programs may crash or produce unexpected results.
7676

rosette/lang/reader.rkt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#lang s-exp syntax/module-reader
2+
rosette

rosette/safe/lang/reader.rkt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#lang s-exp syntax/module-reader
2+
rosette/safe

0 commit comments

Comments
 (0)