Argh. Wrong code. Please ignore prior message. On Tue, Oct 13, 2020 at 12:57 PM David Storrs <david.sto...@gmail.com> wrote:
> > > On Tue, Oct 13, 2020 at 12:48 PM Ben Greenman <benjaminlgreen...@gmail.com> > wrote: > >> On 10/13/20, David Storrs <david.sto...@gmail.com> wrote: >> > @itemlist[ >> > @item{The size cage needed depends on the type of dog >> > @itemlist[ >> > @item{Pug: Small} >> > @item{Collie: Medium} >> > @item{Mastiff: Large}]}] >> > >> > I would like to produce something that looks like this: >> > >> > - The size cage needed depends on the type of dog >> > - Pug: Small >> > - Collie: Medium >> > - Mastiff: Large >> > >> > Is there a correct way to do this? >> >> What you have looks good to me in #lang scribble/manual >> >> > Here's the actual code: > > @defproc[(trie-add-item+data! [arg trie?][item (listof any/c)][#:combine > combine-method (or/c 'keep 'replace 'meld/current 'meld/new (-> trie-node? > trie-node? trie-node?)) 'meld/new]) trie?]{Adds one item to the trie where > the elements of the list are considered to be elements of the item. If an > item is a @racket[cons] pair where the @racket[cdr] is a > @racket[trie-node?] then the @racket[car] will be used as the element and > the @racket[cdr] will be the data attached to that node. The final node is > marked as terminal regardless of whether it already existed. > > If an element of the item already exists in the trie then that element > will be updated based on the combine method specified via the > @racket[#:combine] keyword. Specifically: > > @itemlist[ > @item{test} > ] > } > > Here's the error output: > > trie.scrbl:165:0: item: misuse of an identifier (not in `racket', etc.) > that is bound as a code-typesetting variable > in: (item "test") > location...: > trie.scrbl:165:0 > context...: > do-raise-syntax-error > apply-transformer-in-context > apply-transformer > dispatch-transformer > for-loop > [repeats 2 more times] > finish-bodys > lambda-clause-expander > for-loop > [repeats 1 more time] > finish-bodys > for-loop > finish-bodys > loop > for-loop > [repeats 3 more times] > > > It works fine if I remove the inner @itemlist. What should I do > differently? > > -- >> You received this message because you are subscribed to the Google Groups >> "Racket Users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to racket-users+unsubscr...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/racket-users/CAFUu9R4-4BO3Gi2PDxZ%3D2BbQCrJP4O%2BkAWT1f7DJJtFapFdYTA%40mail.gmail.com >> . >> > -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/racket-users/CAE8gKoeGQ3BA-qUbNhWJebPV4%2BaLf7_9xJkcFFvRK-dDx%3Duj0w%40mail.gmail.com.