BlockStatement Struct Reference
A group of statements that executes a single statement with a single pair of line context filters -- optionally with a "while condition" that allows the block to be run multiple times on the same input line while the condition is true.
More...
#include <muSED.h>
List of all members.
Detailed Description
A group of statements that executes a single statement with a single pair of line context filters -- optionally with a "while condition" that allows the block to be run multiple times on the same input line while the condition is true.
Typically defined like one of the following
[rangespec] [ W /regex/ ] "{ <statementList> "}"
Where [rangespec] is 0, 1, or 2 Filters with an optional trailing ! to indicate range inversion. The <statementlist> looks like this:
[statement { ; statemeent } ]
In the "while" case, the statement list will be repeatedly executed while the regex matches the pattern buffer.
In the non-while case, the statement list will be executed only once.
Definition at line 597 of file muSED.h.
Constructor & Destructor Documentation
Member Function Documentation
return true if the patternBuffer, line number, and isLast_ flag in the specified context match the requirements of the filters.
- Parameters:
-
[in] | context | The runtime context in which to determine if the current statement, as defined both by the statement pointer and by line number information in the context, is active. |
[in] | statement | The statement about to be executed on the current line of input as defined by the line number and is last flag in the context. |
Note that the runtime context keeps track of the activation status of statements, by the statement pointer, based on the filters in a filterable statement. Whenever you have a range filter, the activate function manages the activation state.
Definition at line 316 of file muSED.cxx.
void adoptChild |
( |
Statement * |
newbie |
) |
[inherited] |
Take ownership of a new statement and schedule it for delete when *this is destructed.
Definition at line 444 of file muSED.h.
void clear |
( |
|
) |
[inherited] |
std::string debugPrefix |
( |
|
) |
const [inherited] |
static void debugPrint |
( |
Statement * |
p |
) |
[static, inherited] |
std::string debugString |
( |
|
) |
const [virtual] |
std::string debugStringPrefix |
( |
|
) |
const [virtual, inherited] |
Execute this statement on the specified context.
- Returns:
- true to indicate that the script should stop immediately.
Implements Statement.
Definition at line 275 of file muSED.cxx.
Member Data Documentation
The documentation for this struct was generated from the following files: