https://github.com/xhacker/icgrep-devel
https://github.com/xhacker/icgrep-devel
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/xhacker/icgrep-devel
- Owner: xhacker
- License: other
- Created: 2016-04-20T22:40:50.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-04-23T08:37:17.000Z (about 10 years ago)
- Last Synced: 2025-06-08T16:42:30.852Z (about 1 year ago)
- Language: C++
- Size: 67.7 MB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README-icgrep.txt
Awesome Lists containing this project
README
README-icgrep.txt
This is the open-source version of icgrep 1.x.
icgrep is a very fast regular expression search program, particularly
for complex regular expressions. It is also a very capable engine,
supporting most common regular expression syntax and many useful
command line options.
icgrep 1.0 is designed to offer substantial Unicode support, meeting
all the Unicode Level 1 requirements of UTS #18, the Unicode
Technical Standard for regular expressions.
Normal usage to find lines in a file f matching a regexp r is:
icgrep r f
To produce a count of matching lines only, use the command:
icgrep -c r f
To read the regexp to be matched from file regexpf use the command:
icgrep -f regexpf f
See http://parabix.costar.sfu.ca/wiki/ICgrep for more information.
BUILD
To build icgrep, you need an installed LLVM system providing the
core libraries. The distribution includes a suitable source
code version of LLVM.
To build LLVM,
(L1) open a terminal window and cd to the llvm-build directory
(L2) enter the following command to build the makefiles
cmake -DCMAKE_INSTALL_PREFIX=../libllvm -DLLVM_TARGETS_TO_BUILD=X86 -DLLVM_BUILD_TOOLS=OFF -DLLVM_BUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang++ -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/clang ../llvm-3.8.0.src
(L3) Still in the llvm-build directory, enter the commands "make" and then "make install"
Using the installed LLVM, building icgrep uses the CMake build
system generator.
(IC1) open a terminal window and cd to the icgrep-build directory
(IC2) enter the following command to build the makefiles
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang++ -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/clang ../icgrep
(IC3) Enter the command "make"
LLVM files are governed by the LLVM Release License in LLVM-LICENSE.txt.
icgrep is governed by Open Software License 3.0 in OSL-3.0.txt.