~ubuntu-branches/ubuntu/hardy/ocaml-doc/hardy

« back to all changes in this revision

Viewing changes to ocaml.html/libref/Lexing.html

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Mimram
  • Date: 2007-09-08 01:49:22 UTC
  • mfrom: (0.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070908014922-lvihyehz0ndq7suu
Tags: 3.10-1
* New upstream release.
* Removed camlp4 documentation since it is not up-to-date.
* Updated to standards version 3.7.2, no changes needed.
* Updated my email address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
1
2
<html>
2
3
<head>
3
4
<link rel="stylesheet" href="style.css" type="text/css">
 
5
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
4
6
<link rel="Start" href="index.html">
5
7
<link rel="previous" href="Lazy.html">
6
8
<link rel="next" href="List.html">
66
68
<link title="Sys" rel="Chapter" href="Sys.html">
67
69
<link title="Thread" rel="Chapter" href="Thread.html">
68
70
<link title="ThreadUnix" rel="Chapter" href="ThreadUnix.html">
 
71
<link title="Tk" rel="Chapter" href="Tk.html">
69
72
<link title="Unix" rel="Chapter" href="Unix.html">
70
73
<link title="UnixLabels" rel="Chapter" href="UnixLabels.html">
71
74
<link title="Weak" rel="Chapter" href="Weak.html"><link title="Positions" rel="Section" href="#6_Positions">
123
126
   <code class="code">pos_bol</code> is the offset of the beginning of the line (number
124
127
   of characters between the beginning of the file and the beginning
125
128
   of the line); <code class="code">pos_cnum</code> is the offset of the position (number of
126
 
   characters between the beginning of the file and the position).<br>
 
129
   characters between the beginning of the file and the position).
 
130
<p>
 
131
 
 
132
   See the documentation of type <code class="code">lexbuf</code> for information about
 
133
   how the lexing engine will manage positions.<br>
127
134
</div>
128
135
 
129
136
<pre><span class="keyword">val</span> <a name="VALdummy_pos"></a>dummy_pos : <code class="type"><a href="Lexing.html#TYPEposition">position</a></code></pre><div class="info">
227
234
   a function to refill the buffer from the input.
228
235
<p>
229
236
 
230
 
   Note that the lexing engine will only manage the <code class="code">pos_cnum</code> field
 
237
   Note that the lexing engine will only change the <code class="code">pos_cnum</code> field
231
238
   of <code class="code">lex_curr_p</code> by updating it with the number of characters read
232
 
   since the start of the <code class="code">lexbuf</code>.  For the other fields to be
 
239
   since the start of the <code class="code">lexbuf</code>.  The other fields are copied
 
240
   without change by the lexing engine.  In order to keep them
233
241
   accurate, they must be initialised before the first use of the
234
 
   lexbuf, and updated by the lexer actions.<br>
 
242
   lexbuf, and updated by the relevant lexer actions (i.e. at each
 
243
   end of line).<br>
235
244
</div>
236
245
 
237
246
<pre><span class="keyword">val</span> <a name="VALfrom_channel"></a>from_channel : <code class="type"><a href="Pervasives.html#TYPEin_channel">in_channel</a> -> <a href="Lexing.html#TYPElexbuf">lexbuf</a></code></pre><div class="info">