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.7 required=5.0 tests=AWL,SPF_FAIL 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 EC296BC69 for ; Sun, 1 Jul 2007 22:30:45 +0200 (CEST) Received: from home.mk.pp.ru (av6800.comex.ru [217.10.34.155]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l61KUjpp018802 for ; Sun, 1 Jul 2007 22:30:45 +0200 Received: from ermine.home (ermine.home [192.168.2.2]) by home.mk.pp.ru (Postfix) with ESMTP id D7ECF20A1D for ; Mon, 2 Jul 2007 00:30:44 +0400 (MSD) Received: by ermine.home (Postfix, from userid 1000) id 0828B1B5839; Mon, 2 Jul 2007 00:30:45 +0400 (MSD) Date: Mon, 2 Jul 2007 00:30:44 +0400 From: Anastasia Gornostaeva To: caml-list@inria.fr Subject: unix.select + camlp4 Message-ID: <20070701203044.GA4434@ermine.home> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline User-Agent: Mutt/1.5.15 (2007-04-06) X-Miltered: at discorde with ID 46880EF5.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; camlp:01 camlp:01 parser:01 unix:01 unix:01 data:02 parse:02 parse:02 incomplete:03 use:16 hello:17 then:17 possible:18 save:79 which:22 Hello. Is it possible to use camlp4-based parser with data which comes from Unix.select input? Read a line, parse it, if a line was incomplete to parse then save a state, continue.... How do to do it? ermine