Commit graph

20 commits

Author SHA1 Message Date
Markus Schirp
4355b23369 Change meta examples to allow specifying N types 2018-12-02 00:18:10 +00:00
Jannosch Müller
82c546fe92 Use regexp_parser 1.2.0 2018-10-13 12:33:44 +02:00
Markus Schirp
d6a2195744 Upgrade parser dependency 2018-09-12 13:15:43 +00:00
Markus Schirp
99ab9ff171 Change required Ruby version to >=2.3
* This commit does every 2.3 change required to get the build pass
* None of the changes can be extracted, without changing the build setup
2018-09-12 14:21:24 +00:00
Firas Zaidan
b95aa9c05a Whitelist regexp_parser warning and bump regexp_parser to 0.4.9
* Add regexp_xgrapheme_type
2018-01-23 23:49:13 +01:00
Daniel Gollahon
0a8c9fae31
Add mutation for /a*/ -> /a/ 2016-10-11 01:38:16 -07:00
Daniel Gollahon
a7064c26c0
Add mutations from /a*/ -> /a+/
- Mutates greedy zero-or-more regexps to greedy one-or-more regexps.
2016-10-10 08:43:48 -07:00
Daniel Gollahon
69bf42a51d
Add capture group -> non capture group mutation
- Mutates regexps like (foo) to (?:foo).
2016-10-09 20:02:23 -07:00
Daniel Gollahon
57d393ead3
Add regexp mutation for \Z -> \z 2016-10-09 17:27:55 -07:00
Daniel Gollahon
8d4cea5920
Add meta for regexp_eos_ob_eol anchor 2016-10-09 17:27:54 -07:00
Daniel Gollahon
91cd00eaae
Add \h -> \H and \H -> \h mutations 2016-10-09 17:13:00 -07:00
Daniel Gollahon
5922d927af
Add mutation for $ -> \z 2016-10-09 16:59:51 -07:00
Daniel Gollahon
2bbaef5145
Sort regexp nodes lexicographically
- To reduce diff noise in following PRs and have a well-defined ordering
  of nodes.
2016-10-09 16:50:33 -07:00
John Backus
b196e08a44
Add mutations from /foo|bar/ -> /foo/ and /bar/ 2016-08-21 15:19:04 -07:00
John Backus
dd91f7c1b8
Add regexp_alternation_meta mutations 2016-08-21 15:14:43 -07:00
John Backus
11a130ed43
Add character type mutations
Mutations:

  - `/\b/` -> `/\B/` (closes #577)
  - `/\B/` -> `/\b/` (closes #578)
  - `/\d/` -> `/\D/` (closes #579)
  - `/\D/` -> `/\d/` (closes #580)
  - `/\s/` -> `/\S/` (closes #583)
  - `/\S/` -> `/\s/` (closes #584)
  - `/\w/` -> `/\W/` (closes #585)
  - `/\W/` -> `/\w/` (closes #586)
2016-08-21 14:57:40 -07:00
John Backus
dd58822cc1
Extract meta duplication to regexp_mutations 2016-08-14 15:01:21 -07:00
John Backus
770f34eee5
Reintroduce Regexp mutations
- Reverts commit 8c0c656aec
- Fixes #595
- Adds support for `\h` and `\H`
2016-07-25 12:21:50 -07:00
Markus Schirp
8c0c656aec Revert "Mutate regexp body" 2016-05-29 17:07:35 +00:00
John Backus
eaf1abed0e
Add regular expression mutation
- Adds dependency on regexp_parser
- Introduces a bijective mapper from regexp_parser expression to ast
- Extracts generic TypeRegistry
- Refactors Regexp::Transformer to use TypeRegistry
2016-05-22 20:45:14 -07:00