user5328749
user5328749

Reputation:

Should I learn Lex/ YACC or FLEX/Bison

I took compiler course last year. Now I want to learn, how to write our own lexical analyzer and parser. I searched the net came across these two tools which are under GNU License.

But there also alternative tools to these known as FLEX and BISON. I think they are under BSD License, I'm not sure. But I'm unable to figure out which tool should I learn.

Upvotes: 2

Views: 1649

Answers (1)

For most novice users the tools are almost identical. The same input source will build a lexer/parser that performs the same task. There are differences, but none that would impair your ability to learn and use the tools. The differences would only be of interest to those more experienced coders or those that like to focus on the esoteric internal operations of tools.

Just use which ever one works best for you in your software environment. I teach my students using flex and bison on the basis that they can experience the same tools irrespective of platform (Windows, linux, OSX etc).

Upvotes: 3

Related Questions