From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Perry Smith Newsgroups: gmane.emacs.devel Subject: Wisent Parser for font-lock MATCHERS Date: Wed, 16 Jan 2008 12:59:31 -0600 Message-ID: <8D4A98C6-75F0-4E60-AE41-0864CD11349A@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v915) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1200510006 2321 80.91.229.12 (16 Jan 2008 19:00:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Jan 2008 19:00:06 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jan 16 20:00:24 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JFDUt-00079M-6r for ged-emacs-devel@m.gmane.org; Wed, 16 Jan 2008 20:00:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFDUU-0005Of-Jd for ged-emacs-devel@m.gmane.org; Wed, 16 Jan 2008 13:59:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JFDUP-0005Ma-Bf for emacs-devel@gnu.org; Wed, 16 Jan 2008 13:59:53 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JFDUM-0005Kx-6i for emacs-devel@gnu.org; Wed, 16 Jan 2008 13:59:53 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFDUM-0005Ks-2W for emacs-devel@gnu.org; Wed, 16 Jan 2008 13:59:50 -0500 Original-Received: from py-out-1112.google.com ([64.233.166.183]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JFDUL-0008Py-Nv for emacs-devel@gnu.org; Wed, 16 Jan 2008 13:59:49 -0500 Original-Received: by py-out-1112.google.com with SMTP id u52so459510pyb.1 for ; Wed, 16 Jan 2008 10:59:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:content-type:content-transfer-encoding:mime-version:subject:date:x-mailer; bh=T0JX1itEJFlREyR3NalMTosvDTx7bZt/jJOe8NxCeQI=; b=G9GGYl1YkI9jOxoIUim3iuJCiCD+dilv0DvyV+soPMRqDXg51c2Zi8t7xrCne25e+hAl1OhSj7j7asfpVcAwvO12QKAirARxhjRSCzCWQ9TrARD639nLbusfZXhUnRycI+P9AyCHF9h3m+bRNOYb1r50qtQ3dryrTD9KmZCAHx8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:content-type:content-transfer-encoding:mime-version:subject:date:x-mailer; b=MQeuyaFGYh0CEbm6KhDp6a2M/fMEYb+oqRIdXV5yDt09WaSgJPh/MmjAb4wFw7AjEHpnpInES+gxU8+enQjB9eVHpEKOjGxW4nev0GJztqktRBxWlovFGULy7sno/zpHPoTrm7Xc0YrTAsu3RRgr8dUNp7QYt/XBhvnh6CD8u7U= Original-Received: by 10.141.43.5 with SMTP id v5mr787793rvj.216.1200509980361; Wed, 16 Jan 2008 10:59:40 -0800 (PST) Original-Received: from NewToy.austin.ibm.com ( [32.97.110.142]) by mx.google.com with ESMTPS id a42sm1503797rne.11.2008.01.16.10.59.34 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Jan 2008 10:59:35 -0800 (PST) X-Mailer: Apple Mail (2.915) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:86985 Archived-At: My apologies if this questions is not appropriate for this list. Strings in ruby are very complex. They require a PDA and not just a DFA. I'm mid-way through writing a function to properly recognize a ruby string but then paused to consider perhaps I should use wisent instead. I've not used wisent before. If I'm going down a blind alley, please let me know. Or if there are samples of other wisent parser based font-lock matches, that would be of interest to me too. Specifically, my thoughts are to have a parser (or perhaps parsers) to use as the MATCHER function in the various font-lock lists such as font-lock-syntactic-keywords and font-lock-keywords. My fear is that the wisent parser is not going to let me hook in like I need to in order to properly create a matcher function. As background, I know about ruby-mode and cedet, semantic. There is a wisent attempt at a Ruby parser but it does not do strings properly either. Thank you, Perry Smith