Results 1 to 7 of 7

Thread: What parser generator would you recommend for compatibility with Qt and MingW

  1. #1
    Join Date
    Nov 2009
    Location
    Laval, France
    Posts
    124
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default What parser generator would you recommend for compatibility with Qt and MingW

    Hi,
    I'm looking for a parser generator that generates C++ code that will require minimal modification for Qt and the MingW g++
    compiler. Actually for the time being I'm just interested in Lexical Analysis.
    I'm aware of the existence of Bison, Flex and Golden Parser and Antlr.
    The trouble with the Golden Parser as I see it is that its engine is targeted to Visual C++.
    I was not quite sure which forum to post this in, so forgive me if I made a mistake.

    thank you for your attention
    Henri

  2. #2
    Join Date
    Apr 2008
    Posts
    196
    Thanked 8 Times in 6 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    1

    Default Re: What parser generator would you recommend for compatibility with Qt and MingW

    You could try QLALR
    qlalr-adventures
    qlalr

    Best Regards
    NoRulez

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: What parser generator would you recommend for compatibility with Qt and MingW

    "Lexical analysis" is about "lexems", so tools like flex are more suited for the subject. Of course unless you meant "semantical analysis" or "grammar analysis".
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Nov 2009
    Location
    Laval, France
    Posts
    124
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: What parser generator would you recommend for compatibility with Qt and MingW

    Yes, you are right to insist. I actually meant both lexical analysis and parsing.
    Does QLALR have a flex equivalent or is Flex quite sufficient in fact?

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: What parser generator would you recommend for compatibility with Qt and MingW

    QLalr doesn't enforce any lexer, you can use whichever you like or write your own.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #6
    Join Date
    Nov 2009
    Location
    US, Midwest
    Posts
    215
    Thanks
    62
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: What parser generator would you recommend for compatibility with Qt and MingW

    Take a look at boost Spirit 2.x

  7. #7
    Join Date
    Apr 2010
    Posts
    769
    Thanks
    1
    Thanked 94 Times in 86 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: What parser generator would you recommend for compatibility with Qt and MingW

    Note that boost has significant portability issues. It will work with recent versions of GCC and (I think) VS, but it strains most other compilers well beyond their limits. This may be a problem if, for example, you need to build using the native Solaris compiler for some reason.

Similar Threads

  1. Recommend memory management literature
    By frenk_castle in forum General Programming
    Replies: 3
    Last Post: 18th October 2009, 20:30
  2. Which IDE do you recommend for Qt4?
    By adr1an in forum Qt Tools
    Replies: 12
    Last Post: 4th February 2008, 18:05
  3. Win32 UML generator from C++ .h files?
    By hickscorp in forum General Discussion
    Replies: 1
    Last Post: 13th May 2007, 18:05
  4. Recommend right widget type please
    By hvengel in forum Qt Tools
    Replies: 2
    Last Post: 18th March 2007, 20:58
  5. Random No Generator in C/C++
    By ankurjain in forum General Programming
    Replies: 1
    Last Post: 6th July 2006, 11:33

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.