0

I am new to compiler construction. I wanted to use lex tool. I found these two while searching on the internet.
1) Gnu Flex
2) Pargen
Any other better option available ?
But I am not able to use them. How do I get start with it ? I am not getting how to use these tools ?
Please help

3
Contributors
6
Replies
8
Views
7 Years
Discussion Span
Last Post by Narue
1

> Any other better option available ?
What's your definition of "better"?

> How do I get start with it ?
Read the manual.

> I am not getting how to use these tools ?
Read a tutorial, then read the manual.

0

By better, as I mentioned before, I didn't know about these tools. What I knew was just a "lex tool" but i didn't find anything exactly of that name.
I am using windows, when I installed flex, all the manuals in various formats got installed, but its given nowhere how to use it for lexical analysis.

0

That's odd.

Because the book deals with how to use the tools, not what OS they're running on (which is irrelevant).

0

>I am new to compiler construction.
Cool. It's a fun an interesting area.

>I wanted to use lex tool.
I strongly recommend writing everything by hand at first. You can use generators when you understand the principles behind the generators and want to work faster. It's much like using a binary search tree library. A good idea in practice, but you shouldn't eschew learning how to write binary search trees simply because the library is available.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.