fixes to docs

pull/6/head
Matthew Butterick 7 years ago
parent b2614d45e2
commit 2467dfcf30

@ -3,8 +3,8 @@
racket/date
file/md5
(for-label racket
brag
brag/support
brag/examples/nested-word-list
(only-in br-parser-tools/lex lexer-src-pos)
(only-in syntax/parse syntax-parse ~literal)))
@ -888,7 +888,6 @@ Otherwise, @tt{brag} should be fairly tolerant and permit even ambiguous
grammars.
@subsection{Semantics}
@declare-exporting[brag/examples/nested-word-list]
A program written in @litchar{#lang brag} produces a module that provides a few
bindings. The most important of these is @racket[parse]:

@ -3,3 +3,15 @@
(module+ reader
(require "codegen/reader.rkt")
(provide (all-from-out "codegen/reader.rkt")))
;; this creates dummy identifiers
;; so cross-refs in `brag` docs will work
(module names racket/base
(provide (all-defined-out))
(define (parse) (void))
(define (parse-to-datum) (void))
(define (make-rule-parser) (void))
(define (all-token-types) (void)))
(require (for-label 'names))
(provide (for-label (all-from-out 'names)))
Loading…
Cancel
Save