summaryrefslogtreecommitdiff
path: root/lang/camlp5
AgeCommit message (Collapse)AuthorFilesLines
2010-04-24Update lang/camlp5 to 5.13tonio2-6/+6
The update lets camlp5 and what depends on it work with the updated ocaml. Changes: * Added compatibility with OCaml 3.11.2. * Updated compatibility with OCaml 3.12.0. * Added 'lazy' patterns (added in OCaml version 3.11). * Fixed bug in pr_r.cmo: did not always break after "in" (in "let..in" statements) even with -flag l. * Fixed bug in pr_r.cmo: missing case "#use" for structure and signature items.
2009-09-03Update lang/camlp5 to 5.12tonio2-6/+6
Changes are: - compatibility with recent versions of ocaml - possible use of IFDEF and IFNDEF in record labels declarations - addition of Plexer.utf8_lexing
2009-06-14Remove @dirrm entries from PLISTsjoerg1-3/+1
2009-03-20Simply and speed up buildlink3.mk files and processing.joerg1-13/+6
This changes the buildlink3.mk files to use an include guard for the recursive include. The use of BUILDLINK_DEPTH, BUILDLINK_DEPENDS, BUILDLINK_PACKAGES and BUILDLINK_ORDER is handled by a single new variable BUILDLINK_TREE. Each buildlink3.mk file adds a pair of enter/exit marker, which can be used to reconstruct the tree and to determine first level includes. Avoiding := for large variables (BUILDLINK_ORDER) speeds up parse time as += has linear complexity. The include guard reduces system time by avoiding reading files over and over again. For complex packages this reduces both %user and %sys time to half of the former time.
2008-11-14Oops, undo r1.8, committed by accident.epg1-10/+8
2008-11-14blank line before PLIST_SRCepg1-8/+10
2008-06-21Update lang/camlp5 to 5.09tonio3-8/+9
Changes: * [05 Jun 08] Changed all '#!/bin/bash" in shells scripts into '#!/bin/sh' and changed all $(...) into `...` because there are compatibilities problems according to Unix versions. * [31 Mar 08] Fixed bug: "let f ~_x () = ()" generated syntax error. * [31 Mar 08] Fixed bug: "x $ y" generated syntax error (normal syntax). * [02 Jan 08] Added compatibility with OCaml 3.10.3.
2008-06-20Add DESTDIR support.joerg1-1/+3
2008-06-16Fix PLIST. Bump revision.joerg2-2/+4
2008-05-03camlp5 doesn't compile with MAKE_JOBS > 1. Mark it as not MAKE_JOBS_SAFEdegroote1-1/+2
2008-04-27Update lang/camlp5 to 5.08tonio4-11/+97
Camlp5 Version 5.08: -------------------- * [08 Feb 08] Fixed bug in normal syntax: a.{x,y} (access to big array) was interpreted as a.{(x,y)}. * [22 Jan 08] Added missing cases in printers pr_o and pr_r which displayed the message "unable to print ...". * [02 Jan 08] Added compatibility with OCaml 3.09.4 and 3.10.2. * [21 Jan 08] Fixed bug under windows: the file META could not be build if the library path name contained colons. * [13 Jan 08] Added missing man page for camlp5sch (link to the same man page as camlp5). * [05 Jan 08] Added "pr_extprint.cmo", printer rebuilding EXTEND_PRINTER statements in their original syntax. * [05 Jan 08] Fixed bug in EXTEND_PRINTER statement: the match cases with "when" did not work. Camlp5 Version 5.07: -------------------- * [02 Jan 08] Added "pprintf" statement to use the Camlp5 pretty print system more easily and shortly. * [27 Dec 07] Added function [Grammar.Entry.parse_all] returning the list of all solutions when using the parsing algorithm [Backtracking]. Camlp5 Version 5.06: -------------------- * [19 Dec 07] Upgraded to add compatibilitly with OCaml version 3.10.1. Camlp5 Version 5.05: -------------------- * [17 Dec 07] Added function [Pcaml.quotation_location] returning the location of the quotation in the source in the context of a quotation expander. * [04 Dec 07] Added generation of file META for ocamlfind in directory etc (built but not installed). * [28 Nov 07] Upgraded to reflect changes done in parse tree in current OCaml (version 3.11+dev6). * [27 Nov 07] Fixed bug in installation. Some files where installed in the bin directory instead of lib directory. * [27 Nov 07] Fixed bug in parsing comments: comments containing '\' where incorrectly parsed. Camlp5 Version 5.04: -------------------- * [24 Nov 07] Fixed bug in install under MSVC Windows: object and library files were not installed (using wrong extensions). * [24 Nov 07] Fixed bug under Windows: line numbers in error messages were wrong (twice the normal value). * [24 Nov 07] Added ability to change the parsing algorithm of extensible grammars, with the function "Grammar.set_algorithm" whose parameter can be "predictive" or "backtracking". * [22 Nov 07] Added backtracking parsers. Functions defined in the module Fstream (already containing functional streams and parsers). Syntax added in pa_fstream.cmo (already containing syntax for functinal streams and parsers). The new syntax uses "bparser" instead of "fparser" and a backtracking parser returns, together with its result and its remaining stream, the continuation to compute the next solution. Camlp5 Version 5.03: -------------------- * [20 Nov 07] Added commands mkcamlp5 and mkcamlp5.opt to build camlp5 executables with predefined loaded modules. Added installation of ocpp with name ocpp5, instead of just ocpp. * [19 Nov 07] Added more installed cmx and cmxa files to allow building native code linking of all combinations of Camlp5. * [14 Nov 07] Fixed bug in pr_o.cmo: failed with printing "{a.(i) with ...}". * [14 Nov 07] Fixed bug under Windows for the printers (pr_o.cmo, pr_r.cmo and pr_scheme.cmo): extra return character '\r' was added at end of lines. * [09 Nov 07] Fixed bug in camlp5o.opt in strict mode: did not parse correctly, in particular type expression (the version "camlp5o" without ".opt" however worked). * [29 Oct 07] Added [Pcaml.inter_phrases], a way to set, by program, the value of the "-sep" option of the printers kits. * [28 Oct 07] Fixed bug in pa_fstream.cmo (functional parsers): the keyword after "match with" was "parser" instead of "fparser" and its code was wrong. * [27 Oct 07] Added a default lexing buffer (in module [Plexing]) for pa_lexer.cmo: then, the programmer does not need to write it any more. Camlp5 Version 5.02: -------------------- * [14 Oct 07] Changed 'pa_lex.cmo' into 'pa_lexer.cmo' with a different syntax (see the documentation). * [14 Oct 07] In the EXTEND statement, added "LIKE s" as possible level position to specify a level containing a rule containing "s" in its keywords or tokens. * [11 Oct 07] Rewritten parsers and printers in Scheme syntax. Deleted old module Spretty.
2007-12-27Needs a real C compiler for the optimised build.joerg1-2/+2
2007-12-01Add lang/camlp5 version 5.01tonio6-0/+190
Camlp5 is a preprocessor and pretty-printer for OCaml programs. It also provides parsing and printing tools. As a preprocessor, it allows to: - extend the syntax of OCaml, - redefine the whole syntax of the language. As a pretty printer, it allows to: - display OCaml programs in an elegant way, - convert from one syntax to another, - check the results of syntax extensions. Camlp5 also provides some parsing and pretty printing tools: - extensible grammars - extensible printers - stream parsers and lexers - pretty print module It works as a shell command and can also be used in the OCaml toplevel.