Adding blocks

Andy Armstrong andy at hexten.net
Tue Nov 27 08:45:50 EST 2007


I did some work to had handling of nested blocks to the grammar and  
parser. The grammar now handles blocks and the parser's state machine  
understands them and processes them correctly.

I started working on that hoping clarity was going to appear about how  
to reflect the handling of blocks in our interface. Currently we're  
predicated on the idea that a stream of TAP is an unstructured list.  
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.

Thoughts?

-- 
Andy Armstrong, Hexten






More information about the tapx-dev mailing list