From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id TAA11410; Wed, 30 Oct 2002 19:33:22 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f 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 TAA11512 for ; Wed, 30 Oct 2002 19:33:21 +0100 (MET) Received: from tcs.inf.tu-dresden.de (tcs.inf.tu-dresden.de [141.76.75.101]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g9UIXL528874 for ; Wed, 30 Oct 2002 19:33:21 +0100 (MET) Received: from ithif51 (ithif51 [141.76.75.51]) by tcs.inf.tu-dresden.de (8.12.6/8.12.6) with ESMTP id g9UIXKOb029723 for ; Wed, 30 Oct 2002 19:33:20 +0100 (MET) Received: from tews by ithif51 with local (Exim 3.12 #1 (Debian)) id 186xea-0008Gd-00 for ; Wed, 30 Oct 2002 19:33:20 +0100 From: Hendrik Tews MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15808.9712.523008.590596@gargle.gargle.HOWL> Date: Wed, 30 Oct 2002 19:33:20 +0100 (CET) To: caml-list@inria.fr Subject: [Caml-list] camlp4: How to hook into the char stream of an existing grammar? X-Mailer: VM 6.75 under Emacs 20.7.2 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi, I have the following question: Suppose I use camlp4 with a predefined grammar (such as pa_o.cmo). Is it possible to install a function that intercept the character stream that flows into the lexer of camlp4 (for instance to record the positions of newlines)? At the moment I only see the following solution: Copy plexer.{ml,mli} from the ocaml sources, change Plexer.gmake (keeping its interface) and use camlp4 ./plexer.cmo ... Bye, Hendrik ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners