You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Changed the primary usage model from inheritance-based to regular use in main.
- A new class for text parsing rules created Text::Parser::Rule (#17).
- Import functions from String::Util, Scalar::Util, String::Util::Match, String::Util::Range, and String::Index.
These can be accessed inside the ExAWK string rules directly (#44)
- Added new methods to Text::Parser called add_rule to create rules (#37), and clear_rules to delete rules (#40)
- Added new methods to Text::Parser called BEGIN_rule and END_rule (#47). The current line is not accessible in this rule.
- Added new method join_range available when auto_split => 1 (#38)
- Rules support range shortcuts like ${3+}, @{2+}, and \@{3+} (#39), (#45)
- Added ability to create parse-time variables accessible across rules such as ~var (#48)
BEGIN_rule
must be run before all rules, before the first line is read.END_rule
will be run right beforeread
method is finished readingBoth
BEGIN
andEND
should ignoreif
key andcontinue_to_next
key.Both of them will append to whatever rule was provided earlier.
The
$this->this_line
should not exist in theBEGIN
andEND
blocks.These rules are useful for programmers to do specific things right before reading a file, or right after reading it.
The text was updated successfully, but these errors were encountered: