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 13 Oct 2011 12:36:07 AM UTC  
 
Should Start On: Wed 12 Oct 2011 07:00:00 AM UTCShould be Finished on: Wed 12 Oct 2011 07:00:00 AM UTC
Category: NonePriority: 5 - Normal
Status: DonePrivacy: Public
Percent Complete: 100%Assigned to: Kaz Kylheku <kkylheku>
Open/Closed: ClosedEffort: 1.00

Sat 12 Oct 2013 04:20:59 AM UTC, 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 13 Oct 2011 12:36:07 AM UTC, 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 12 Oct 2013 04:22:54 AM UTCkkylhekuOpen/ClosedOpen=>Closed
    Sat 12 Oct 2013 04:20:59 AM UTCkkylhekuStatusNone=>Done
      Percent Complete0%=>100%
      Assigned toNone=>kkylheku
      Effort16.00=>1

    Back to the top


    Powered by Savane 3.1-cleanup