Skip to content

Commit

Permalink
build it with a newer version of packages
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-l committed Feb 12, 2020
1 parent 7fee229 commit eba8a2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion c-lexer.scrbl
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ Putting it all together, we get the final module file:
Our lexer can be used in the following manner
(though it generally isn't used on its own - we'll add the parser next):

@(define ev (make-code-eval #:lang "racket" #:allow-for-require `(,(string->path "c-lexer.scrbl"))))
@(define ev (make-code-eval #:lang "racket"))
@(ev '(require "c-lexer.scrbl"))

@code-examples[#:lang "racket" #:context #'here #:eval ev]{
Expand Down
2 changes: 1 addition & 1 deletion c-parser.scrbl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ First we'll include the necessary libraries

Then, we'll write the @tt{numbers} rule.

@(define ev (make-code-eval #:lang "racket" #:allow-for-require `(,(string->path "c-lexer.scrbl"))))
@(define ev (make-code-eval #:lang "racket"))
@(ev '(require br-parser-tools/yacc))
@(ev '(require br-parser-tools/lex))
@(ev '(require "c-lexer.scrbl"))
Expand Down

0 comments on commit eba8a2b

Please sign in to comment.