Thread: Parsing project

  1. #1
    Registered User
    Join Date
    Aug 2002
    Location
    Hermosa Beach, CA
    Posts
    446

    Parsing project

    Any suggestions for a parsing project? I just downloaded the spirit parsor, and I want to get some practice with it. I wrote a path parsor, that basically chops a path up into its components...but that was only about 12 lines.

    The framework already comes with a c parsor, pascal parsor, and XML parsor.

    I was wondering about something like an SQL syntax checker, or maybe an HTML syntax checker. Any other ideas? I just want something reasonably involved, but not something that will require tons of research to determine all the syntax rules involved. Thanks.
    The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.

  2. #2
    Registered User
    Join Date
    Nov 2002
    Posts
    491
    Write a program that takes a C/C++ declaration and see's if it is syntaxually correct. There is an example in Perer Van Der Linden's book Deep C Secrets. It is fairly straight forward, you can prolly find an example online.

  3. #3
    Registered User
    Join Date
    Aug 2002
    Location
    Hermosa Beach, CA
    Posts
    446
    By declaration do you mean:

    checking something like this:

    static volatile unsigned long int x = 56;

    Or do you mean any c++ expression or statement?

    If you mean the first case, that would be trivial with spirit.

    Thanks.
    The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem Displaying a Struct
    By rockstarpirate in forum C++ Programming
    Replies: 16
    Last Post: 05-05-2008, 09:05 AM
  2. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 01:30 PM
  3. Dynamic Binding
    By gpr1me in forum C++ Programming
    Replies: 1
    Last Post: 03-24-2006, 09:01 AM
  4. Game Independent Anti-cheat Project Needs Programmers
    By GIA Project Lea in forum Projects and Job Recruitment
    Replies: 3
    Last Post: 09-15-2005, 07:41 PM