On Tue, Oct 18, 2016 at 5:42 PM, Hiep Pham <hieppso194(a)gmail.com> wrote:
Hi sir.
I am a newbie in HyperScan so i don't know how to run a example of
HyperScan, i built successfully HyperScan. Can you give me detail
instruction to build and run a example based on HyperScan. Thank you.
Hiep.
--
Hanoi University Of Science And Technology ,
School of Information and Technology,
KDE Laboratory,
Pham Tuan Hiep,
phone: (+84) 918632952
Hi Hiep,
You can find an example in file examples/simplegrep.c
It is grep-like tool, which looks for a pattern in a file and prints hits.
Build instructions:
gcc -o simplegrep simplegrep.c $(pkg-config --cflags --libs libhs)
Usage:
./simplegrep <pattern> <input file>
Example:
./simplegrep int simplegrep.c
--
Best regards,
Boris Nagaev