README.md in regexp_parser-1.7.1 vs README.md in regexp_parser-1.8.0
- old
+ new
@@ -6,11 +6,11 @@
* Multilayered
* A scanner/tokenizer based on [Ragel](http://www.colm.net/open-source/ragel/)
* A lexer that produces a "stream" of token objects.
* A parser that produces a "tree" of Expression objects (OO API)
-* Runs on Ruby 1.9, 2.x, and JRuby (1.9 mode) runtimes.
+* Runs on Ruby 2.x and JRuby runtimes
* Recognizes Ruby 1.8, 1.9, and 2.x regular expressions [See Supported Syntax](#supported-syntax)
_For examples of regexp_parser in use, see [Example Projects](#example-projects)._
@@ -70,9 +70,20 @@
_The result of the block is returned._
* **Parser**: after completion, the block gets passed the root expression.
_The result of the block is returned._
+All three methods accept either a `Regexp` or `String` (containing the pattern)
+- if a String is passed, `options` can be supplied:
+
+```ruby
+require 'regexp_parser'
+
+Regexp::Parser.parse(
+ "a+ # Recognises a and A...",
+ options: ::Regexp::EXTENDED | ::Regexp::IGNORECASE
+)
+```
---
## Components
### Scanner