Commit Graph

23 Commits (master)

Author SHA1 Message Date
Andreas Abel 0d97917cd2 Make sure ocamlyacc can handle 255 entry points (#9210)
The previous promised limit of ocamlyacc was 256 entry points, but
on some platforms (x86 at least) the actual limit was 127 due to representation of 
bucket->entry as char.  Switching to unsigned char extends the limit to 255.

I introduced a constant MAX_ENTRY_POINT as a synonym of MAXCHAR to
handle checks against the limit consistently over the different modules
of ocamlyacc.

Extensions beyond 255 entry points would require a bit more work (which
looks unrewarding) since entry points are currently identified by a single byte
at the beginning of the input stream.

Fixes: #9207
2019-12-26 11:02:13 +01:00
David Allsopp 7f96c82fda Windows Unicode handling for ocamlyacc
This deals with the command line processing only (i.e. filenames) -
ocamlyacc continues to process .mly files as before.
2019-04-16 17:37:17 +01:00
Demi Obenour ebe9f33f83 Delete code that isn't useful for ocamlyacc
It was left from the conversion of Berkely Yacc to ocamlyacc
2017-05-17 09:48:41 +01:00
Jeremy Yallop 27346ebcd4 Rename ocamlyacc's -e option --strict. 2016-06-22 09:03:29 +01:00
Jeremy Yallop 54065bb1d0 Add an -e option to ocamlyacc to reject grammars with conflicts. 2016-05-31 20:45:06 +01:00
Damien Doligez 5401ce8473 Update headers for the new license.
Remains to be done: remove all headers in testsuite/tests.
2016-02-18 16:59:16 +01:00
Damien Doligez def31744f9 remove all $Id keywords
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13013 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2012-10-15 17:50:56 +00:00
Damien Doligez 3b507dd1aa renaming of Objective Caml to OCaml and cleanup of copyright headers
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11156 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2011-07-27 14:17:02 +00:00
Damien Doligez 483c870306 PR#3238 (partiel)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6654 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-11-02 10:48:14 +00:00
Damien Doligez e09cc4affa PR#3048
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6580 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-08-10 13:00:55 +00:00
Xavier Leroy dbc670d5f0 L'argument de isdigit, etc, doit etre unsigned (PR#2514)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6390 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-06-12 11:59:11 +00:00
Damien Doligez 7405556404 directives #line pour lex et yacc
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6244 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2004-04-21 23:26:06 +00:00
Xavier Leroy 7617bb244a Rejeter les points d'entree ayant un type polymorphe (PR#1583)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5709 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2003-07-17 14:51:43 +00:00
Damien Doligez 2570312432 PR#63
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5245 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2002-11-05 16:33:46 +00:00
Damien Doligez fc53c99cda detabisation
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@3573 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
2001-07-12 12:54:24 +00:00
Xavier Leroy cc0f32b054 Changement de la licence
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2553 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1999-11-17 18:59:06 +00:00
Xavier Leroy 1517cea772 Sources C convertis en ANSI C
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1696 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1997-09-02 12:55:01 +00:00
Xavier Leroy 2301d778e7 Renommage en Objective Caml
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@782 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1996-04-30 14:53:58 +00:00
Xavier Leroy 89055b054e Rendons a Cesar...
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@196 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1995-08-09 15:25:52 +00:00
Xavier Leroy e4066357b1 Ajout des notices de copyright
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@195 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1995-08-09 15:06:35 +00:00
Xavier Leroy 260bb413e9 Nettoyages pour supprimer bien des warnings
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@186 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1995-08-08 16:44:29 +00:00
Xavier Leroy 414572e80b MAJ par-rapport a Caml Light 0.7
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@182 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1995-08-08 13:37:34 +00:00
Xavier Leroy 61bd8ace6b Passage a la version bootstrappee (franchissement du Rubicon)
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
1995-05-04 10:15:53 +00:00