From: Mehdi Dogguy <mehdi@dogguy.org>
To: Jacques Le Normand <rathereasy@gmail.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] lexer errors
Date: Sat, 23 Jun 2012 08:57:57 +0200 [thread overview]
Message-ID: <4FE568F5.8080206@dogguy.org> (raw)
In-Reply-To: <CAK0y-35xUbr6p_k8jd1kEZoTz-NTOROori--DYYMQ3u8w8daBg@mail.gmail.com>
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/
prev parent reply other threads:[~2012-06-23 7:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-23 1:14 Jacques Le Normand
2012-06-23 6:57 ` Mehdi Dogguy [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4FE568F5.8080206@dogguy.org \
--to=mehdi@dogguy.org \
--cc=caml-list@inria.fr \
--cc=rathereasy@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).