[Smallwiki] Parser Bug?
Lukas Renggli
renggli at iam.unibe.ch
Mon Jun 5 11:05:01 MEST 2006
Hi Keith,
this is rather strange to have the parser definition and the code not
in sync. I don't know how this could have happened. I fixed the
reported bug in the latest version and recompiled the parser from the
definition, all the tests pass again.
Thanks for reporting.
Cheers,
Lukas
On 5 Jun 2006, at 03:28, Keith Hodges wrote:
> Lukas,
>
> I found this code in the parser:
>
> reduceActionForHorizontalRule2: nodes
> ^ self items last setChildren: (self createText: (nodes at: 1)
> value) , self items last children
>
> which means that the code in the class does not match that
> contained in
> the definition comment.
>
> Do you have a more recent scanner/parser definition lying around
> somewhere?
>
> Keith
>
>> In the wiki parser I see the lines
>>
>> HorizontalRule
>> : <horizontalRule> { #addHorizontalRule }
>> | <horizontalRule> 'rule' Paragraph { self items children
>> addFirst:
>> (self createText: rule value) } ;
>>
>> items is initialized to an OrderedCollection, which I do not think
>> responds to children. It does manage to pass the tests though.
>>
>> Keith
>>
>
>
>
> ___________________________________________________________
> To help you stay safe and secure online, we've developed the all
> new Yahoo! Security Centre. http://uk.security.yahoo.com
>
> _______________________________________________
> SmallWiki, Magritte, Pier and Related Tools ...
> https://www.iam.unibe.ch/mailman/listinfo/smallwiki
--
Lukas Renggli
http://www.lukas-renggli.ch
More information about the SmallWiki
mailing list