From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by sympa.inria.fr (Postfix) with ESMTPS id DA4557ED45 for ; Wed, 27 Jun 2012 21:59:28 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtYBALBk60/RVdSukGdsb2JhbABFtiUIIgEBAQEJCQ0HFAQjgjECLAEBOCUWNAEkAQUBV4daAQMLBAeZIgkDimaELgEFhUUKQA2JSAaOJYMclTWBEo0UPoN/ X-IronPort-AV: E=Sophos;i="4.77,486,1336341600"; d="scan'208";a="148963101" Received: from mail-wi0-f174.google.com ([209.85.212.174]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 27 Jun 2012 21:59:28 +0200 Received: by wibhr14 with SMTP id hr14so3603516wib.9 for ; Wed, 27 Jun 2012 12:59:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=v3VjMgNitrPODsjVV2APiegZU+4woU4GBGENdqZMBKE=; b=TRDPC5U9Pu2Kr3rLB9LdFQYr1qmBoCBgJLXunrcq6J6oCXaD9duOS1dLBXnGbJ2DRO nB/Dn5GDu0+OJQJdxkW8LmPgW3ZDzAJV4pHoK33VI4YIUi1JjSgcHZvpLYDMnWuqGDk3 OaJIav0ZwKbtdkBlyAXO+8wyYtsOc3wwtPDSfVS9GSi1HUs26BCEtuuvlu8MhV6kbwdx j87oesAg7/D5mWS5VE9UbRK+tiXKUjWqRrBBx4uZj2yqnyAyv69XjNExDYisXmyVAgVE BcHGxx8tr0KfW6S0qqqBCLRsjCsLO5SbD7aawI5Y94kSbaRj8LN5wQgchkty3FJ4XCj+ vUhQ== Received: by 10.216.218.83 with SMTP id j61mr10694531wep.137.1340827167709; Wed, 27 Jun 2012 12:59:27 -0700 (PDT) Received: from spec-desktop.danmey.org (cpc1-cmbg12-0-0-cust201.5-4.cable.virginmedia.com. [86.9.116.202]) by mx.google.com with ESMTPS id f7sm22475466wiv.2.2012.06.27.12.59.26 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 27 Jun 2012 12:59:27 -0700 (PDT) From: Wojciech Meyer To: caml-list@inria.fr Date: Wed, 27 Jun 2012 20:59:43 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: [Caml-list] [ANN] Camllexer v1.1.1 Hello, On behalf of Nicolas Pouillard, I'm happy that now Camllexer is available as an Oasis package from [1]. The development version can be found here [2]. The odb package manager shall be updated soon. [1] http://oasis.ocamlcore.org/dev/view/camllexer/1.1.1 As read in the distribution's README file: " Camllexer is an enhanced lexer for Caml dialects. The lexer has been extracted from the Camlp4 (> 3.10) lexer, which in turns was reimplemented as a derivative of the lexer from the OCaml compiler. This lexer has the following particularities: * Correct and complete: as far as testing gone (~800_000 distinct lines over ~3_000_000 lines of Caml like files). * Supports most Caml dialects: o By re-using the lexer of Camlp4 this lexer works on any extension of the OCaml language made with Camlp4. In particular it has a support for quotations and anti-quotations. o Works fine on lexers and parsers (ocamllex, ocamlyacc), except when using the C style of comments. * Lossless: every single bit of the input file is kept. Blanks, comments, newlines, lexical conventions for writing literals, all of it is kept in the returned token stream. Undesired information can easily be thrown out of the stream. * Keyword independent: there is no token for keywords. This is up to you to cast some LIDENTs and some SYMBOLs into proper keyword tokens of your own token type. * Fault tolerant: errors take part of the token stream, allowing to write fault tolerant translations. * Flexible warnings: the lexer warn about some corner case of the lexical conventions that the user might want to avoid, again warnings take part of the token stream such that you easily control everything. * A simple lexer program is provided, it enables quick debugging, and simple stream editions using Unix pipelines! " -- Wojciech Meyer http://danmey.org [2] https://github.com/np/camllexer