leex

leex

Module

leex

Module summary

Lexical analyzer generator for Erlang

Description

A regular expression based lexical analyzer generator for Erlang, similar to lex or flex.

Note

The Leex module should be considered experimental as it will be subject to changes in future releases.

Data types

ErrorInfo = {ErrorLine,module(),error_descriptor()}
ErrorLine = integer()
Token = tuple()

Exports

file(FileName, [, Options]) -> LeexRet

Types:

FileName = filename()
Options = Option | [Option]
Option = - see below -
LeexRet = {ok, Scannerfile} | {ok, Scannerfile, Warnings} | error | {error, Errors, Warnings}
Scannerfile = filename()
Warnings = Errors = [{filename(), [ErrorInfo]}]
Err