Wednesday 5 August 2015

TYPES OF SCANNER GENERATOR TOOLS

Lex : lex was developed in 1970 at bell laboratories by mike lesk and eric Schmidt. It was made available as part of the Unix operating system and its variants. It generates the c code for the scanner from the given lexical specification .lex is also a part of the portable operating system interface standards.

Flex : it is also known as fast lexical generator and is similar to lex. It was written in the c language by Vern Paxson in 1987. The C++ version of flex is flex++.it is available in UNIX  and UNIX-variant  operating systems.

JLEX: it is written for scanning java program. Elliot Berk at Princeton university developed this tool, and it is now mainted by C. Scott Ananian. JLex can handle Unicode.

Regal : It is a scanner software that helps in realizing the finite state machine from the given regular  expressions. For each transitions in the finite state machine, actions such as sending the token to the parser or displaying an error message can be associated with it. Its output code can be made compatible with C, C++, Objective-C,D, Go, Java or Ruby code. Ragel was developed by Adrian Thurston in 2000 and was released under GNU.

Java CC( Java Compiler Compiler) : JavaCC is a lexical analyser tool and is available os open source. It is similar to lex. Sri ram Sankar and Sreeni Viswanadha developed Java CC in 1996, and it is now owned by Sun Microsystems. It falls under the Berkeley software Distribution(BSD) license. Java CC generates both scanner and parser program on interpreting the specification file.

Quex: This is also similar to lex. It generates C and C++ codes for scanning. Some of the features of these tools are(a) the scanner produced by this tool is more similar to a hand-written code than the table-based code and (b) it supports Unicode characters. It was developed by Ing. Frank-Rense Schafer in 2001 and is licensed under GNU Library General Public License (LGPL). More details can be found at http://quex.sourceforge.net/.

--------------------------------------------------------------------
Article By:
A. Sunitha
Associate Professor
CSE Department
Sphoorthy Engineering College


Sphoorthy Engineering College



No comments:

Post a Comment