From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p04DfW09029728 for ; Tue, 4 Jan 2011 14:41:32 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuIAAMOxIk3RVdi2kGdsb2JhbACkLwgVAQEBAQkJDAcRBCCiaYl3ghiFEi6GTgEBAwWFRQSLBw X-IronPort-AV: E=Sophos;i="4.60,272,1291590000"; d="scan'208";a="85260233" Received: from mail-qy0-f182.google.com ([209.85.216.182]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/RC4-MD5; 04 Jan 2011 14:41:26 +0100 Received: by qyk36 with SMTP id 36so14183339qyk.6 for ; Tue, 04 Jan 2011 05:41:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:from:date :message-id:subject:to:content-type; bh=yrP0Chob7oHEI/hpJP8KdD8/fsn9Q5FbRahw+ScnM48=; b=SJKLowoqnmPhTh97vnl6pUpY9hTExIe5jCIXnf9MBABOAYpCZYqmpX2hzSrxlNYm0F wD2cf5ydP2VcjR7r83IYJMHxwf0Boq+0Zwn6lCtDGukHQqeM2z8AcXoT2xcYyTBp4L8T 1m6xPP0MaeQgG8xxPF/uvIn/eCuXoVAyq01l0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=FmDfeLL4RFrOpicXxPozvQnc2tRpJG7x25D72cOgbHtJ+afjyam6zoHzYOet6AuEOh mXvIHV7mAQ04fYsWyKFqOHKS3DQ6LIVw2gzmwpg7jpBYJF1NozAjNDM0AxRMGrCHXHXb kk4BT8AGrPujjnMwAWaml3RGzxp4OEEvwm7F0= Received: by 10.229.236.193 with SMTP id kl1mr20055171qcb.114.1294148485729; Tue, 04 Jan 2011 05:41:25 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.98.203 with HTTP; Tue, 4 Jan 2011 05:41:05 -0800 (PST) From: Jean Krivine Date: Tue, 4 Jan 2011 14:41:05 +0100 Message-ID: To: caml users Content-Type: multipart/alternative; boundary=0016e64ca45ac74dfa0499056c8a Subject: [Caml-list] Array.make exception and parser --0016e64ca45ac74dfa0499056c8a Content-Type: text/plain; charset=ISO-8859-1 Hi all, I am encountering a weird problem, I am trying to parse a very large file (around 1.2 GB) according to a grammar defined in ocamlyacc. During the parsing I get the exception Invalid_argument "Array.make". This is strange because I am not using any array. My guess it that a big chunk of the file I am parsing is matching a non terminal, something like rule: non_term END {blah}; where non_term is going to be 1GB of characters. Does anyone know what could be raising the exception ? Thanks! J --0016e64ca45ac74dfa0499056c8a Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi all,

I am encountering a weird problem, I am trying to parse a ve= ry large file (around 1.2 GB) according to a grammar defined in ocamlyacc.<= br>During the parsing I get the exception=A0

Invalid_argument "= ;Array.make".

This=A0 is strange because I am not using any array.
My guess it th= at a big chunk of the file I am parsing is matching a non terminal, somethi= ng like

rule:
non_term END {blah};

where non_term is=A0 go= ing to be 1GB of characters. Does anyone know what could be raising the exc= eption ?

Thanks!
J
--0016e64ca45ac74dfa0499056c8a--