From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 946A4BC69 for ; Thu, 2 Aug 2007 12:09:38 +0200 (CEST) Received: from smtp.syd.people.net.au (smtp.syd.people.net.au [218.214.225.98]) by discorde.inria.fr (8.13.6/8.13.6) with SMTP id l72A9aNC018228 for ; Thu, 2 Aug 2007 12:09:37 +0200 Received: (qmail 11379 invoked from network); 2 Aug 2007 10:09:48 -0000 Received: from unknown (HELO hendrix.mega-nerd.net) (218.214.64.136) by smtp.syd.people.net.au with SMTP; 2 Aug 2007 10:09:48 -0000 Received: from hendrix (hendrix [192.168.200.99]) by hendrix.mega-nerd.net (Postfix) with SMTP id EAF082FEA1 for ; Thu, 2 Aug 2007 20:09:33 +1000 (EST) Date: Thu, 2 Aug 2007 20:09:33 +1000 From: Erik de Castro Lopo To: caml-list@yquem.inria.fr Subject: Handling include files using ocamllex Message-Id: <20070802200933.3621fb1a.mle+ocaml@mega-nerd.com> Organization: Erik Conspiracy Secret Labs X-Mailer: Sylpheed 2.3.1 (GTK+ 2.10.11; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Miltered: at discorde with ID 46B1AD60.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; ocaml:01 ocamllex:01 ocamllex:01 ocamlyacc:01 ocamlyacc:01 cheers:01 byte:01 parsing:01 root:04 root:04 erik:04 erik:04 style:93 god:88 god:88 Hi all, I doing some simple parsing with ocamllex and ocamlyacc and I need to be able to handle C style include files. I know how to do this in C with flex and bison, but I can't figure out how to do it with ocamllex and ocamlyacc. Anyone know how to do this? Cheers, Erik -- ----------------------------------------------------------------- Erik de Castro Lopo ----------------------------------------------------------------- J. Headley: "God, root, what is difference ?" G. Haverland: "God can change the byte order on the CPU, root can't."