Adding blocks

Andy Armstrong andy at hexten.net
Tue Nov 27 15:02:04 EST 2007


On 27 Nov 2007, at 19:51, Ovid wrote:
>> Now we have to put folds in it.
>>
>> It seems to me that we could either
>>
>> 1) Add an extra attribute on each result that provides its context
>>
>>    $result->number  ==> 7
>>    $result->context ==> ( 3, 2 )
>>
>>    The context is a path down the TAP hierarchy to this result - so
>
>> we might present the test
>>    number as 3.2.7
>>
>> 2) We build nested parsers for each nesting in the TAP. So we'd end
>> up
>> with a hierarchy of
>>    TAP::Parser objects.
>
> I think the number and context are a better choice.  As people build
> more sophisticated tools, they're going to want to have all  
> information
> like this available.  Click on a result in a GUI and see its place in
> the hierarchy.


Splendid :)

That's the way I'd started going. The implementation is cleaner with  
nested parsers - but the interface less appealing.

-- 
Andy Armstrong, Hexten






More information about the tapx-dev mailing list