summaryrefslogtreecommitdiff
path: root/yacc
Commit message (Collapse)AuthorAgeFilesLines
* Unicode support for the Windows runtime (#1200)Nicolás Ojeda Bär2017-09-181-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add support code * Explicitly reference ANSI Windows APIs * Adapt Sys.is_directory * Adapt ocamlrun * Add Changes entry * Add testsuite * Adapt Unix.open_process{_in,_out,_full,}, Unix.create_process{_env,} * Adapt headernt.c * Adapt Pervasives.open_{in,out}, Filename.temp_file, etc. * Adapt Sys.file_exists * Adapt Sys.remove * Adapt Sys.chdir * Adapt Sys.getcwd * Adapt Sys.getenv * Adapt Sys.command * Adapt Sys.readdir * Adapt CPLUGINS * Remove use of FormatMessageA, CreateFileA * Adapt Unix.mkdir * Adapt Unix.openfile * Adapt Unix.readlink * Adapt Unix.rename * Adapt Unix.{LargeFile,}.{l,}stat * Adapt Unix.system * Adapt Unix.{open,read}dir * Adapt Unix.link * Adapt Unix.symlink * Adapt Unix.getcwd * Adapt Unix.rmdir * Adapt Unix.utimes * Adapt Unix.unlink * Adapt Unix.chdir * Adapt Unix.chmod * Adapt Unix.{execv,execve,execvp,execvpe} * Compile with -DUNICODE -D_UNICODE under Windows * Add configure-time switch, Config.windows_unicode * Adapt Unix.putenv * Re-implement Unix.environment using GetEnvironmentStrings() * Use Unicode-aware flexdll * Adapt Unix.environment * AppVeyor: bootstrap flexdll * Adapt tests/embedded/cmmain.c * Adapt tests/lib-dynlink-csharp/entry.c * Remove exec tests * Fixup * Pass -municode to MinGW compiler * Try to fix tests/embedded * Adapt Sys.rename * Correct Changes entry * Makefile.several: use $(O) and $(NATIVECODE_ONLY) * Display => skipped correctly for tests/win-unicode * Add missing casts to execv* calls It's not clear why these aren't necessary for with char, but they are necessary with wchar_t on GCC (but not MSVC). * Missing header in systhreads (Win32 only) * Revert "Pass -municode to MinGW compiler" This reverts commit a4ce7fb319c429068a5b9d1ab14a2cc3969c355f. * Revert "Try to fix tests/embedded" This reverts commit 5197d8922295b7b339b970ec3189374aa15de4b8. * Revert "Remove exec tests" This reverts commit 306ccef2e79eca5b38ecfa285b912c7bcf3e9f52. * Don't pass $(LDFLAGS) when build ocamlc.opt It's already included via CC anyway, and it causes Unicode problems for Winodws (because the linker options need to be prefixed "-link" to go via flexlink). * Use wmain on Windows for ocamlrun * Build Unicode applications on Windows * Use wmain in headernt.c * Minor correction to win-unicode Makefile * Switch submodule to FlexDLL 0.36 * Build ocamlyacc as an ANSI application * Revert "Fixup" This reverts commit 500bd6b575ffd6c5b71c6953e55d740f0b090185. * Fix casts for execvp/execve * Remove tabs from test code * Fix Changes entry * shell32.lib is no longer necessary * Free allocated string * Changes: signal breaking change * Disable exec_tests * Protect with CAML_INTERNALS
* Restore 32bit compilation (#1295)David Allsopp2017-08-291-3/+0
|
* Fix build on MSVCDemi Obenour2017-05-171-1/+1
|
* Delete code that isn't useful for ocamlyaccDemi Obenour2017-05-173-48/+1
| | | | It was left from the conversion of Berkely Yacc to ocamlyacc
* Partial testcase and bug fixDemi Obenour2017-05-171-7/+21
| | | | | This adds a partial testcase for the better lexing of OCaml code by ocamlyacc, as well as a bug fix.
* Fix parsing for a corner case in ocamlyaccDemi Obenour2017-05-171-2/+2
| | | | | A'"'" was misparsed (the ' was not associated with the A as it should be)
* Fix the parsing of comments by ocamlyaccDemi Obenour2017-05-171-40/+67
|
* Check for balanced parentheses and curly braces in ocamlyaccDemi Obenour2017-05-171-2/+30
| | | | | This uses an explicit stack to keep track of parentheses and curly braces in actions.
* Fix parsing of raw stringsDemi Obenour2017-05-171-2/+71
| | | | This adds support for parsing of raw OCaml strings.
* Refactor the ocamlyacc readerDemi Obenour2017-05-171-161/+95
| | | | | | | | The processing of apostrophes, quoted strings and comments was duplicated in at least two places. This refactors both into functions. Also move the bitmap code, for use by later changes.
* Delete some superfluous codeDemi Obenour2017-05-172-165/+0
| | | | | The %ident and %union directives don't make sense for OCaml, and generated broken OCaml code. Just drop support for them.
* Move configuration header files from the config to the byterun/caml directorySébastien Hinderer2017-04-262-2/+2
| | | | | | | | | | | | This commit moves: - config/m.h to byterun/caml/m.h - config/s.h to byterun/caml/s.h Consequently, m.h and s.h now get installed alongside other OCaml header files. This commit also updates the .depend files, introducing updates in the dependencies which are not consequences of this commit itself.
* Fix \r problems on recent CygwinsDavid Allsopp2017-04-131-1/+1
| | | | | | | | | | | | The Cygwin packages for awk, grep and sed were updated on 20 February 2017 so that they no longer automatically strip \r characters on binary mounts. This affects the OCaml build system in a few places, requiring the addition of a few tr calls. References: * https://cygwin.com/ml/cygwin/2017-02/msg00152.html * https://cygwin.com/ml/cygwin/2017-02/msg00189.html * https://cygwin.com/ml/cygwin/2017-02/msg00188.html
* Introduce and use the OUTPUTEXE and OUTPUTOBJ build variablesSébastien Hinderer2017-03-291-1/+1
|
* Define new build variables for C compiler and preprocessor flagsSébastien Hinderer2017-03-292-3/+5
|
* Get rid of BYTECC and NATIVECCSébastien Hinderer2017-03-291-2/+1
| | | | Use the same C compiler, CC, in all the build system.
* Rely on _WIN32 rather than NO_UNIX to compile ocamlyaccSébastien Hinderer2017-03-072-9/+3
|
* Make ocamlyacc and make_opcodes ignore \r on UnixDavid Allsopp2017-02-151-1/+6
| | | | | | | | ocamlyacc doesn't correctly handle \r on Unix meaning that long strings with escaped newlines cause unterminated string warnings. Similarly, the make_opcodes script in the build system cannot cope with a CRLF checkout of the header files.
* Merge Makefile.nt into Makefile in the yacc directory. (#762)Sébastien Hinderer2016-08-262-3/+12
| | | yacc/Makefile has been changed so that it also works on Windows.
* ocamlyacc: output verbose file before failing on --strict.Nicolas Ojeda Bar2016-07-052-5/+2
|
* Rename ocamlyacc's -e option --strict.Jeremy Yallop2016-06-222-6/+6
|
* Add an -e option to ocamlyacc to reject grammars with conflicts.Jeremy Yallop2016-05-314-2/+21
|
* yacc/Makefile{,.nt}: merge.whitequark2016-03-172-49/+18
|
* Update headers for the new license.Damien Doligez2016-02-1815-165/+210
| | | | Remains to be done: remove all headers in testsuite/tests.
* simplify .gitignore; remove .ignore files and tools/setignore; adjust ↵Damien Doligez2015-11-061-4/+0
| | | | tools/check-typo
* byterun/ yacc/ : replace some K&R function declarations with proper prototypes.Xavier Leroy2015-11-032-4/+4
|
* fix an issue spotted by the Clang analyzer (assigned value never read)Gabriel Scherer2015-08-041-3/+1
| | | | | | | | yacc/reader.c:922:9: warning: Value stored to 'value' is never read value = UNDEFINED; ^ ~~~~~~~~~ git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16334 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* fix an issue spotted by the Clang analyzer (leak in yacc/reader.c)Gabriel Scherer2015-08-041-0/+1
| | | | | | | | yacc/reader.c:1328:7: warning: Potential leak of memory pointed to by 'a_line' fprintf(f, ")\n# 0\n "); ^~~~~~~ git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16333 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-2/+2
| | | | | | 16205) git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@16214 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#6729: Makefile: remove suffix rules to avoid -jN race conditionsGabriel Scherer2014-12-271-4/+2
| | | | | | (Peter Zotov) git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15751 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Add missing Noreturn qualifiersGabriel Scherer2014-08-061-22/+22
| | | | | | (patch by Peter Zotov, review by Max Mouratov) git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@15057 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* merge from 4.02 (rev. 14929): add configure detection of mkstemp, remove old ↵Mark Shinwell2014-05-301-12/+8
| | | | | | HAVE_MKSTEMP conditional, rename HAVE_MKSTEMP -> HAS_MKSTEMP git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14930 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* #6328: use real temporary file names for ocamlyacc under Windows.Alain Frisch2014-02-181-15/+15
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@14435 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* yacc: "ocamlyacc$(EXE)" rule produced "ocamlyacc" (no trailing $(EXE)).Wojciech Meyer2013-02-251-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13311 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* remove all $Id keywordsDamien Doligez2012-10-1515-33/+0
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@13013 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#5719: ocamlyacc generates code that is not warning 33-compliantDamien Doligez2012-08-061-0/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12835 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* clean up TABs and whitespaceDamien Doligez2012-07-301-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12799 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* merge changes from 4.00 branching to 4.00.0 (part 1)Damien Doligez2012-07-261-0/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@12784 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* renaming of Objective Caml to OCaml and cleanup of copyright headersDamien Doligez2011-07-2715-16/+16
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11156 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* uniform .ignore systemDamien Doligez2011-07-201-3/+0
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@11133 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Ignoring compiled files.Pierre Weis2011-03-171-0/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10992 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#5055: head -1 doesn't workDamien Doligez2010-05-212-2/+2
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10448 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* PR#4857: add -vnum option to all executablesDamien Doligez2010-05-201-0/+3
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@10444 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Incorporating OBSD patches.Pierre Weis2010-02-091-0/+52
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9626 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* clean up spaces and tabsDamien Doligez2010-01-225-7/+4
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9547 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* merge changes from ocaml3111rc0 to ocaml3111Damien Doligez2009-07-201-3/+4
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@9319 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Cleanup and factorization of linker-related code.Alain Frisch2007-11-151-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8521 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Merge the natdynlink branch into HEAD.Alain Frisch2007-11-061-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@8477 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* deplacement du numero de version -> fichier VERSION a la racineDamien Doligez2007-02-072-8/+4
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7833 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
* Typo dans call MKEXEXavier Leroy2006-09-261-1/+1
| | | | git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@7650 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02