tclex - A lexical analyzer generator for Tcl

Property Value
Distribution Debian 7 (Wheezy)
Repository Debian Main i386
Package name tclex
Package version 1.2a1
Package release 15
Package architecture i386
Package type deb
Installed size 212 B
Download size 46.26 KB
Official Mirror
tcLex is a lexer (lexical analyzer) generator extension to Tcl. It is
inspired by Unix and GNU lex and flex, which are "tools for
generating programs that perform pattern-matching on text". tcLex is
very similar to these programs, except it uses Tcl philosophy and
syntax, whereas the others use their own syntax and are used in
conjunction with the C language. People used to lex or flex should
then feel familiar with tcLex. tcLex is a small extension (the
Windows compiled version is about 20kb, and the source is about
150kb), because it extensively uses the Tcl library. However, the
current doesn't use Tcl's regexp code anymore but a patched version
is now included in tcLex, which makes it slightly bigger (by a few
KB). tcLex should work with Tcl 8.0 and later.  tcLex will NEVER work
with earlier versions, because it uses Tcl 8.0's "object" system for
performance. The most interesting features are:
* cross-platform support, thanks to Tcl. Though it has been
developed on Windows and tested on Windows and Unix only, it
should work on other platforms as long as Tcl exists on these
platforms. Supported Tcl platforms are Windows 95/NT, Unix (Linux,
Solaris...) and Macintosh. Other platforms are VMS, OS/2,
NeXTStep, Amiga...
* unlike lex and flex, which only generate static lexers written in
C and intended to be compiled, tcLex dynamically generates Tcl
commands that can be used like other C commands or Tcl procedures
from within Tcl scripts or C programs.
* it uses Tcl regular expressions. That means you don't have to
learn another regexp language.
* it works with Tcl namespaces
* the generated lexer commands can be used in one pass or
incrementally, because they maintain state information. That way,
several instances of the same lexer (eg a HTML parser) can run at
the same time in distinct call frames and maintain distinct states
(local variables...). Lexer need not be specially designed in
order to be used incrementally, the same lexer can transparently
be used in one pass or incrementally. This feature is especially
useful when processing text from a file or an Internet socket (Web
pages for example), when data is not necessarily available at the
beginning of the processing.


Package Version Architecture Repository
tclex_1.2a1-15_amd64.deb 1.2a1 amd64 Debian Main
tclex - - -


Name Value
libc6 >= 2.7-1
tcl >= 8.4.16-1
tclsh -


Type URL
Binary Package tclex_1.2a1-15_i386.deb
Source Package tclex

Install Howto

  1. Update the package index:
    # sudo apt-get update
  2. Install tclex deb package:
    # sudo apt-get install tclex



See Also

Package Description
tclgeoip_0.2-1_i386.deb Tcl extension implementing GeoIP lookup functions
tcllib_1.14-dfsg-3+deb7u1_all.deb Standard Tcl Library
tclodbc_2.5.1-1.1_i386.deb The ODBC extension to Tcl
tclthread_2.6.7-1_i386.deb Tcl extension implementing script level access to Tcl threading capabilities
tclx8.4-dev_8.4.0-3_i386.deb Extended Tcl (TclX) - development package
tclx8.4-doc_8.4.0-3_all.deb Extended Tcl (TclX) - manpages
tclx8.4_8.4.0-3_i386.deb Extended Tcl (TclX) - shared library
tclxapian_1.2.12-2_i386.deb Xapian search engine interface for Tcl
tclxml-dev_3.3~svn11-2_i386.deb Tcl library for XML parsing - development files
tclxml_3.3~svn11-2_i386.deb Tcl library for XML parsing
tcm-doc_2.20+TSQD-4.2_all.deb Documentation for Toolkit for Conceptual Modeling (TCM)
tcm_2.20+TSQD-4.2_i386.deb Toolkit for Conceptual Modeling (TCM)
tcng_10b-4_i386.deb Linux traffic control language interpreter
tcpd_7.6.q-24_i386.deb Wietse Venema's TCP wrapper utilities
tcpdump_4.3.0-1+deb7u2_i386.deb command-line network traffic analyzer