summaryrefslogtreecommitdiff
path: root/lex/parser.mly
Commit message (Collapse)AuthorAgeFilesLines
* Call the '#' sign hash rather than sharp.Sébastien Hinderer2016-05-091-3/+3
|
* Update headers for the new license.Damien Doligez2016-02-181-11/+14
| | | | Remains to be done: remove all headers in testsuite/tests.
* fix some of the whitespace problems in the sourceDamien Doligez2014-04-121-1/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14582 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* ocamllex: user-definable refill actions (patch by Frédéric Bour)Gabriel Scherer2014-03-141-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The patch introduces a new "refill" action. It's optional and if unused the lexer specification and behavior are unchanged. When specified, it allows the user to control the way the lexer is refilled. For example, an appropriate refill handler could perform the blocking operations of refilling under a concurrency monad such as Lwt or Async, to work better in a cooperative concurrency setting. To make use of this feature, add refill {refill_function} between the header and the first rule. [refill_function] is a function which will be invoked by the lexer immediately before refilling the buffer. The function will receive as arguments the continuation to invoke to resume the lexing, and the current lexing buffer. More precisely, it's a function of type: (Lexing.lexbuf -> 'a) -> Lexing.lexbuf -> 'a where the first argument is the continuation which captures the processing ocamllex would usually perform (refilling the buffer, then calling the lexing function again), and the result type ['a] should unify with the result types of all rules. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14461 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Merge branch 4.01 from branching point to 4.01.0+rc1Damien Doligez2013-09-041-1/+3
| | | | | | | | Command line used: svn merge --accept postpone -r 13776:14055 $REPO/version/4.01 . git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14060 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* fix a few problems with whitespace and over-long linesDamien Doligez2013-03-091-1/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13393 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* remove all $Id keywordsDamien Doligez2012-10-151-2/+0
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13013 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* renaming of Objective Caml to OCaml and cleanup of copyright headersDamien Doligez2011-07-271-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11156 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR #0004976, fixed.Luc Maranget2010-04-191-2/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10271 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* ocamllex: as bound variables with position in .mll fileLuc Maranget2007-01-291-1/+8
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7815 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#4107 better error messageDamien Doligez2006-09-121-5/+6
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7602 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* fusion 3.09.0 -> 3.09.1Damien Doligez2006-01-041-2/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7307 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* character set differenceLuc Maranget2004-04-291-1/+12
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@6269 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* suppression d'une fonction inutiliseeDamien Doligez2003-08-131-2/+0
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5775 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* bug 1554Luc Maranget2003-02-241-15/+7
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5398 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* arguments supplementaires pour les lexers ocamllexLuc Maranget2002-12-091-4/+11
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5323 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* better expansion of +Luc Maranget2002-10-291-1/+8
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5199 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* oupsLuc Maranget2002-10-291-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5195 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* nouveau ocamllexLuc Maranget2002-10-281-23/+37
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@5193 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* suppression des conflitsDamien Doligez2002-04-221-4/+3
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4714 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Généralisation de certains types afin que les fichiers cmo puissent êtreDaniel de Rauglaudre2002-01-041-1/+1
| | | | | | | | | utilisés dans l'extension de syntaxe pa_ocamllex.ml d'Alain Frisch. Ajouté syntax.ml, copie de syntax.mli, pour pa_ocamllex.ml (problème avec Dynlink, mais qui pourra être résolu un jour peut-être). git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4218 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Changement de la licenceXavier Leroy1999-11-171-1/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2553 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Generation de messages # linenoXavier Leroy1998-04-231-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1930 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Ajout des regexp nommees (let name = regexp) dans ocamllexXavier Leroy1998-04-071-6/+25
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1910 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* deTABisationDamien Doligez1997-05-191-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1563 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Fix pour que les lexeurs d'ocamllex sachent traiter le '\000'.Damien Doligez1997-04-151-7/+7
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1501 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* "|" optionnel devant la première productionDamien Doligez1996-09-051-0/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@960 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Renommage en Objective CamlXavier Leroy1996-04-301-2/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@782 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Extension objets.Jérôme Vouillon1996-04-221-3/+3
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@756 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Ajout d'un trailer dans les fichiers .mll.Xavier Leroy1995-08-251-2/+4
| | | | | | | Nettoyages. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@224 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Ajout des notices de copyrightXavier Leroy1995-08-091-0/+13
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@195 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Passage a la version bootstrappee (franchissement du Rubicon)Xavier Leroy1995-05-041-0/+120
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@2 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02