Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make class Text::Parser::Rule #17

Closed
3 tasks done
balajirama opened this issue Apr 16, 2019 · 1 comment
Closed
3 tasks done

Make class Text::Parser::Rule #17

balajirama opened this issue Apr 16, 2019 · 1 comment
Assignees
Labels
documentation This is an improvement to the documentation enhancement New feature or request test Add a new test

Comments

@balajirama
Copy link
Owner

balajirama commented Apr 16, 2019

  • Make a class Text::Parser::Rule

  • Each rule must have a name, rule condition string, and a rule action string

  • Write separate tests and make sure it works

@balajirama balajirama self-assigned this Apr 16, 2019
@balajirama balajirama added the enhancement New feature or request label Apr 16, 2019
@balajirama
Copy link
Owner Author

balajirama commented Apr 16, 2019

  • Add POD documentation

  • Update POD for Text::Parser also

@balajirama balajirama moved this from In progress to Review in progress in Rules-based parsing - Extended AWK syntax Apr 16, 2019
@balajirama balajirama removed this from Review in progress in Rules-based parsing - Extended AWK syntax Apr 16, 2019
@balajirama balajirama added documentation This is an improvement to the documentation test Add a new test labels Apr 16, 2019
@balajirama balajirama mentioned this issue Apr 18, 2019
4 tasks
@balajirama balajirama changed the title Make class Text::Parser::ExtractionRule Make class Text::Parser::AwkStyleRule Jun 7, 2019
@balajirama balajirama changed the title Make class Text::Parser::AwkStyleRule Make class Text::Parser::ExAWK::Rule Jun 9, 2019
Rules-based parsing - Extended AWK syntax automation moved this from To do to Done Jun 9, 2019
@balajirama balajirama changed the title Make class Text::Parser::ExAWK::Rule Make class Text::Parser::Rule Jun 11, 2019
balajirama added a commit that referenced this issue Jun 17, 2019
  - 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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation This is an improvement to the documentation enhancement New feature or request test Add a new test
Projects
No open projects
Development

No branches or pull requests

1 participant