CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Jun 2009
    Location
    Somewhere in Asia
    Posts
    36

    Parsing a for loop statement

    Hello, our group was instructed by our professor to make a program that will parse a for loop statement. This project will serve as an application for what we have discussed about data structures. Now i need help on how to do it. I don't have any idea about parsing since it wasn't discussed by our professor. Our professor said that parsing is like or a part of a compiler but didn't expounded it further since it will be discussed in our 3rd or 4th yr. Giving the whole algorithm could help but if someone can give the whole code, it would be great. I just need an idea since we will make the program using c#.

  2. #2
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: Parsing a for loop statement


  3. #3
    Join Date
    Oct 2002
    Location
    Timisoara, Romania
    Posts
    14,360

    Re: Parsing a for loop statement

    [ redirected ]

    Doesn't make sense if you're not studying compilers now. First thing to start with, is the grammar. What is the grammar of the for statement?
    Marius Bancila
    Home Page
    My CodeGuru articles

    I do not offer technical support via PM or e-mail. Please use vbBulletin codes.

  4. #4
    Join Date
    May 2009
    Location
    Bengaluru, India
    Posts
    460

    Re: Parsing a for loop statement

    Try learning about LEX and YAAC first for know about grammar , parsing and stuff like that - which is a part of compiler as well.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured