Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 07-Dec-2021 | - | ||||
tests/ | H | 07-Dec-2021 | - | 389 | 271 | |
README | H A D | 07-Dec-2021 | 508 | 16 | 11 | |
configfile.cpp | H A D | 07-Dec-2021 | 2.9 KiB | 87 | 50 | |
configfile.h | H A D | 07-Dec-2021 | 2.2 KiB | 70 | 37 | |
css3-simplified.lexgen | H A D | 07-Dec-2021 | 1.8 KiB | 98 | 80 | |
generator.cpp | H A D | 07-Dec-2021 | 15.6 KiB | 523 | 393 | |
generator.h | H A D | 07-Dec-2021 | 5.8 KiB | 209 | 145 | |
global.h | H A D | 07-Dec-2021 | 2.6 KiB | 101 | 55 | |
lexgen.lexgen | H A D | 07-Dec-2021 | 402 | 25 | 21 | |
lexgen.pri | H A D | 07-Dec-2021 | 81 | 4 | 3 | |
lexgen.pro | H A D | 07-Dec-2021 | 101 | 7 | 6 | |
main.cpp | H A D | 07-Dec-2021 | 10 KiB | 311 | 244 | |
nfa.cpp | H A D | 07-Dec-2021 | 15.6 KiB | 492 | 348 | |
nfa.h | H A D | 07-Dec-2021 | 3.3 KiB | 115 | 64 | |
re2nfa.cpp | H A D | 07-Dec-2021 | 14.9 KiB | 535 | 433 | |
re2nfa.h | H A D | 07-Dec-2021 | 2.9 KiB | 104 | 62 | |
test.lexgen | H A D | 07-Dec-2021 | 100 | 10 | 7 | |
tokenizer.cpp | H A D | 07-Dec-2021 | 6.2 KiB | 225 | 187 |
README
1Lexgen 2------ 3 4This is a little tool to generate lexical scanners from a rather simplistic 5configuration file. We use it internally in Qt to generate the scanner for the 6CSS parser that is built into the toolkit (used for the widget styling and the 7HTML import into QTextDocument). 8 9Beware, it's very slow (in generating the code) and it may not generate what 10you want. But I like that it generates code that operates on QChar and friends. 11 12Use at your own risk ;-) 13 14-- 15Simon Hausmann <simon.hausmann@qt.io> 16