<?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="2005/05/1d9ec1b1385ff9e7fb265275c209bcd6"
  from="Alex Baretta &lt;alex@b...&gt;"
  author="Alex Baretta"
  date="2005-05-27T09:02:54"
  subject="Re: [Caml-list] Limitations on $n in ocamlyacc?"
  prev="2005/05/9c8744a0f1459ca572a789671f250752"
  next="2005/05/914619567bc8ad4d6f0aea607a19afb2"
  prev-in-thread="2005/05/9c8744a0f1459ca572a789671f250752"
  next-in-thread="2005/05/22765a7e8cfebbfa69bc0fc8128b8eee"
  prev-thread="2005/05/b111d712efd43c4ff0ff229a8cb48558"
  next-thread="2005/05/914619567bc8ad4d6f0aea607a19afb2"
  root="../../"
  period="month"
  listname="caml-list"
  title="Archives of the Caml mailing list">

<thread subject="Limitations on $n in ocamlyacc?">
<msg 
  url="2005/05/9c8744a0f1459ca572a789671f250752"
  from="Alex Baretta &lt;alex@b...&gt;"
  author="Alex Baretta"
  date="2005-05-27T08:24:26"
  subject="Limitations on $n in ocamlyacc?">
<msg 
  url="2005/05/1d9ec1b1385ff9e7fb265275c209bcd6"
  from="Alex Baretta &lt;alex@b...&gt;"
  author="Alex Baretta"
  date="2005-05-27T09:02:54"
  subject="Re: [Caml-list] Limitations on $n in ocamlyacc?">
</msg>
<msg 
  url="2005/05/22765a7e8cfebbfa69bc0fc8128b8eee"
  from="John Skaller &lt;skaller@u...&gt;"
  author="John Skaller"
  date="2005-05-27T12:28:37"
  subject="Re: [Caml-list] Limitations on $n in ocamlyacc?">
</msg>
</msg>
</thread>

<contents>
Alex Baretta wrote:
&gt; What is the limit on the number of token values accessible with the $n
&gt; notation in ocamlyacc semantic actions? I'm asking because I'm
&gt; consistently getting ocamlyacc errors like the following, which I can't
&gt; make sense of.
&gt; 
&gt; ocamlyacc: e - line 96 of "xcaml_dictionary_yacc.mly", $5 is unbound

The obvious answer is...
... PEBKAC!

The was one unterminated semantic actions tens of lines above the spot
where the ocamlyacc was unable to proceed. Casually, the syntax
production contained 4 symbols; hence, the unbound $5...

Alex



-- 
*********************************************************************
http://www.barettadeit.com/
Baretta DE&amp;IT
A division of Baretta SRL

tel. +39 02 370 111 55
fax. +39 02 370 111 54

Our technology:

The Application System/Xcaml (AS/Xcaml)
&lt;http://www.asxcaml.org/&gt;

The FreerP Project
&lt;http://www.freerp.org/&gt;

</contents>

</message>

