summaryrefslogtreecommitdiff
path: root/lex
Commit message (Collapse)AuthorAgeFilesLines
* ocamllex: Accept line directives ended with CR/LF. (#12146) (#12147)SeungCheol Jung2023-04-261-1/+1
|
* Revert "Use ocamlyacc's support for OCaml-style comments"Antonin Décimo2023-03-311-21/+21
| | | | | | | | | | | | | | | | | | | | | This reverts commit 514a830eae3991aec12146d3f6aeff3aa2d8406a. > The dune build system for the OCaml compiler is morally a hack, it > uses the tools from the ambient opam switch to build the compiler > codebase -- which can break whenever the compiler distribution has > more recent tools than the opam switch, and uses the more recent > features in its own codebase. > This is what is going on here: @DemiMarie introduced a new ocamlyacc > feature, and also started using it in the compiler codebase in the > non-essential commit 514a830. If we want dune to work well, a > reasonable solution is to revert 514a830 for now, and wait until the > next OCaml version is released (with the new ocamlyacc feature) to > merge it again. At this point the dune build will be possible with > the most recent OCaml release as your opam switch. from Gabriel Scherer, https://github.com/ocaml/ocaml/pull/11718#issuecomment-1475338016
* Use ocamlyacc's support for OCaml-style commentsDemi Marie Obenour2023-02-271-21/+21
| | | | | | Now that it exists, use it. Reviewd by Damien Doligez.
* ocamllex: better support for union of character sets (#11166)Nicolás Ojeda Bär2022-09-271-1/+2
|
* Merge lex/Makefile into the root MakefileSébastien Hinderer2022-08-252-206/+0
|
* lex/Makefile: rename variables, make them more symmetricSébastien Hinderer2022-08-251-7/+8
|
* lex/Makefile: use same flags than in the root MakefileSébastien Hinderer2022-08-251-2/+2
| | | | | | | | | The changes are: - The -principal flag has been added - Warning 41 is enabled and causes no error The files compiled from the root Makefile have more warnings disabled than those compiled with lex/Makefile but this is not a problem.
* Pass the same flags to ocamlyacc consistentlySébastien Hinderer2022-08-251-2/+0
| | | | | | | Make sure ocamlyacc is always called with -v and --strict. Before this commit, the parsers of the debugger and of ocamltest were not generated using these options.
* Cleanup the build of lex/ocamllex (remove superfluous -strict-sequence flag)Sébastien Hinderer2022-08-251-1/+1
| | | | | When building the bytecode version of ocamllex, the -strict-sequence flag was passed twice. This commit removes one of its occurrences.
* Report warning 70 about missing interfaces as an errorSébastien Hinderer2022-06-301-1/+1
|
* Add a .mli file for ocamllex's main moduleSébastien Hinderer2022-06-302-2/+24
|
* Enable warning 70 about missing interfacesSébastien Hinderer2022-06-301-1/+1
| | | | | | | But make sure not to turn it into an error, so that all the warnings get printed. It will be turned into an error once all the interfaces have been added.
* Followup on #11147Sébastien Hinderer2022-03-311-1/+1
| | | | | Thhis commit contains changes initially part of PR #11147 but which were pushed after the PR had been merged.
* Build system: ocaml{doc,lex} should be compiled and linked with -gSébastien Hinderer2022-03-311-3/+3
|
* Factorize the definition of the standard library flagsSébastien Hinderer2022-03-311-3/+3
|
* Build system: also factorize the inclusion of directories when calling ocamldepSébastien Hinderer2022-03-221-2/+1
|
* Build system: factorize the definitions related to ocamldepSébastien Hinderer2022-03-221-7/+7
|
* Build system: normalize the invocations of ocamldepSébastien Hinderer2022-03-221-3/+4
|
* Remove uses of ;; from the codebaseSébastien Hinderer2022-02-255-16/+8
|
* Printexc.catch, Printf.kprintf, Unix.SO_ERROR: add deprecation warning (#10924)Nicolás Ojeda Bär2022-01-211-1/+1
|
* Add the distclean target to lex/MakefileSébastien Hinderer2022-01-181-0/+3
|
* Add {Int,Int32,Int64,NativeInt}.{min,max} (#10392)Alain Frisch2021-05-113-4/+4
|
* Build system: rename the CAMLRUN variable to OCAMLRUNSébastien Hinderer2021-04-271-1/+1
| | | | | | Since ocamldoc/Makefile.best_ocamldoc was already using OCAMLRUN (rather than CAMLRUN), it was possible to remove its definition in that file, because the value is now initialised globally in Makefile.common.
* Build system: replace suffix rules by pattern rulesSébastien Hinderer2021-04-271-6/+3
|
* Build system: provide a default value for OCAMLLEXSébastien Hinderer2021-04-141-1/+5
| | | | Each directory can override this default value.
* added warning for missing mli interface fileAnukriti122021-03-311-1/+1
|
* Remove unused labelsLeo White2021-03-221-1/+8
|
* stop using single letter in warning settingsoctachron2021-03-151-1/+1
| | | | | | - Replace -w A with -w +A in various makefiles and tests. - Replace -w a with -w -a in tests. - Replace -w Ae with -w +A -w -fragile-matching
* Build system: deduplicate the rules used to generate the lexers and parsersSébastien Hinderer2021-03-021-8/+0
|
* {debugger,lex}/Makefile: make it possible to override lexer andparser generatorSébastien Hinderer2021-03-021-6/+8
| | | | Also use generic (pattern) build rules
* Build system: rename the OCAMLLEX_FLAGS to OCAMLLEXFLAGSSébastien Hinderer2021-03-021-1/+1
|
* Get rid of the YACCFLAGS build variableSébastien Hinderer2020-08-051-2/+1
| | | | | It was not used, except in lex/Makefile where this commit replaces its unique occurrence by its definition in the same file.
* Add the $(EXE) suffix to all programs at build rather than install timeSébastien Hinderer2020-06-181-5/+9
| | | | | | | | This commit touches neither boot/ocamlc nor boot/ocamllex It has the side-effect of fixing the cleanup rules which did not use the $(EXE) extension when removing a file although it was produced with the $(EXE) extension.
* lex/Makefile: simplificationSébastien Hinderer2020-06-181-2/+2
|
* makefiles: move the inclusion of Makefile.build_config in Makefile.commonGabriel Scherer2020-05-061-1/+0
|
* Introduce Makefile.build_config.inDavid Allsopp2020-04-171-2/+2
| | | | | | | | | | | | This moves the configure-generated parts of Makefile.common to a separate (generated) Makefile, allowing Makefile.common to be a normal Makefile. OCaml's build system Makefile's now include Makefile.build_config (which itself includes Makefile.config) but Makefile.config is still installed as before. This allows configure to generate variables which are specific to the build process and are not intended to be exported to the installation.
* Ensure make distclean works on an unconfigured treeDavid Allsopp2019-10-151-1/+1
|
* Allow make to be invoked before configureDavid Allsopp2018-12-041-2/+2
| | | | | This should be improved to give better warnings for when Makefile.config and Makefile.common are required.
* Quoted extensions in comments, ocamllex and ocamlyacc (#9166)Pieter Goetschalckx2020-02-031-6/+11
| | | | | | | * Support quoted extensions in comments * Support quoted extensions in ocamllex * Support quoted extensions in ocamlyacc * Fix copying of comments in ocamlyacc
* Build system: make ocamllex silent by default (#8664)Sébastien Hinderer2019-05-071-1/+1
| | | | | | | | | | | | | | | | This commit makes e.g. make -s world.opt completely silent when everything works, in order to increase the visibility of any unexpected message occurring during the build. This will be useful for instance during CI, in particular it should make it easier to catch undefined build variables. The implementation is straightforward. The OCAMLLEX_FLAGS variable is defined in Makefile.common.in and then used consistently by all lexing recipes. In addition, in tools/Makefile, the two rules producing the lexers from cvt_emit.mll and make_opcodes.mll have been replaced by a pattern-rule and the useless .SUFFIXES target has been removed.
* Remove undefined and useless variable $(INCLUDES)Xavier Leroy2019-05-021-1/+1
| | | | As found by make --warn-undefined-variables
* make clean: do not remove emacs backupsNicolás Ojeda Bär2019-04-101-1/+1
|
* Use boot/ocamlc.opt for building, if available.Stephen Dolan2019-03-201-3/+2
|
* Build system: use ocamlc -depend rather than ocamldepSébastien Hinderer2019-01-031-1/+1
|
* make alldepend (with new one-dep-per-file printing)Gabriel Scherer2018-12-121-32/+116
|
* Makefiles: restructure CAMLDEP usage to easily add flagsGabriel Scherer2018-12-121-2/+3
| | | | | | | | | | | | | | This change should be a refactoring no-op. Before, a DEPFLAGS variable existed in some makefiles to contain include directories to be passed to ocamldep invocations, but no support for easily adding command-line flags to ocamldep was available (invocations would systematically use -slash, which was duplicated across callsites). With this PR, a new DEPINCLUDES variable contains the include directories, and DEPFLAGS is repurposed to contain other command-line flags for the tool -- currently "slash".
* Merge pull request #2049 from hhugo/lexer3Gabriel Scherer2018-09-171-3/+3
|\ | | | | Fixes in lexers
| * report error inside semantic actionHugo Heuzard2018-09-171-1/+1
| |
| * Sync ocamlex with the ocaml lexerHugo Heuzard2018-09-171-2/+2
| |
* | Move config/Makefile to Makefile.configSébastien Hinderer2018-09-171-1/+1
|/ | | | | | In order to prepare the transition to autoconf, this commit moves the configuration Makefile out of the config directory which will disappear and gives it the name it will have once intstalled, namely Makefile.config.