Okay, apparently it doesn't like having an itemlist inside of a {} block at
all, but as long as it's outside of one then nested lists are fine. Ugh.
I know Scribble is super good because it makes beautiful documentation and
does cross-linking and examples and all that, but it's also a complete pain
in the ass unless you're expert with it.
Sorry for wasting everyone's time.
On Tue, Oct 13, 2020 at 1:02 PM David Storrs <[email protected]> wrote:
> Argh. Wrong code. Please ignore prior message.
>
> On Tue, Oct 13, 2020 at 12:57 PM David Storrs <[email protected]>
> wrote:
>
>>
>>
>> On Tue, Oct 13, 2020 at 12:48 PM Ben Greenman <
>> [email protected]> wrote:
>>
>>> On 10/13/20, David Storrs <[email protected]> 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 [email protected].
>>> 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/racket-users/CAE8gKocp9RQ0cV1OL1dAAH%2B4CevDVTfHvd8Xf5o%3DP5KGeUZwjg%40mail.gmail.com.