From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 41486BB84 for ; Sun, 16 Jul 2006 05:57:57 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id k6G3vutP001873 for ; Sun, 16 Jul 2006 05:57:56 +0200 Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id FAA13812 for ; Sun, 16 Jul 2006 05:57:56 +0200 (MET DST) Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu [131.215.239.19]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id k6G3vthS001868 for ; Sun, 16 Jul 2006 05:57:55 +0200 Received: from water-dog.caltech.edu (water-dog [192.168.1.26]) by earth-ox-postvirus (Postfix) with ESMTP id 5D33C109B82 for ; Sat, 15 Jul 2006 20:57:49 -0700 (PDT) Received: from [192.168.1.100] (adsl-66-218-63-93.dslextreme.com [66.218.63.93]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by water-ox.its.caltech.edu (Postfix) with ESMTP id B00852EECD for ; Sat, 15 Jul 2006 20:57:38 -0700 (PDT) Message-ID: <44B9B93F.4010309@cs.caltech.edu> Date: Sat, 15 Jul 2006 20:57:51 -0700 From: mvanier User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20060414 SeaMonkey/1.5a MIME-Version: 1.0 To: caml-list@inria.fr Subject: ocamllex -- ungetting a character? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Miltered: at concorde with ID 44B9B944.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at concorde with ID 44B9B943.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; mvanier:01 mvanier:01 ocamllex:01 ocamllex:01 lexing:01 buffer:01 matched:01 caltech:02 character:04 character:04 manual:06 edu:08 feature:08 i'm:08 writing:12 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 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? Thanks in advance, Mike