taskText Extractor TXR - Tasks: task #11433, Implement a way for multiple...

 
 

You are not allowed to post comments on this tracker with your current authentification level.

task #11433: Implement a way for multiple output blocks to go to the same stream.

Submitted by:  Kaz Kylheku <kkylheku>
Submitted on:  Thu Oct 13 00:36:07 2011  
 
Should Start On: Wed Oct 12 07:00:00 2011Should be Finished on: Wed Oct 12 07:00:00 2011
Category: NonePriority: 5 - Normal
Status: DonePrivacy: Public
Percent Complete: 100%Assigned to: Kaz Kylheku <kkylheku>
Open/Closed: ClosedEffort: 1.00

Sat Oct 12 04:20:59 2013, comment #1:

This is now implemented via the :named, :continue and :finish keywords supported in @(output), and the helper directive @(close).

Kaz Kylheku <kkylheku>
Project AdministratorIn charge of this item.
Thu Oct 13 00:36:07 2011, original submission:

A TXR query should be able to output data to a stream, then finish the output block and later append more data to the same stream. If the stream is a pipe, the output goes to the same pipe, not to a new instance of the pipe.

The proposal is to allow an output directive to specify (via a keyword) that the open block is connected to a named stream. Another output can specify that it goes to the same stream.

A named stream is not automatically closed at the end of the output block.

A @(close) directive could be provided to explicitly close a named stream. Perhaps an @(open) directive could be provided also.

These names can follow the scope rules common to variable bindings. Possibly, they can be in the same namespace.

Example syntax:

@(output `!tee foo.txt` :named tee)
Hello,
@(end)
@(output :into tee)
World!
@(end)
@(close tee)

Kaz Kylheku <kkylheku>
Project AdministratorIn charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by kkylheku (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat Oct 12 04:22:54 2013kkylhekuOpen/ClosedOpen=>Closed
    Sat Oct 12 04:20:59 2013kkylhekuStatusNone=>Done
      Percent Complete0%=>100%
      Assigned toNone=>kkylheku
      Effort16.00=>1

    Back to the top


    Powered by Savane 3.1-cleanup