<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE message PUBLIC
  "-//MLarc//DTD MLarc output files//EN"
  "../../mlarc.dtd"[
  <!ATTLIST message
    listname CDATA #REQUIRED
    title CDATA #REQUIRED
  >
]>

  <?xml-stylesheet href="../../mlarc.xsl" type="text/xsl"?>


<message 
  url="2006/02/6787c9b853874e45fbb79f09be87ee01"
  from="Nicolas Pouillard &lt;nicolas.pouillard@g...&gt;"
  author="Nicolas Pouillard"
  date="2006-02-17T09:57:53"
  subject="Re: [Caml-list] lexing from a sub-string with an explicit position"
  prev="2006/02/726bafa7a07b271413529afdb261744e"
  next="2006/02/cd3875acc017c9aaeafad61ed359e833"
  prev-in-thread="2006/02/5544db18a056026e7669f7788a5a9099"
  prev-thread="2006/02/031f6514d345e4af3f29d0998e9f21ea"
  next-thread="2006/02/726bafa7a07b271413529afdb261744e"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="lexing from a sub-string with an explicit position">
<msg 
  url="2006/02/5544db18a056026e7669f7788a5a9099"
  from="Basile STARYNKEVITCH &lt;basile@s...&gt;"
  author="Basile STARYNKEVITCH"
  date="2006-02-16T19:23:30"
  subject="lexing from a sub-string with an explicit position">
<msg 
  url="2006/02/6787c9b853874e45fbb79f09be87ee01"
  from="Nicolas Pouillard &lt;nicolas.pouillard@g...&gt;"
  author="Nicolas Pouillard"
  date="2006-02-17T09:57:53"
  subject="Re: [Caml-list] lexing from a sub-string with an explicit position">
</msg>
</msg>
</thread>

<contents>
On 2/16/06, Basile STARYNKEVITCH &lt;basile@starynkevitch.net&gt; wrote:
&gt;
&gt; Dear All,
Hi,

[...]

&gt;   let lxbu = Lexing.from_function stread in
&gt;     lxbu.Lexing.lex_start_p &lt;- lpos;
&gt;     lxbu.Lexing.lex_curr_p &lt;- lpos;
&gt;     lxbu
&gt; ;;

Setting these fields is alas not sufficent, add this assignment should
help (it works fine for me):

    lxbu.Lexing.lex_abs_pos &lt;- lpos.Lexing.pos_cnum;

Best regards,

--
Nicolas Pouillard
</contents>

</message>

