From: Stefano Zacchiroli <zack@bononia.it>
To: caml-list@inria.fr
Subject: Re: [Caml-list] ocamllex -- ungetting a character?
Date: Sun, 16 Jul 2006 10:12:03 +0200 [thread overview]
Message-ID: <20060716081203.GA25792@aquarium.takhisis.invalid> (raw)
In-Reply-To: <44B9B93F.4010309@cs.caltech.edu>
On Sat, Jul 15, 2006 at 08:57:51PM -0700, mvanier wrote:
> I'm writing a simple program using ocamllex to do some text processing, and
> one feature I would really like is to be able to put a matched character
> back onto the front of the lexing buffer. I can't figure out a way to do
> this from the documentation (if it's possible, it's not in the manual).
> Does anyone know of a way to do this?
I don't think it is possible with ocamllex. Using ulex however you can
put back all the characters corresponding to the last matched lexeme
with Ulexing.rollback.
Cheers.
--
Stefano Zacchiroli -*- Computer Science PhD student @ Uny Bologna, Italy
zack@{cs.unibo.it,debian.org,bononia.it} -%- http://www.bononia.it/zack/
If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. -!-
next prev parent reply other threads:[~2006-07-16 8:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-16 3:57 mvanier
2006-07-16 8:12 ` Stefano Zacchiroli [this message]
2006-07-18 9:28 ` [Caml-list] " Jean-Christophe Filliatre
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=20060716081203.GA25792@aquarium.takhisis.invalid \
--to=zack@bononia.it \
--cc=caml-list@inria.fr \
/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