Aflex the Ada fast lexical analyser generator
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
debian
doc
src
.gitignore
LICENSE
Makefile
PORTING
README-UCI
README.md
RELEASE.NOTES
aflex.gpr
config.gpr

README.md

Aflex

Build Status License

Aflex is a lexical analyzer generating tool similar to the Unix tool lex.

The first implementation was written by John Self of the Arcadia project at the University of California, Irvine. The last version that was released appeared to be the aflex 1.4a released in 1994.

Aflex was used and improved by P2Ada, the Pascal to Ada translator. This version of Aflex is derived from the P2Ada aflex implementation released in August 2010.

This version brings a number of improvements:

  • Aflex generates the spec and body files as separate files so that there is no need to use gnatchop to split the DFA and IO files.
  • Aflex uses the lex file name to generate the package name and it supports child package.

NEWS

  • Aflex now supports the %option definition in lex files to control the scanner. The following keywords are recognized: case-insensitive, casefull, case-insensitive, caseless, debug, interactive, full.

Build

  make

Install

  make install prefix=/usr

Example

  aflex doc/example.l
  gnatmake example