---
name: "lexi"
section: "1"
platform: "linux"
package: "tendra"
version: "4.1.2-19"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/lexi"
---

# lexi(1)

lexical analyser tool

## NAME

lexi - lexical analyser tool

## SYNOPSIS

**lexi** \[ *options* \] *input-file* \[ *output-file* \]

## DESCRIPTION

**lexi** translates a description of a lexical analyser, *input-file*, into code implementing that analyser.  This is output into the *output-file* argument, if present, or the standard output otherwise.

## OPTIONS

- **-k**

  Causes **lexi** to generate code describing any keywords specified in the input.

- **-l***string*

  Causes **lexi** to use *string* as a prefix for its generated lexical tokens.  The default is *lex\_*.

- **-v**

  Causes **lexi** print its version number.

## SEE ALSO

[*tcc*(1)](/tcc/1.md).
