Solved

FLEX - where to find long examples

Posted on 1998-08-01
5
202 Views
Last Modified: 2010-04-15
 I'm using flex to make a scanner, I'm trying to look for longer examples apart
from the ones that come with flex itself.  I've been searching all over the web with
no luck.
  I would be pleased if someone had any longish examples or a site where I could
find some.

Thanks a lot Matt.
0
Comment
Question by:mattybat
  • 3
  • 2
5 Comments
 
LVL 2

Expert Comment

by:duneram
Comment Utility
long examples of what?  are you trying to scan sentences of text or numbers?  what is the nature of your tokens you are trying to isolate?

I have written many languages using these tools.
0
 
LVL 32

Accepted Solution

by:
jhance earned 20 total points
Comment Utility
This book "lex & yacc" is without a doubt the definitive book on the subject.  It is full of examples and I can't imagine writing any significant lex or yacc application without it.

http://www.oreilly.com/catalog/lex/
0
 
LVL 2

Expert Comment

by:duneram
Comment Utility
There are problems with the book though.  Just letting you know before hand.  I have programmed using it.
0
 
LVL 32

Expert Comment

by:jhance
Comment Utility
Are you using the 2nd edition?  It cleans up most of the problems.  Also, you can download the examples (cleanup up) from the ftp.ora.com website.
0
 
LVL 2

Expert Comment

by:duneram
Comment Utility
yeah I had both editions 1 & 2
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

763 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

6 Experts available now in Live!

Get 1:1 Help Now