Do you know any lexical analyzer or lexer in Qt?

Do you know any lexical analyzer or lexer in Qt? I need this to parse text files.

+3
source share
3 answers

I wonder how Qt has evolved into a universal structure that forces the programmer who uses it, believes that everything that is useful should start with the letter Q. Very dot-netty. Qt is just a class library that runs on top of the language, and this does not preclude the use of regular libraries that do the work. Especially when a library that has little to do with the presentation of the user interface is the job that Qt does so well.

There are many libraries that provide lexical analysis and parsing. It starts with Lex and Yacc, Flex and Bison next, etc. You only need to enable Qt for error messages, they readily support this.

+2
source

QXmlReader , QRegExp. , Quex ( Qt, ++ ).

+2

... ( , !) Spirit boost.

"" , , .

http://www.boost.org/doc/libs/1_48_0/libs/spirit/doc/html/spirit/lex.html

( ), #include ( , . ) , , !

0

Source: https://habr.com/ru/post/1751092/


All Articles