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 4E856BB84 for ; Tue, 18 Apr 2006 09:37:34 +0200 (CEST) Received: from mail3.plesk.ru (gw-swsoft.ll-nsk.zsttk.ru [80.89.128.178]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id k3I7bXeH018804 for ; Tue, 18 Apr 2006 09:37:34 +0200 Received: from kosolapov.plesk.ru (kosolapov.plesk.ru [192.168.61.10]) by mail3.plesk.ru (Postfix) with ESMTP id C0C6C1A996C for ; Tue, 18 Apr 2006 14:37:30 +0700 (NOVST) Received: by kosolapov.plesk.ru (Postfix, from userid 1000) id 468853FA5A; Tue, 18 Apr 2006 14:37:30 +0700 (NOVST) From: Ruslan Kosolapov To: caml-list@yquem.inria.fr Subject: migrate from ocamllex to ulex User-Agent: No Gnus v0.4 on Emacs/22.0.50.1 (i486-pc-linux-gnu) Date: Tue, 18 Apr 2006 14:37:30 +0700 Message-ID: <87u08ribb9.fsf@kosolapov.plesk.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Miltered: at concorde with ID 4444973D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; ocamllex:01 ocamllex:01 lexer:01 mll:01 lexer:01 mll:01 ocaml:01 character:04 character:04 modify:05 modify:05 problem:05 examples:07 symbols:07 symbols:07 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.3 I want to use Polygen (http://polygen.org/web/), but this tool is not work with UTF-8 (if I try to use UTF-8 symbols in template, error "illegal character" appear). As far as I understand problem is ocamllex - if I use UTF-8 symbols in lexer.mll, ocamllex say to me "illegal character", so, I can't just modify lexer.mll. So, I think I should modify Polygen to ulex using. I have no any OCaml expirience, so such task is hard for me. I look for code examples or any detailed documentation which show me how I can migrate from ocamllex to ulex. Please help :) PS: I tryed to modify file lexer.ml (such file produced by ocamllex), but I don't know what exactly I should modify - lexer.ml is not human-readable. -- Ruslan Kosolapov Plesk QA Department Second Manager SWsoft, Inc.