Skip to content

Commit

Permalink
released 1.6.3
Browse files Browse the repository at this point in the history
Updated to Unicode 13; fixed start condition scope specifications for patterns that start with a '{'; updated lex.vim.
  • Loading branch information
Robert-van-Engelen committed Mar 19, 2020
1 parent 72290bf commit f6e4a34
Show file tree
Hide file tree
Showing 249 changed files with 2,319 additions and 812 deletions.
29 changes: 17 additions & 12 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ the **Source Files**. Now you are all set!
In addition, the `reflex/vs` directory contains batch scripts to build projects
with MS Visual Studio C++.

### Unix/Linux and Mac OS
### Unix/Linux and macOS

On Mac OS X you can use [homebrew](https://brew.sh) to install RE/flex with
`brew install re-flex`. Otherwise:
On Linux and macOS systems you can use [homebrew](https://brew.sh) to install
RE/flex with `brew install re-flex`.

You have two options: 1) quick install or 2) configure and make.
Otherwise, you have two options: 1) quick install or 2) configure and make.

### Quick install

Expand Down Expand Up @@ -100,7 +100,11 @@ work around this problem, run:

- To use Boost.Regex as a regex engine with the RE/flex library and scanner
generator, install [Boost][boost-url] and link your code against
`libboost_regex.a`
`-lboost_regex`.

- To use PCRE2 as a regex engine with the RE/flex library and scanner
generator, install [PCRE2][pcre2-url] and link your code against
`-lpcre2-8`.

- To visualize the FSM graphs generated with **reflex** option `--graphs-file`,
install [Graphviz dot][dot-url].
Expand All @@ -122,13 +126,12 @@ To build the examples, first build the reflex tool and then execute:
$ cd examples
$ make

If `libboost_regex.a` could not be found, then edit lib/Makefile to change the
installation location of Boost so that `boost/regex.hpp` and `libboost_regex.a`
can be properly located:
If `libboost_regex` could not be found, then edit lib/Make to change the
installation location of Boost so that `boost/regex.hpp` and `libboost_regex`
can be properly located, for example:

BOOST=$(HOME)/boost
LIBS=../lib/reflex.a $(BOOST)/stage/lib/libboost_regex.a
CIFLAGS=-I. -I../include -I $(HOME)/boost
INCBOOST = /opt/local/include
LIBBOOST = /opt/local/lib/libboost_regex-mt.dylib


Documentation
Expand Down Expand Up @@ -185,6 +188,7 @@ following files:
| |__ input.h
| |__ matcher.h
| |__ pattern.h
| |__ pcre2matcher.h
| |__ posix.h
| |__ ranges.h
| |__ setop.h
Expand Down Expand Up @@ -254,7 +258,7 @@ License and copyright
---------------------

RE/flex by Robert van Engelen, Genivia Inc.
Copyright (c) 2015-2019, All rights reserved.
Copyright (c) 2016-2020, All rights reserved.

RE/flex is distributed under the BSD-3 license LICENSE.txt.
Use, modification, and distribution are subject to the BSD-3 license.
Expand All @@ -268,3 +272,4 @@ Use, modification, and distribution are subject to the BSD-3 license.
[dot-url]: http://www.graphviz.org
[FSM-url]: https://www.genivia.com/images/reflex-FSM.png
[boost-url]: http://www.boost.org
[pcre2-url]: http://pcre.org
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,10 @@ with MS Visual Studio C++.

### Unix/Linux and Mac OS X

You have two options: 1) quick install or 2) configure and make.
On Linux and macOS systems you can use [homebrew](https://brew.sh) to install
RE/flex with `brew install re-flex`.

Otherwise, you have two options: 1) quick install or 2) configure and make.

**Note:** GCC 8 and greater may produce warnings of the sort *"note: parameter
passing for argument ... changed in GCC 7.1"*. These warnings can be ignored
Expand Down Expand Up @@ -499,7 +502,8 @@ Changelog
- Feb 3, 2020: 1.5.8 added `wunput()` method; added `lex.vim` improved Flex and RE/flex Vim syntax highlighting; added `yaml.l` example; fixed `--freespace` with `--unicode` when bracket lists contain a `#`; character class operators `{+}`, `{-}`, `{&}` now accept defined names as first operands and inverted character classes; indent anchor `\k` now matches only when indent level is changed as documented.
- Mar 2, 2020: 1.6.0 added PCRE2 regex matcher classes and updated reflex option `--matcher=pcre2-perl`; optimized RE/flex matcher `find()` with AVX/SSE2/NEON/AArch64; updated and improved regex converters.
- Mar 3, 2020: 1.6.1 fixed missing PCRE2 regex type `std::string` in generated scanners.
- Mar 10, 2020: 1.6.2 fixed MSVC++ x86 32-bit build error when `HAVE_AVX512BW` is enabled (requires AVX512BW).
- Mar 10, 2020: 1.6.2 improved `reflex::PCRE2Matcher`; fixed MSVC++ x86 32-bit build error when `HAVE_AVX512BW` is enabled (requires AVX512BW).
- Mar 19, 2020: 1.6.3 updated to Unicode 13; fixed start condition scope specifications for patterns that start with a `{`; updated lex.vim.

[logo-url]: https://www.genivia.com/images/reflex-logo.png
[reflex-url]: https://www.genivia.com/reflex.html
Expand Down
Binary file modified bin/win32/reflex.exe
Binary file not shown.
Binary file modified bin/win64/reflex.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ if cc -march=native -c conftest.c >& /dev/null ; then
echo
else

# check if this piece of metal has AVX
# if not AVX512BW, check if this piece of metal has AVX
cat > conftest.c << END
#include <immintrin.h>
main() { __m256i n = _mm256_set1_epi8(42); n = _mm256_and_si256(n, n); }
Expand Down
4 changes: 2 additions & 2 deletions doc/html/abslexer_8h.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions doc/html/absmatcher_8h.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions doc/html/annotated.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions doc/html/bits_8h.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions doc/html/boostmatcher_8h.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions doc/html/class_reflex-members.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions doc/html/class_reflex.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions doc/html/classes.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions doc/html/classreflex_1_1_abstract_lexer-members.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions doc/html/classreflex_1_1_abstract_lexer.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions doc/html/classreflex_1_1_abstract_lexer_1_1_matcher.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions doc/html/classreflex_1_1_abstract_matcher-members.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions doc/html/classreflex_1_1_abstract_matcher.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions doc/html/classreflex_1_1_abstract_matcher_1_1_iterator.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit f6e4a34

Please sign in to comment.