summaryrefslogtreecommitdiff
path: root/lex
Commit message (Collapse)AuthorAgeFilesLines
* Typos and basic grammar error fixing (#1280)Fourchaux2017-08-101-5/+5
|
* Modify API of update.Sébastien Briais2017-02-281-4/+4
|
* Simplify code by using Map.update.Sébastien Briais2017-02-281-15/+10
|
* Cosmetic: removing spurious spaces in resulting lexerpierreweis2017-01-181-21/+22
|
* make alldependDavid Allsopp2016-12-141-10/+10
|
* fix ocamllex -ml, works with -safe-string option (#750)Hongbo Zhang2016-08-261-2/+2
|
* fix whitespace, long lines, headersDamien Doligez2016-08-011-2/+4
|
* Detect unused module declarations.alainfrisch2016-07-181-3/+0
|
* Call the '#' sign hash rather than sharp.Sébastien Hinderer2016-05-092-4/+4
|
* Pass -slash to ocamldep so that dependencies generated from a Windows system ↵alainfrisch2016-04-131-1/+1
| | | | are closer to those generated from a Unix system.
* Fix faults arising from merging Makefile{,.nt}David Allsopp2016-04-061-1/+3
| | | | Bootstrapping FlexDLL broken for lex and tools.
* lex/Makefile{,.nt}: merge.whitequark2016-03-172-68/+7
|
* More warnings for ocamllex.Alain Frisch2016-03-1510-30/+24
|
* GPR#324: Make boot/ocamlc read directly byterun/primitives (patch by ↵alainfrisch2016-03-102-2/+2
| | | | Francois Bobot).
* Update headers for the new license.Damien Doligez2016-02-1822-247/+312
| | | | Remains to be done: remove all headers in testsuite/tests.
* clean up whitespace and cut long linesDamien Doligez2016-02-171-1/+6
|
* Minor corrections to clean targetsDavid Allsopp2016-01-251-1/+1
|
* Allow compilation using bootstrapped FlexDLLDavid Allsopp2016-01-151-1/+1
| | | | | | | | | | | | | | | | | Extend the previous patch allowing make -f Makefile.nt flexdll install-flexdll not to require the install-flexdll stage. OCAML_FLEXLINK is utilised as required to allow compilation of the entire system using an in-tree compiled flexlink. The build process simply required the flexdll target to appear before world. opt.opt compiles a native code version of flexlink.exe as flexlink.opt. install always installs flexlink.exe if it was compiled along with any required .manifest files. It also installs the appropriate .o/.obj files to $(INSTALL_LIBDIR). At present, the bootstrapping is not extended to the Cygwin ports.
* GC latency improvementsDamien Doligez2015-12-211-3/+3
|
* simplify .gitignore; remove .ignore files and tools/setignore; adjust ↵Damien Doligez2015-11-061-6/+0
| | | | tools/check-typo
* Ambiguous translation of french commentsGabriel Scherer2015-10-091-1/+1
| | | | | | (user 'octachron') git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16477 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* make alldependGabriel Scherer2015-08-151-3/+3
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16352 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* update .depend and bootstrap compilers after 4.02 mergeDamien Doligez2015-07-171-3/+3
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16218 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* merge branch 4.02 from 4.02.1 (rev 15540) to a few fixes after 4.02.2 (rev ↵Damien Doligez2015-07-172-10/+15
| | | | | | 16205) git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16214 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#6526: ocamllex warning: unescaped newline in comment stringDamien Doligez2015-01-161-1/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15780 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#5887: move the byterun/*.h headers to byterun/caml/*.h to avoid header ↵Gabriel Scherer2014-12-271-3/+3
| | | | | | | | | name clashes (Jérôme Vouillon and Adrien Nader and Peter Zotov) git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15757 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* merge changes from branch 4.02 from branching (rev 14852) to 4.02.0+rc1 (rev ↵Damien Doligez2014-08-226-22/+22
| | | | | | 15121) git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15125 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* merge branch "safe-string"Damien Doligez2014-04-292-2/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14705 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* 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
* make clean: remove *.cmt and *.cmti filesDamien Doligez2014-04-071-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14543 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* ocamllex: user-definable refill actions (patch by Frédéric Bour)Gabriel Scherer2014-03-1411-65/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* use -bin-annot when buildingMark Shinwell2014-03-071-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14448 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#5598: (follow-up) handling of string constants in ocamllex should be the ↵Damien Doligez2014-01-221-5/+7
| | | | | | same as in ocamlc git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14406 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Reverting the elimination of the ocamlcomp*.sh scripts, namely the following ↵Xavier Leroy2013-11-291-3/+0
| | | | | | | | | | | | | | | | | | | | commits: 14278 14277 14276 14176 14175 14173 14172 14171 14169 14168 14167 These changes need to mature on their own branch. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14329 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* build: always build lex/ and ocamlc with the compiler from boot/.Wojciech Meyer2013-11-102-4/+4
| | | | | | | | | | | | | | | | | | | | (Patch by Adrien Nader!) This is a partial revert of revision 14168 which caused issues when bootstrapping the compiler. Since these directories don't take long to build, we can always use a byte-compiled compiler. Bootstrapping and more generally working on the compiler itself does not play nice with trying to use the most recent compiler as soon as possible: imagine you've just modified the compiler but in a way that breaks it at runtime in a non-obvious way; all the files that are subsequently built will have been built with your the compiler you will be debugging. v2: always build tools/ with boot/ocamlc since most executables link against compiler libs. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14277 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Typo (#6190).Alain Frisch2013-09-251-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14177 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* build: replace ocamlcomp*.sh.Wojciech Meyer2013-09-202-4/+7
| | | | | | | | | | | | | | | | | | This script was built from ocamlcomp.sh.in through sed and is called instead of "ocamlc" (for instance). It makes it possible to switch from "ocamlc" to "ocamlc.opt" without changing anything in the Makefiles, only calling sed. I couldn't cleanly make it handle both a compiler for the target and for the build. Instead I'm replacing it and doing as much as possible directly in the Makefiles. I hoped it would reduce the number of shell invocations, which would speed things up quite a lot on Windows but I still had to have at least one since it's not possible to update a make variable from inside a make rule: i.e. it's not possible to do X=a, build a.opt and update X to be a.opt. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14168 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Merge branch 4.01 from branching point to 4.01.0+rc1Damien Doligez2013-09-048-26/+32
| | | | | | | | 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
* PR#4243: make the Makefiles parallelizableDamien Doligez2013-07-241-4/+4
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13931 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Wrong quoting chase.Pierre Weis2013-05-291-2/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13718 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#5986: added flag Marshal.Compat_32 and ocamlc option -compat-32.Xavier Leroy2013-04-182-2/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13554 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* fix whitespace and over-long linesDamien Doligez2013-03-221-2/+4
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13432 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#5933 type-specialize 'let compare = compare' on ints and stringsGabriel Scherer2013-03-191-2/+2
| | | | | | | | | | | According to the reporter 'sliquister', type-specialized comparison can nearly halve compilation time in some cases. This patch applies type-specialization throughout the OCaml distribution sources, so not all changes will have performance utility, but in this case I think it's best to be consistent, as I see no downside to the change. git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13410 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* fix a few problems with whitespace and over-long linesDamien Doligez2013-03-097-8/+13
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13393 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* remove all $Id keywordsDamien Doligez2012-10-1518-38/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13013 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* merge changes from 4.00 branching to 4.00.0 (part 1)Damien Doligez2012-07-261-34/+34
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12784 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Enabled 'unused rec flag' warning.Alain Frisch2012-05-291-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12503 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Enable and fix more warnings.Alain Frisch2012-05-292-4/+4
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12498 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Compile with warning 33, and remove unused opens.Alain Frisch2012-05-294-4/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12497 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#5598: add backslash-space support in ocamllexDamien Doligez2012-05-021-5/+5
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12419 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02