<?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="2003/10/83b1785c43d9239196a8487692d809eb"
  from="Flavio Leonardo Cavalcanti de Moura &lt;flavio@m...&gt;"
  author="Flavio Leonardo Cavalcanti de Moura"
  date="2003-10-18T20:32:34"
  subject="[Caml-list] parser error"
  prev="2003/10/17bc62c90007181f0de2c5f10ef09f44"
  next="2003/10/94a787183359fe35a487ba3d1435a721"
  next-in-thread="2003/10/94a787183359fe35a487ba3d1435a721"
  prev-thread="2003/10/17bc62c90007181f0de2c5f10ef09f44"
  next-thread="2003/10/4fed50fb9f079a7d03f8390d9ea6a433"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="[Caml-list] parser error">
<msg 
  url="2003/10/83b1785c43d9239196a8487692d809eb"
  from="Flavio Leonardo Cavalcanti de Moura &lt;flavio@m...&gt;"
  author="Flavio Leonardo Cavalcanti de Moura"
  date="2003-10-18T20:32:34"
  subject="[Caml-list] parser error">
<msg 
  url="2003/10/94a787183359fe35a487ba3d1435a721"
  from="Damien Doligez &lt;damien.doligez@i...&gt;"
  author="Damien Doligez"
  date="2003-10-18T21:56:27"
  subject="Re: [Caml-list] parser error">
<msg 
  url="2003/10/302fec9c1dd4b0d9e7a2e0ee7d9b2884"
  from="Dmitry Bely &lt;dbely@m...&gt;"
  author="Dmitry Bely"
  date="2003-10-20T10:46:53"
  subject="Re: [Caml-list] parser error">
<msg 
  url="2003/10/2ecf37c451f6df36c8d717bac2497d6a"
  from="Sven Luther &lt;sven.luther@w...&gt;"
  author="Sven Luther"
  date="2003-10-20T11:03:00"
  subject="Re: [Caml-list] parser error">
</msg>
</msg>
</msg>
</msg>
</thread>

<contents>
I wrote a parser originally in ocaml 3.02 and it works well. It was a
suprise for me to receive an error message when I tryed to compile it in
ocaml 3.07. The error message I receive is:

File "selexerlse.ml", line 21, characters 6-8:
Syntax error
File "selexerls.ml", line 27, characters 6-8:
Syntax error
File "selexersus.ml", line 74, characters 6-8:
Syntax error
File "subsexpl.ml", line 129, characters 45-47:
Warning: Illegal backslash escape in string
make: ** [depend] Erro 2

The error occurs exactly at the same string in three files (selexerlse.ml,
selexerls.ml and selexersus.ml) above. It in
the first occurrence of [&lt; in the code below:

let rec  parse_expr1 = parser
      [&lt; 'Ident s &gt;] -&gt; (Vr s)
    | [&lt; 'Int 1 &gt;] -&gt; (One)
    | [&lt; 'Int n &gt;] -&gt; (convertN(n))
    | [&lt; 'Kwd "A";  'Kwd "("; e1 = parse_expr1; 'Kwd ","; e2 =
parse_expr1; 'Kwd ")" &gt;] -&gt; A(e1,e2)
    | [&lt; 'Kwd "L"; 'Kwd "("; e1 = parse_expr1;  'Kwd ")" &gt;] -&gt; L(e1)
    | [&lt; 'Kwd "Sb"; 'Kwd "("; e1 = parse_expr1 ;  'Kwd ","; sb =
parse_subs; 'Kwd ")" &gt;] -&gt; Sb(e1,sb)
and
parse_subs = parser
  [&lt; 'Kwd "Id" &gt;] -&gt; (Id)
| [&lt; 'Kwd "Up" &gt;] -&gt; (Up)
| [&lt; 'Kwd "Pt"; 'Kwd "("; e1 = parse_expr1 ;  'Kwd ","; sb = parse_subs;
'Kwd ")" &gt;] -&gt; Pt(e1,sb)
| [&lt; 'Kwd "Cp"; 'Kwd "("; s1 = parse_subs ;  'Kwd ","; s2 = parse_subs ;
'Kwd ")" &gt;] -&gt; Cp(s1,s2)
 ;;

Does anyone know what is the problem?

Best Regards,

  	Flávio Leonardo Cavalcanti de Moura
   		flavio@mat.unb.br      ^v^
	     www.mat.unb.br/~flavio   /(_)\
                 Use GNU/Linux!        ^ ^

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners

</contents>

</message>

