On Wed, 18 Jul 2007, ÌÕœÝ Tao Jie wrote:

Dear all:

There're two lexical analyzer generator in Solaris/OpenSolaris
/usr/ccs/bin/lex
/usr/sfw/bin/flex

What's the difference between these 2 tools? Are they replaceable?

http://flex.sourceforge.net/manual/Lex-and-Posix.html#Lex-and-Posix


Thanks in advance.

p.s. And what about yacc and bison?

Bison's manual claims that 'bison -y' accepts yacc input, and bison were 'upward compatible' with yacc. That means parsers written for yacc can be instantiated with bison. The reverse may or may not be true - depending on whether bison features have been used that yacc doesn't have. Although the bison manual isn't very clear on where exactly the differences are, i.e. what bison constructs might need to be avoided.

FrankH.



Regards
TJ

_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to