irongit

A rust macro that allows regular expression creation through independent files. Allows fully typed named groups.

update readme

huncholanehuncholaneauthored
parent 8228deccommit 5b2c230be6927c2e51b375a51328c1101c91829eBrowse files

1 file changed, +2 -2

+2-2README.md
@@ -13,14 +13,14 @@ Allows for named groups in regular expressions to be generated from special file
1313 - `m` (multiline): `^` and `$` match the start and end of lines, not just the entire input.
1414 - `x` (extended): allows whitespace and comments starting with `#` inside the regex.
1515
16-### Each regex file is a class with 4 main functions
16+### Each regex file is a structure with 4 main implementations
1717
1818 1. `from_str(text: &str)` Finds a single match within the given string.
1919 2. `from_file(filename: &str)` Finds a single match after opening the given filename.
2020 3. `vec_from_str(text: &str)` Extracts all the matches in a given string.
2121 4. `vec_from_file(filename: &str)` Extracts all the matches after opening the given filename.
2222
23-The abstract struct for matches within the regex_macro library contains `start_pos`, `end_pos`, and public fields for each named group inside of the `.re` file. Each field then contains a `start_pos`, `end_pos`, and `val` field.
23+The abstract structure for matches within the regex_macro library contains `start_pos`, `end_pos`, and public fields for each named group inside of the `.re` file. Each field then contains a `start_pos`, `end_pos`, and `val` field.
2424
2525 ### Tips
2626