Results 1 to 7 of 7

Thread: Parser in Qt.... HELP!

  1. #1
    Join Date
    Jan 2007
    Posts
    29
    Thanks
    6
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Parser in Qt.... HELP!

    Helo everyone,

    i am doing a project on some graphic tool using qt as
    the front end. i am using lex and yacc as parser.
    now i am facing a problem since yacc generates only c
    code as i want to bring c++ features. so my request
    is " is there any way that we can create parser in qt
    itself or is there any method by which i can make a
    c++ (yacc) Parser... "


    please guide me its urgent...
    deepu

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Parser in Qt.... HELP!

    There is no problem in using C code in C++ application.

    http://tldp.org/HOWTO/Lex-YACC-HOWTO-5.html

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

    Default Re: Parser in Qt.... HELP!

    Bison can generate C++ code as well.

  4. #4
    Join Date
    Jan 2007
    Posts
    29
    Thanks
    6
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: Parser in Qt.... HELP!

    helo Mr.Jacek,

    I have already tried the patch work that has described in the link given by you. Actually there was a reduction in the no., of errors... still it is stating some errors regarding the non availability of the function yyerror() to the compiler. can u please help me....

    i am really thankful for ur precious help
    regards
    deepu

  5. #5
    Join Date
    Jan 2007
    Posts
    29
    Thanks
    6
    Qt products
    Qt3
    Platforms
    Unix/X11 Windows

    Default Re: Parser in Qt.... HELP!

    helo sir,

    i am not familiar with bison.... can u tell me is bison similar to yacc or do i have to learn bison...

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

    Default Re: Parser in Qt.... HELP!

    Quote Originally Posted by deepusrp View Post
    helo sir,

    i am not familiar with bison.... can u tell me is bison similar to yacc or do i have to learn bison...
    http://www.gnu.org/software/bison/

  7. #7
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Parser in Qt.... HELP!

    Quote Originally Posted by deepusrp View Post
    still it is stating some errors regarding the non availability of the function yyerror() to the compiler.
    Could you post the first error message?

Similar Threads

  1. Flex, Bison and qmake
    By Hydragyrum in forum Qt Programming
    Replies: 5
    Last Post: 2nd May 2011, 15:52

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.