Solved

C++ scanner and parser

Posted on 1999-01-28
1
540 Views
Last Modified: 2012-06-22
I would like to use Lex/Yacc to build C++ scanner and parser but doesn't have to generate code for any specific machine. Is there samples or source code that does this kind of things. I appreciate any pointer to web sites that has information or help related to this stuff.

Thank You
Paskorn
0
Comment
Question by:apirpas
1 Comment
 
LVL 32

Accepted Solution

by:
jhance earned 100 total points
ID: 1185441
You can get the source to GCC from www.gnu.org.  The parser is written in Flex/Bison (GNU equivalents of LEX/YACC).
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now