From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail1-relais-roc.national.inria.fr (mail1-relais-roc.national.inria.fr [192.134.164.82]) by sympa.inria.fr (Postfix) with ESMTPS id 13DF87ED47 for ; Sat, 23 Jun 2012 09:07:19 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ap8EAORq5U9beTnJ/2dsb2JhbABEhVqxFYIYAQEFIw8BRQEQCQIYAgIFFgsCAgkDAgECARorBg0BBwKIC6cekkGBIIoQhHCBEgOVLIEShESKK4Jh X-IronPort-AV: E=Sophos;i="4.77,462,1336341600"; d="scan'208";a="164120747" Received: from krypton.hackadomia.org (HELO dogguy.org) ([91.121.57.201]) by mail1-smtp-roc.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 23 Jun 2012 09:07:10 +0200 Received: by dogguy.org (Postfix, from userid 110) id 0F34A2048A; Sat, 23 Jun 2012 09:07:10 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on krypton X-Spam-Level: Received: from [192.168.0.12] (cac94-10-88-170-237-124.fbx.proxad.net [88.170.237.124]) by dogguy.org (Postfix) with ESMTPS id 91E5020258; Sat, 23 Jun 2012 09:07:09 +0200 (CEST) Message-ID: <4FE568F5.8080206@dogguy.org> Date: Sat, 23 Jun 2012 08:57:57 +0200 From: Mehdi Dogguy User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.4) Gecko/20120510 Icedove/10.0.4 MIME-Version: 1.0 To: Jacques Le Normand CC: caml-list@inria.fr References: In-Reply-To: X-Enigmail-Version: 1.4 OpenPGP: id=8C2ED8FF Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [Caml-list] lexer errors On 06/23/2012 03:14 AM, Jacques Le Normand wrote: > rule lex = parse > | "foo" {()} > | "\n" {lex lexbuf} > You should add "new_line lexbuf" before re-calling "lex". > (Should be line 2, character 1) > In fact, it should be "line 2, character 0" since "bar" is really at the beginning of the line. Best, -- Mehdi Dogguy مهدي الدڤي http://dogguy.org/