Lex (lexical analyzer generator)
Lex is a program designed to generate scanners, also known as tokenizers, which recognize
lexical patterns in text. Lex is an acronym that
stands for "lexical analyzer generator." It is intended primarily for Unix-based
systems. The code for Lex was
originally developed by Eric Schmidt and Mike Lesk.
Lex can perform simple transformations by itself but its main purpose is to facilitate lexical
analysis, the processing of character sequences such as source code to
produce symbol sequences called tokens for use
as input to other programs such as parsers. Lex can
be used with a parser generator to perform lexical analysis. It is easy, for example, to interface
Lex and Yacc, an open source
program that generates code for the parser in the C programming
language.
Lex is proprietary but versions based on the original code are available as open source. These
include a streamlined version called Flex, an
acronym for "fast lexical analyzer generator," as well as components of OpenSolaris and Plan
9.
This was last updated in February 2007
Email Alerts
Register now to receive SearchEnterpriseLinux.com-related news, tips and more, delivered to your inbox.
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy
More News and Tutorials
-
The shortfalls of UCS include the potential for vendor lock-in and interoperability issues. Learn more about these and what you need to know to deploy a UCS in your data center. Some implementation considerations include storage, hypervisors, and a contingency plan in case your vendor changes course.
-
Unified computing systems (UCS) hold the promise of simplicity for data center, but the technology and associated costs may not be appropriate for every application. Learn about the potential of UCS to help your data center, and what you should consider prior to implementation.
-
Rising energy costs and increasing data center complexity require the merging of IT and facilities tasks, says an Avocent exec, who will present at this year's LinuxWorld conference.
-
Articles
-
Resources from around the Web