aboutsummaryrefslogtreecommitdiffstats
path: root/lib/parsetools/doc/src
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2013-09-02 15:07:52 +0200
committerHans Bolinder <[email protected]>2013-09-02 15:07:52 +0200
commit298ff42f5f80a603306a007540d1c75a013bcf81 (patch)
treeeee70c5aad3d25402fb54abfc6748d687fa0f593 /lib/parsetools/doc/src
parentb1b6087d7f52b4ac88c90b52be7b66f0e894e565 (diff)
downloadotp-298ff42f5f80a603306a007540d1c75a013bcf81.tar.gz
otp-298ff42f5f80a603306a007540d1c75a013bcf81.tar.bz2
otp-298ff42f5f80a603306a007540d1c75a013bcf81.zip
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.
Diffstat (limited to 'lib/parsetools/doc/src')
-rw-r--r--lib/parsetools/doc/src/leex.xml16
1 files changed, 9 insertions, 7 deletions
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 @@
<erlref>
<header>
<copyright>
- <year>2009</year><year>2011</year>
+ <year>2009</year><year>2013</year>
<holder>Ericsson AB. All Rights Reserved.</holder>
</copyright>
<legalnotice>
@@ -38,19 +38,21 @@ Token = tuple()</code>
</section>
<funcs>
<func>
- <name>file(FileName) -> ok | error</name>
- <name>file(FileName, Options) -> ok | error</name>
+ <name>file(FileName, [, Options]) -> LeexRet</name>
<fsummary>Generate a lexical analyzer</fsummary>
<type>
<v>FileName = filename()</v>
<v>Options = Option | [Option]</v>
<v>Option =&nbsp;-&nbsp;see below&nbsp;-</v>
- <v>FileReturn = {ok, Scannerfile}
- | {ok, Scannerfile, Warnings}
- | error
- | {error, Warnings, Errors}</v>
+ <v>LeexRet = {ok, Scannerfile}
+ | {ok, Scannerfile, Warnings}
+ | error
+ | {error, Warnings, Errors}</v>
<v>Scannerfile = filename()</v>
<v>Warnings = Errors = [{filename(), [ErrorInfo]}]</v>
+ <v>ErrorInfo = {ErrorLine, module(), Reason}</v>
+ <v>ErrorLine = integer()</v>
+ <v>Reason =&nbsp;-&nbsp;formatable by format_error/1&nbsp;-</v>
</type>
<desc>
<p>Generates a lexical analyzer from the definition in the input