How to Install and Uninstall tcl-tclex Package on Ubuntu 20.10 (Groovy Gorilla)

Last updated: November 22,2024

1. Install "tcl-tclex" package

Learn how to install tcl-tclex on Ubuntu 20.10 (Groovy Gorilla)

$ sudo apt update $ sudo apt install tcl-tclex

2. Uninstall "tcl-tclex" package

In this section, we are going to explain the necessary steps to uninstall tcl-tclex on Ubuntu 20.10 (Groovy Gorilla):

$ sudo apt remove tcl-tclex $ sudo apt autoclean && sudo apt autoremove

3. Information about the tcl-tclex package on Ubuntu 20.10 (Groovy Gorilla)

Package: tcl-tclex
Architecture: amd64
Version: 1.2a1-17
Priority: extra
Section: universe/interpreters
Source: tclex
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian Tcl/Tk Packagers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 165
Provides: tclex
Depends: libc6 (>= 2.4), tcl (>= 8.6.0-2)
Conflicts: tclex
Replaces: tclex
Filename: pool/universe/t/tclex/tcl-tclex_1.2a1-17_amd64.deb
Size: 45468
MD5sum: 0e66338305fc559b7b5302ecebd5a273
SHA1: 46e8d9a41039db2b802978758944de236bf0469c
SHA256: e8d2d0797c356162068fcf17759d5bf5e0a5e8b51c200ef6f8526715f6e4e5d1
SHA512: a0ea24b71090b5a3f93fe04bb7820575ffc70158480dadffb2fa9b58b37e367e3a042517ed1aca7802db3dd4da6164f92403d4737d3d2efda9167d5cc2d0d3b7
Description-en: Lexical analyzer generator for Tcl
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.
Description-md5: 1595342439446f3172d3be55181a741f