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 B1FF9BC0A for ; Wed, 18 Apr 2007 09:38:19 +0200 (CEST) Received: from smeltpunt.science.ru.nl (smeltpunt.science.ru.nl [131.174.16.145]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l3I7cJ0X032685 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Wed, 18 Apr 2007 09:38:19 +0200 Received: from tandem.cs.ru.nl [131.174.142.18] (helo=tandem.cs.ru.nl) by smeltpunt.science.ru.nl (8.13.7/5.11) with ESMTP id l3I7cIAN005967 for ; Wed, 18 Apr 2007 09:38:18 +0200 (MEST) Received: from tews by tandem.cs.ru.nl with local (Exim 4.63) (envelope-from ) id 1He4k8-00037n-3J for caml-list@yquem.inria.fr; Wed, 18 Apr 2007 09:38:20 +0200 From: Hendrik Tews To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] using different lexers with one parser? References: <20070417203311.GA553@first.in-berlin.de> Date: Wed, 18 Apr 2007 09:38:20 +0200 In-Reply-To: <20070417203311.GA553@first.in-berlin.de> (Oliver Bandel's message of "Tue, 17 Apr 2007 22:33:11 +0200") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Scanned-By: MIMEDefang 2.56 on 131.174.16.145 X-Miltered: at discorde with ID 4625CAEB.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; hendrik:01 tews:01 tews:01 lexers:01 parser:01 bandel:01 in-berlin:01 lexer:01 parsing:01 parser:01 hendrik:01 token:01 oliver:01 oliver:01 caml-list:01 Oliver Bandel writes: Is it possible (without too much effort) to switch the lexer during parsing (from within the parser)? Yes, see http://caml.inria.fr/pub/ml-archives/caml-list/2003/09/3e7f3495840e2bc851b91c3dba8abab9.en.html The main problem is the lookahead token. Bye, Hendrik