From 298ff42f5f80a603306a007540d1c75a013bcf81 Mon Sep 17 00:00:00 2001 From: Hans Bolinder Date: Mon, 2 Sep 2013 15:07:52 +0200 Subject: Fix a Unicode filename bug affecting Leex and Yecc A bug where Unicode filenames combined with Latin-1 encoding could crash Yecc and Leex has been fixed. --- lib/parsetools/doc/src/leex.xml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'lib/parsetools/doc/src') diff --git a/lib/parsetools/doc/src/leex.xml b/lib/parsetools/doc/src/leex.xml index d5c24c303d..b4e2af6857 100644 --- a/lib/parsetools/doc/src/leex.xml +++ b/lib/parsetools/doc/src/leex.xml @@ -4,7 +4,7 @@
- 20092011 + 20092013 Ericsson AB. All Rights Reserved. @@ -38,19 +38,21 @@ Token = tuple() - file(FileName) -> ok | error - file(FileName, Options) -> ok | error + file(FileName, [, Options]) -> LeexRet Generate a lexical analyzer FileName = filename() Options = Option | [Option] Option = - see below - - FileReturn = {ok, Scannerfile} - | {ok, Scannerfile, Warnings} - | error - | {error, Warnings, Errors} + LeexRet = {ok, Scannerfile} + | {ok, Scannerfile, Warnings} + | error + | {error, Warnings, Errors} Scannerfile = filename() Warnings = Errors = [{filename(), [ErrorInfo]}] + ErrorInfo = {ErrorLine, module(), Reason} + ErrorLine = integer() + Reason = - formatable by format_error/1 -

Generates a lexical analyzer from the definition in the input -- cgit v1.2.3