> 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? > > Thanks in advance. > > p.s. And what about yacc and bison? > > Regards > TJ
lex and yacc are the original crusty old AT&T parser/lexer generator tools. flex and bison are their more modern GNU equivalents. Much of the stuff in base Solaris uses the former since we are conservative about requiring new build tools, especially when their source code is not something we are maintaining ourselves. But if I were starting a new project especially a stand-alone piece of s/w I'd recommend using the GNU tools: they have a much richer feature set and are free of many of the foul limitations and hackery needed to make production- quality code out of lex and yacc output. -Mike -- Mike Shapiro, Solaris Kernel Development. blogs.sun.com/mws/ _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code