Lex

Lex is a tool that looks for logical units (lexemes) in sequences of characters. This is typically the first tasks a compiler does after it has when he is has to do is read the source program and group its characters into lexemes.

OS/2 Tools

 * MKS lex & yacc
 * flex
 * Thinkage YAY
 * Turbo Pascal Lex/YACC - Open source tool that uses L/Y syntax but outputs Turbo Pascal compatible code.


 * Editor support
 * jEdit - Java based - Lex syntax highlighting built in, YACC available as a separate download
 * NEdit - XFree86 - Auto-indent, autocomplete and syntax highlighting for YACC BNF files

Publications

 * M.E. Lesk; Eric Schmidt: Lex - A Lexical Analyzer Generator - Computing Science Technical Report No. 39, Bell Laboratories 1979

Links

 * The Lex & Yacc Page