Skip to content

Commit

Permalink
fix another versioned reference
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelballantyne committed Sep 11, 2024
1 parent b7ddebf commit a979768
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion demos/mk-workshop-2024/04-mk-with-binding.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@


(begin-for-syntax
(require (only-in syntax-spec/private/ee-lib/main show-var-numbers))
(require (only-in syntax-spec-v2/private/ee-lib/main show-var-numbers))
(show-var-numbers #t))
4 changes: 2 additions & 2 deletions scribblings/reference/compiling.scrbl
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

@section{Compiling references to DSL bindings within Racket code}

@margin-note{@secref["compilation" #:doc '(lib "syntax-spec/scribblings/main.scrbl")] in the @secref["Basic_Tutorial__State_Machine_Language"
#:doc '(lib "syntax-spec/scribblings/main.scrbl")] introduces the use of reference compilers.}
@margin-note{@secref["compilation" #:doc '(lib "syntax-spec-v2/scribblings/main.scrbl")] in the @secref["Basic_Tutorial__State_Machine_Language"
#:doc '(lib "syntax-spec-v2/scribblings/main.scrbl")] introduces the use of reference compilers.}

By default, Racket code cannot reference names bound with DSL @tech{binding classes}. To allow such references, specify a @deftech{reference compiler} for each class of bindings that should be usable in Racket code. The reference compiler is a @tech/reference{syntax transformer} that will be applied to compile the syntax including each reference.

Expand Down
6 changes: 3 additions & 3 deletions scribblings/tutorial/stlc-tutorial.scrbl
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ Right now, these don't need to be macros. But when we add definitions, We will d
Now we can run some programs:

@examples[#:label #f
(require syntax-spec/tests/dsls/simply-typed-lambda-calculus)
(require syntax-spec-v2/tests/dsls/simply-typed-lambda-calculus)
(stlc/infer 1)
(stlc/expr 1)
(stlc/infer (lambda ([x : Number]) x))
Expand Down Expand Up @@ -328,7 +328,7 @@ This implementation is far from efficient. Instead of generating the syntax for
Let's run some example programs now:

@examples[#:label #f
(require syntax-spec/tests/dsls/simply-typed-lambda-calculus)
(require syntax-spec-v2/tests/dsls/simply-typed-lambda-calculus)
(stlc/expr
(let ([add (rkt + : (-> Number Number Number))])
(add 1 2)))
Expand Down Expand Up @@ -513,7 +513,7 @@ We also added support for multi-body @racket[let], @racket[lambda], and @racket[
Let's run it!

@examples[#:label #f
(require syntax-spec/tests/dsls/simply-typed-lambda-calculus)
(require syntax-spec-v2/tests/dsls/simply-typed-lambda-calculus)
(stlc
(begin
(define two : Number
Expand Down

0 comments on commit a979768

Please sign in to comment.