• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

MakeH A D10-Dec-202114.7 KiB471387

Makefile.amH A D10-Dec-202114.6 KiB467363

Makefile.inH A D10-Dec-202126.1 KiB884721

README.mdH A D10-Dec-20216.2 KiB8879

braille.lH A D10-Dec-202111.1 KiB335284

build.shH A D10-Dec-202172 75

calc.lH A D10-Dec-20211.1 KiB5128

calc.testH A D10-Dec-202145 43

calc.yH A D10-Dec-20212 KiB8453

cards.cppH A D10-Dec-20211.7 KiB5646

cdefs.lH A D10-Dec-2021520 1612

cow.lH A D10-Dec-2021102 65

cows.lH A D10-Dec-2021262 1312

csv.lH A D10-Dec-20214.8 KiB184146

ctokens.lH A D10-Dec-20211.1 KiB8169

cvt2utf.cppH A D10-Dec-202110.5 KiB382292

dos.lH A D10-Dec-2021840 4633

echo.lH A D10-Dec-2021910 2711

example.jsonH A D10-Dec-2021752 3736

example.yamlH A D10-Dec-2021211 1918

fastfind.lH A D10-Dec-2021194 158

fastsearch.cppH A D10-Dec-20213.2 KiB11345

fastsearch_fsm.cppH A D10-Dec-202118.3 KiB344327

flexexample1.lH A D10-Dec-2021930 6125

flexexample10.lH A D10-Dec-20213.1 KiB11443

flexexample10.testH A D10-Dec-202138 43

flexexample10a.testH A D10-Dec-202140 43

flexexample10b.testH A D10-Dec-202112 32

flexexample11.lxxH A D10-Dec-20211.3 KiB4836

flexexample11.testH A D10-Dec-202148 43

flexexample11.yxxH A D10-Dec-20213.4 KiB133113

flexexample2.lH A D10-Dec-20211.2 KiB5331

flexexample3.lH A D10-Dec-2021541 2011

flexexample3.lxxH A D10-Dec-2021444 1913

flexexample3.testH A D10-Dec-202122 32

flexexample3.yH A D10-Dec-2021606 3827

flexexample3.yxxH A D10-Dec-2021633 3829

flexexample4.lH A D10-Dec-2021816 2311

flexexample4.lxxH A D10-Dec-2021654 2216

flexexample4.testH A D10-Dec-202122 32

flexexample4.yH A D10-Dec-20211.1 KiB5036

flexexample4.yxxH A D10-Dec-20211.1 KiB4838

flexexample5.lH A D10-Dec-2021816 2311

flexexample5.lxxH A D10-Dec-2021664 2216

flexexample5.testH A D10-Dec-202122 32

flexexample5.yH A D10-Dec-20211.8 KiB6042

flexexample5.yxxH A D10-Dec-20211.6 KiB5848

flexexample6.lH A D10-Dec-2021479 3118

flexexample7.lH A D10-Dec-2021535 2011

flexexample7.lxxH A D10-Dec-2021461 1913

flexexample7.testH A D10-Dec-202122 32

flexexample7.yH A D10-Dec-2021961 4832

flexexample7.yxxH A D10-Dec-20211.1 KiB5038

flexexample8.lH A D10-Dec-2021850 2311

flexexample8.lxxH A D10-Dec-2021697 2216

flexexample8.testH A D10-Dec-202122 32

flexexample8.yH A D10-Dec-20211 KiB5037

flexexample8.yxxH A D10-Dec-20211.1 KiB4838

flexexample9.lxxH A D10-Dec-2021636 2115

flexexample9.testH A D10-Dec-202122 32

flexexample9.yxxH A D10-Dec-20211.4 KiB6751

gz.lH A D10-Dec-20213.7 KiB209192

indent.lH A D10-Dec-2021927 2119

indent.testH A D10-Dec-2021297 2017

indent1.lH A D10-Dec-2021715 1412

indent2.lH A D10-Dec-20211 KiB2623

jdefs.lH A D10-Dec-20212.3 KiB5533

json.lH A D10-Dec-20219.9 KiB313274

jtokens.lH A D10-Dec-20215.3 KiB213170

minic.hppH A D10-Dec-202156.9 KiB1,9811,551

minic.lH A D10-Dec-20219.1 KiB261199

minic.yH A D10-Dec-202145 KiB1,112968

minicdemo.cH A D10-Dec-20217.9 KiB183113

mmap.lH A D10-Dec-20213.3 KiB153118

pdefs.lH A D10-Dec-20211.8 KiB4734

ptokens.lH A D10-Dec-20215.1 KiB201143

readline.lH A D10-Dec-20211.5 KiB7760

reflexexample10.lH A D10-Dec-2021743 3623

reflexexample11.lxxH A D10-Dec-20211.3 KiB4836

reflexexample11.testH A D10-Dec-202148 43

reflexexample11.yxxH A D10-Dec-20213.3 KiB133113

reflexexample3.lH A D10-Dec-2021436 1910

reflexexample3.lxxH A D10-Dec-2021424 1913

reflexexample3.yH A D10-Dec-2021633 3827

reflexexample3.yxxH A D10-Dec-2021658 3829

reflexexample4.lH A D10-Dec-2021648 2210

reflexexample4.lxxH A D10-Dec-2021650 2216

reflexexample5.lH A D10-Dec-2021648 2210

reflexexample5.lxxH A D10-Dec-2021650 2216

reflexexample6.lH A D10-Dec-2021295 2414

reflexexample7.lH A D10-Dec-2021433 1910

reflexexample7.lxxH A D10-Dec-2021444 1913

reflexexample8.lH A D10-Dec-2021666 2210

reflexexample8.lxxH A D10-Dec-2021680 2216

reflexexample9.lxxH A D10-Dec-2021639 2316

scanstrings.lH A D10-Dec-20211.2 KiB6239

tag.lH A D10-Dec-2021530 2617

tag_lazy.lH A D10-Dec-2021544 2717

tag_lazystates.lH A D10-Dec-20211.3 KiB4829

tag_tidy.lH A D10-Dec-20212.4 KiB8362

tag_unicode.lH A D10-Dec-20211.5 KiB5332

ugrep.cppH A D10-Dec-202129.1 KiB872630

unicode.lH A D10-Dec-2021391 107

url_boost.cppH A D10-Dec-20212.4 KiB8453

url_pcre2.cppH A D10-Dec-20212.3 KiB8453

wc.lH A D10-Dec-2021257 2013

wcpp.lH A D10-Dec-2021485 3321

wcu.lH A D10-Dec-2021365 2113

wcwc.lH A D10-Dec-2021506 3022

yaml.lH A D10-Dec-202119.7 KiB872761

yyscanstrings.lH A D10-Dec-20212.3 KiB8045

README.md

1[![logo][logo-url]][reflex-url]
2
3The examples with Bison require the installation of [Bison][bison-url].
4
5Examples with RE/flex C++ lexer methods
6---------------------------------------
7
8- `minic.l,` `minic.y`, `minic.hpp`, and `minicdemo.c` Mini C compiler with Bison 3.2 C++ complete parser, generates Java bytecode in class files
9- `braille.l` a braille translator, inspired by the re2c example but extended and fixed to make it usable
10- `ptokens.l` and `pdefs.l` a Python source tokenizer
11- `calc.l` and `calc.y` calculator with Bison 3.2 bison-bridge parser, supports Unicode identifier variables, resolves input errors
12- `csv.l` scanner to parse CSV rows from a file into a C++ vector
13- `yaml.l` YAML 1.2 parser and writer
14- `indent1.l` indentation detection and reformatting example, basic
15- `indent2.l` indentation detection and reformatting example, advanced with start conditions
16- `unicode.l` a very simple Unicode word matcher to demonstrate Unicode matching
17- `scanstrings.l` demonstrates string and buffer scanning
18- `mmap.l` demonstrates mmap(2) to scan C/C++ source code files fast with RE/flex read-only memory scanning
19- `gz.l` demonstrates scanning zlib-compressed (and uncompressed) C/C++ source code files
20- `dos.l` demonstrates scanning DOS-formatted files with `reflex::BufferedInput::dos_streambuf`
21- `fastfind.l` demonstrates fast search for patterns in input, rather than scanning the input
22- `tag.l` simple lexer to print out all XML/HTML tags
23- `tag_lazy.l` simple lexer to print XML/HTML tags, uses lazy quants
24- `tag_lazystates.l` lexer to print XML tags, uses lazy quants and states
25- `tag_unicode.l` lexer to print XML tags, uses lazy quants and states, checks UTF-8 validity
26- `tag_tidy.l` lexer to tidy and normalize HTML
27- `cow.l` scanner to convert cows
28- `cows.l` scanner to convert cows, uses word boundary anchors
29- `reflexexample3.l` example RE/flex scanner adapted from the Flex documentation with C bison
30- `reflexexample3.lxx` example RE/flex scanner adapted from the Flex documentation with C++ bison
31- `reflexexample4.l` example RE/flex scanner adapted from the Flex documentation with C bison-bridge
32- `reflexexample4.lxx` example RE/flex scanner adapted from the Flex documentation with C++ bison-bridge
33- `reflexexample5.l` example RE/flex scanner adapted from the Flex documentation with C bison-bridge
34- `reflexexample5.lxx` example RE/flex scanner adapted from the Flex documentation with C++ bison-bridge
35- `reflexexample6.l` example RE/flex reentrant scanner with state stacks
36- `reflexexample7.l` example RE/flex scanner adapted from the Flex documentation with C bison-locations
37- `reflexexample7.lxx` example RE/flex scanner adapted from the Flex documentation with C++ bison-locations
38- `reflexexample8.l` example RE/flex scanner adapted from the Flex documentation with C bison-bridge and bison-locations
39- `reflexexample8.lxx` example RE/flex scanner adapted from the Flex documentation with C++ bison-bridge and bison-locations
40- `reflexexample9.lxx` example RE/flex scanner with Bison 3.0 %skeleton "lalr1.cc" C++ parser with bison-cc and bison-locations
41- `reflexexample10.l` example RE/flex scanner adapted from the Flex documentation to use multiple buffers
42- `reflexexample11.lxx` example RE/flex scanner with Bison 3.2 C++ bison-complete and bison-locations
43
44Examples with the backward-compatible Flex lexer functions
45----------------------------------------------------------
46
47- `json.l` JSON parser and writer
48- `ctokens.l` and `cdefs.l` a C/C++ source tokenizer
49- `jtokens.l` and `jdefs.l` a Java source tokenizer, meets the official Java Lexical Structure requirements
50- `readline.l` demonstrates scanning with readline(3) interactive input
51- `yyscanstrings.l` demonstrates string and buffer scanning
52- `echo.l` classic interactive scanner to echo input
53- `wc.l` word count example
54- `wcu.l` word count example with Unicode matching (RE/flex only)
55- `wcpp.l` word count example with lexer class variables
56- `wcwc.l` word count example with custom lexer class
57- `flexexample1.l` example taken from the Flex documentation
58- `flexexample2.l` example from <http://matt.might.net/articles/standalone-lexers-with-lex>
59- `flexexample3.l` example from the Flex documentation with C bison
60- `flexexample3.lxx` example from the Flex documentation with C++ bison
61- `flexexample4.l` example from the Flex documentation with C bison-bridge
62- `flexexample4.lxx` example from the Flex documentation with C++ bison-bridge
63- `flexexample5.l` example from the Flex documentation with C bison-bridge
64- `flexexample5.lxx` example from the Flex documentation with C++ bison-bridge
65- `flexexample6.l` example reentrant scanner with state stacks
66- `flexexample7.l` example from the Flex documentation with C bison-locations
67- `flexexample7.lxx` example from the Flex documentation with C++ bison-locations
68- `flexexample8.l` example from the Flex documentation with C bison-bridge and bison-locations
69- `flexexample8.lxx` example from the Flex documentation with C++ bison-bridge and bison-locations
70- `flexexample9.lxx` example Bison 3.0 %skeleton "lalr1.cc" C++ parser with bison-cc and bison-locations
71- `flexexample10.l` example from the Flex documentation to use multiple buffers
72- `reflexexample11.lxx` example reentrant scanner with Bison 3.2 C++ bison-complete and bison-locations
73
74Regex pattern matching with the easy-to-use RE/flex regex API
75-------------------------------------------------------------
76
77- `cards.cpp` RE/flex regex API demo: matches credit card numbers (uses the fast RE/flex regex matcher)
78- `cvt2utf` demonstrates `reflex::Input` UTF-8 normalization to convert files to UTF-8/16/32
79- `fastsearch.cpp` demonstrates super fast search with regex patterns compiled to C++ (typically much faster than any grep tool)
80- `ugrep.cpp` file searcher (simple version), [fully-featured high-performance version on GitHub](https://github.com/Genivia/ugrep)
81- `url_boost.cpp` RE/flex regex API demo: capture domain, path, and query keys from URLs (uses the Boost.Regex library)
82- `url_pcre2.cpp` RE/flex regex API demo: capture domain, path, and query keys from URLs (uses the PCRE2 library)
83
84[logo-url]: https://www.genivia.com/images/reflex-logo.png
85[reflex-url]: https://www.genivia.com/get-reflex.html
86[manual-url]: https://www.genivia.com/doc/reflex/html
87[bison-url]: http://dinosaur.compilertools.net/#bison
88