From MAILER-DAEMON Sat Apr 05 13:14:14 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 191sB1-0006pG-00
	for mharc-help-source-highlight@gnu.org; Sat, 05 Apr 2003 13:14:03 -0500
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 191sAa-0006HB-00
	for help-source-highlight@gnu.org; Sat, 05 Apr 2003 13:13:36 -0500
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 191s8M-0004b2-00
	for help-source-highlight@gnu.org; Sat, 05 Apr 2003 13:11:18 -0500
Received: from moutng.kundenserver.de ([212.227.126.187])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 191s6a-0003YZ-00; Sat, 05 Apr 2003 13:09:28 -0500
Received: from [212.227.126.162] (helo=mrelayng.kundenserver.de)
	by moutng.kundenserver.de with esmtp (Exim 3.35 #1)
	id 191p5I-0006bL-00; Sat, 05 Apr 2003 16:55:56 +0200
Received: from [80.132.66.17] (helo=gmx.de)
	by mrelayng.kundenserver.de with asmtp (TLSv1:RC4-MD5:128)
	(Exim 3.35 #1)
	id 191p5I-0008O8-00; Sat, 05 Apr 2003 16:55:56 +0200
Message-ID: <3E8EEE7B.7000306@gmx.de>
Date: Sat, 05 Apr 2003 16:55:55 +0200
From: Martin Gebert <Murphy.Gebert@gmx.de>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.3) Gecko/20030312
X-Accept-Language: de-DE, de, en
MIME-Version: 1.0
To: help-source-highlight@gnu.org,  info-source-highlight@gnu.org
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Subject: [Help-source-highlight] Tinkering on Ksrc2html
X-BeenThere: help-source-highlight@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: discussion list for source-highlight <help-source-highlight@gnu.org>
List-Id: discussion list for source-highlight <help-source-highlight.gnu.org>
List-Help: <mailto:help-source-highlight-request@gnu.org?subject=help>
List-Post: <mailto:help-source-highlight@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-source-highlight>,
	<mailto:help-source-highlight-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-source-highlight>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-source-highlight>,
	<mailto:help-source-highlight-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sat, 05 Apr 2003 18:13:55 -0000

Hi all!

I need your help.
No, don't be afraid, it ain't much work. ;-)

If you know my KDE frontent for source-highlight, Ksrc2html <http://murphy.netsolution-net.de/Ksrc2.html>, you know that in the Color & Style dialog there are syntax samples to show the currently selected style for this syntax item (as available in the j2h files). These samples are C++ specific, and I want them to be dynamic, according to the chosen source language. If a kind of syntax item isn't available in the language, the whole row will be hidden (e. g. Python knows no code blocks, curly brackets are symbols).
The current sample texts are:

Normal:		argc
Keyword:	else
Type:		char
String:		"string"
Comment:	/*text*/
Number:		1234
Preproc:	#include
Symbol		<>+-
Function:	exit()
Block brackets:	{}

I now would like to know which of these items aren't supported by which source-highlight source type, and which sample text you'd suggest for the others. The sample shouldn't exceed 8 characters, and it should be representative for this syntax item.
I need esp. help on Java, Perl, PHP3, Ruby, Flex and ChangeLog, for I don't know them good enough. So if one of you knows one of these, please sit down for some minutes and give me the short list. Feel free to provide more feedback if you like. *g*

Thanks for helping!

Martin




From MAILER-DAEMON Sun Apr 06 04:33:41 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 1925av-000478-00
	for mharc-help-source-highlight@gnu.org; Sun, 06 Apr 2003 04:33:41 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 1925as-00040S-00
	for help-source-highlight@gnu.org; Sun, 06 Apr 2003 04:33:38 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 1925ar-0003ve-00
	for help-source-highlight@gnu.org; Sun, 06 Apr 2003 04:33:37 -0400
Received: from smtp1.libero.it ([193.70.192.51])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 1925aq-0003fn-00
	for help-source-highlight@gnu.org; Sun, 06 Apr 2003 04:33:36 -0400
Received: from dsi.unifi.it (151.27.20.76) by smtp1.libero.it (6.7.015)
	(authenticated as lorebett@libero.it)
	id 3E44E7FA0157A9ED for help-source-highlight@gnu.org;
	Sun, 6 Apr 2003 10:32:40 +0200
Message-ID: <3E8FE497.4020806@dsi.unifi.it>
Date: Sun, 06 Apr 2003 10:25:59 +0200
From: Lorenzo Bettini <bettini@dsi.unifi.it>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.0.2) Gecko/20021120 Netscape/7.01
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: discussion list for source-highlight <help-source-highlight@gnu.org>
Subject: Re: [Help-source-highlight] Tinkering on Ksrc2html
References: <3E8EEE7B.7000306@gmx.de>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-BeenThere: help-source-highlight@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: discussion list for source-highlight <help-source-highlight@gnu.org>
List-Id: discussion list for source-highlight <help-source-highlight.gnu.org>
List-Help: <mailto:help-source-highlight-request@gnu.org?subject=help>
List-Post: <mailto:help-source-highlight@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-source-highlight>,
	<mailto:help-source-highlight-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-source-highlight>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-source-highlight>,
	<mailto:help-source-highlight-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 06 Apr 2003 08:33:39 -0000

Hi Martin

You have to be subscribed to the mailing list in order to post messages. 
  I'll try to let your previous message through but I don't know if I'm 
on-time for that (it might have already be erased by the system).

cheers
	Lorenzo

Martin Gebert wrote:
> Hi all!
> 
> I need your help.
> No, don't be afraid, it ain't much work. ;-)
> 
> If you know my KDE frontent for source-highlight, Ksrc2html 
> <http://murphy.netsolution-net.de/Ksrc2.html>, you know that in the 
> Color & Style dialog there are syntax samples to show the currently 
> selected style for this syntax item (as available in the j2h files). 
> These samples are C++ specific, and I want them to be dynamic, according 
> to the chosen source language. If a kind of syntax item isn't available 
> in the language, the whole row will be hidden (e. g. Python knows no 
> code blocks, curly brackets are symbols).
> The current sample texts are:
> 
> Normal:        argc
> Keyword:    else
> Type:        char
> String:        "string"
> Comment:    /*text*/
> Number:        1234
> Preproc:    #include
> Symbol        <>+-
> Function:    exit()
> Block brackets:    {}
> 
> I now would like to know which of these items aren't supported by which 
> source-highlight source type, and which sample text you'd suggest for 
> the others. The sample shouldn't exceed 8 characters, and it should be 
> representative for this syntax item.
> I need esp. help on Java, Perl, PHP3, Ruby, Flex and ChangeLog, for I 
> don't know them good enough. So if one of you knows one of these, please 
> sit down for some minutes and give me the short list. Feel free to 
> provide more feedback if you like. *g*
> 
> Thanks for helping!
> 
> Martin
> 
> 
> 
> _______________________________________________
> Help-source-highlight mailing list
> Help-source-highlight@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-source-highlight


-- 
+-----------------------------------------------------+
|  Lorenzo Bettini          ICQ# lbetto, 16080134     |
|  PhD in Computer Science                            |
|  Dip. Sistemi e Informatica, Univ. di Firenze       |
|  Tel +39 055 4796741, Fax +39 055 4796730           |
|  Florence - Italy         (Linux User # 158233)     |
|  Home Page        : http://www.lorenzobettini.it    |
|  http://music.dsi.unifi.it         XKlaim language  |
|  http://www.lorenzobettini.it/purple    Cover Band  |
|  http://www.gnu.org/software/src-highlite           |
|  http://www.gnu.org/software/gengetopt              |
+-----------------------------------------------------+





From MAILER-DAEMON Sun Apr 06 04:35:11 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 1925cM-0007CK-00
	for mharc-help-source-highlight@gnu.org; Sun, 06 Apr 2003 04:35:10 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 1925cK-00076r-00
	for help-source-highlight@gnu.org; Sun, 06 Apr 2003 04:35:08 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 1925cI-00071N-00
	for help-source-highlight@gnu.org; Sun, 06 Apr 2003 04:35:07 -0400
Received: from smtp0.libero.it ([193.70.192.33])
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 1925cH-0006xk-00
	for help-source-highlight@gnu.org; Sun, 06 Apr 2003 04:35:05 -0400
Received: from dsi.unifi.it (151.27.20.76) by smtp0.libero.it (7.0.012)
	(authenticated as lorebett@libero.it)
	id 3E81B41B003E10CF for help-source-highlight@gnu.org;
	Sun, 6 Apr 2003 10:35:04 +0200
Message-ID: <3E8FE52C.6070009@dsi.unifi.it>
Date: Sun, 06 Apr 2003 10:28:28 +0200
From: Lorenzo Bettini <bettini@dsi.unifi.it>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US;
	rv:1.0.2) Gecko/20021120 Netscape/7.01
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: discussion list for source-highlight <help-source-highlight@gnu.org>
Subject: Re: [Help-source-highlight] Tinkering on Ksrc2html
References: <3E8EEE7B.7000306@gmx.de>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-BeenThere: help-source-highlight@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: discussion list for source-highlight <help-source-highlight@gnu.org>
List-Id: discussion list for source-highlight <help-source-highlight.gnu.org>
List-Help: <mailto:help-source-highlight-request@gnu.org?subject=help>
List-Post: <mailto:help-source-highlight@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-source-highlight>,
	<mailto:help-source-highlight-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-source-highlight>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-source-highlight>,
	<mailto:help-source-highlight-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Sun, 06 Apr 2003 08:35:09 -0000

sorry forget the previous message: the message returned to me, because 
of the mailing list info-source-highlight where only I can post.  While 
the message correctly arrived to the help-source-highlight mailing list :-)

cheers
	Lore

Martin Gebert wrote:
> Hi all!
> 
> I need your help.
> No, don't be afraid, it ain't much work. ;-)
> 
> If you know my KDE frontent for source-highlight, Ksrc2html 
> <http://murphy.netsolution-net.de/Ksrc2.html>, you know that in the 
> Color & Style dialog there are syntax samples to show the currently 
> selected style for this syntax item (as available in the j2h files). 
> These samples are C++ specific, and I want them to be dynamic, according 
> to the chosen source language. If a kind of syntax item isn't available 
> in the language, the whole row will be hidden (e. g. Python knows no 
> code blocks, curly brackets are symbols).
> The current sample texts are:
> 
> Normal:        argc
> Keyword:    else
> Type:        char
> String:        "string"
> Comment:    /*text*/
> Number:        1234
> Preproc:    #include
> Symbol        <>+-
> Function:    exit()
> Block brackets:    {}
> 
> I now would like to know which of these items aren't supported by which 
> source-highlight source type, and which sample text you'd suggest for 
> the others. The sample shouldn't exceed 8 characters, and it should be 
> representative for this syntax item.
> I need esp. help on Java, Perl, PHP3, Ruby, Flex and ChangeLog, for I 
> don't know them good enough. So if one of you knows one of these, please 
> sit down for some minutes and give me the short list. Feel free to 
> provide more feedback if you like. *g*
> 
> Thanks for helping!
> 
> Martin
> 
> 
> 
> _______________________________________________
> Help-source-highlight mailing list
> Help-source-highlight@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-source-highlight


-- 
+-----------------------------------------------------+
|  Lorenzo Bettini          ICQ# lbetto, 16080134     |
|  PhD in Computer Science                            |
|  Dip. Sistemi e Informatica, Univ. di Firenze       |
|  Tel +39 055 4796741, Fax +39 055 4796730           |
|  Florence - Italy         (Linux User # 158233)     |
|  Home Page        : http://www.lorenzobettini.it    |
|  http://music.dsi.unifi.it         XKlaim language  |
|  http://www.lorenzobettini.it/purple    Cover Band  |
|  http://www.gnu.org/software/src-highlite           |
|  http://www.gnu.org/software/gengetopt              |
+-----------------------------------------------------+





From MAILER-DAEMON Mon Apr 07 21:37:30 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 192i32-0007FZ-00
	for mharc-help-source-highlight@gnu.org; Mon, 07 Apr 2003 21:37:16 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 192i2r-0006oI-00
	for help-source-highlight@gnu.org; Mon, 07 Apr 2003 21:37:05 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 192i2p-0006lo-00
	for help-source-highlight@gnu.org; Mon, 07 Apr 2003 21:37:03 -0400
Received: from [64.207.29.198] (helo=illumen.com)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 192i2h-0006aj-00
	for help-source-highlight@gnu.org; Mon, 07 Apr 2003 21:36:55 -0400
Received: from home by illumen.com
	with SMTP (MDaemon.PRO.v6.7.7.R)
	for <help-source-highlight@gnu.org>; Mon, 07 Apr 2003 19:38:34 -0600
From: "Daniel Ajoy" <dajoy@openworldlearning.org>
To: help-source-highlight@gnu.org
Date: Mon, 07 Apr 2003 20:37:47 -0500
MIME-Version: 1.0
Message-ID: <3E91E19B.27577.999507@localhost>
Priority: normal
X-LINE1: ABCDEF0123456789
X-mailer: Pegasus Mail for Windows (v4.02)
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body
X-Return-Path: dajoy@openworldlearning.org
X-MDaemon-Deliver-To: help-source-highlight@gnu.org
Subject: [Help-source-highlight] Logo
X-BeenThere: help-source-highlight@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: Daniel Ajoy <dajoy@openworldlearning.org>, discussion list for
	source-highlight <help-source-highlight@gnu.org>
List-Id: discussion list for source-highlight <help-source-highlight.gnu.org>
List-Help: <mailto:help-source-highlight-request@gnu.org?subject=help>
List-Post: <mailto:help-source-highlight@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-source-highlight>,
	<mailto:help-source-highlight-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-source-highlight>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-source-highlight>,
	<mailto:help-source-highlight-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 08 Apr 2003 01:37:14 -0000

Does source-highlight needs to be recompiled to make it
work with an new programming Language? I might want to
make it work with Logo.

Daniel




From MAILER-DAEMON Tue Apr 08 04:02:52 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 192o4C-0001LU-00
	for mharc-help-source-highlight@gnu.org; Tue, 08 Apr 2003 04:02:52 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 192o49-0001GD-00
	for help-source-highlight@gnu.org; Tue, 08 Apr 2003 04:02:49 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 192o42-0001Eu-00
	for help-source-highlight@gnu.org; Tue, 08 Apr 2003 04:02:43 -0400
Received: from pop.gmx.de ([213.165.64.20] helo=mail.gmx.net)
	by monty-python.gnu.org with smtp (Exim 4.10.13)
	id 192o42-0001D9-00
	for help-source-highlight@gnu.org; Tue, 08 Apr 2003 04:02:42 -0400
Received: (qmail 14530 invoked by uid 65534); 8 Apr 2003 08:02:39 -0000
Received: from pD9051F3F.dip.t-dialin.net (EHLO gmx.de) (217.5.31.63)
  by mail.gmx.net (mp017-rz3) with SMTP; 08 Apr 2003 10:02:39 +0200
Message-ID: <3E9282AD.60407@gmx.de>
Date: Tue, 08 Apr 2003 10:05:01 +0200
From: Martin Gebert <Murphy.Gebert@gmx.de>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; de-DE;
	rv:1.0.2) Gecko/20030208 Netscape/7.02
X-Accept-Language: de-de, de
MIME-Version: 1.0
To: Daniel Ajoy <dajoy@openworldlearning.org>, discussion list for
	source-highlight <help-source-highlight@gnu.org>
Subject: Re: [Help-source-highlight] Logo
References: <3E91E19B.27577.999507@localhost>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-BeenThere: help-source-highlight@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: discussion list for source-highlight <help-source-highlight@gnu.org>
List-Id: discussion list for source-highlight <help-source-highlight.gnu.org>
List-Help: <mailto:help-source-highlight-request@gnu.org?subject=help>
List-Post: <mailto:help-source-highlight@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-source-highlight>,
	<mailto:help-source-highlight-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-source-highlight>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-source-highlight>,
	<mailto:help-source-highlight-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Tue, 08 Apr 2003 08:02:50 -0000



Daniel Ajoy schrieb:
> Does source-highlight needs to be recompiled to make it
> work with an new programming Language? I might want to
> make it work with Logo.

If it only were recompiling... ;-)
First you'll have to write your own scanner; as a template you should 
look at the cpp_scanner.ll or java_scanner.ll file in the src/ subdir 
which are the "original ones" and which you could adapt for your 
purpose. They are simply (?!) Flex files; you can get an overview of 
Flex here:

http://dinosaur.compilertools.net/

Sorry if you already knew that. Second you have to include your scanner 
into the source-highlight code. Lorenzo wanted to write a How-To about 
including new scanners (you'll mainly have to adapt the Makefiles for 
that) and to simplify the Makefiles for that purpose, but I don't know 
how far he's gotten with that; last time I tried to do that (been a 
while now) it was some work... Hope he'll show up later and explain.

For testing new scanners, *I* simply replaced one of the other scanners 
(simply give your scanner file the name of a scanner you want to 
substitute), made source-highlight anew (by 'make') and called it with 
the input type of the substituted scanner; the finished scanner was sent 
to Lorenzo (with a new name). But there have been some obstacles (run 
the scanner through flex by hand, and AFAI remember also something with 
sed-ing some constructs in this file), so if you aren't willing to do 
some work by hand you shouldn't go this way.

Hope this gives you an overview. Good luck, and don't let yourself be 
discouraged by my sermon! ;-) It surely is worth the work.

Martin






From MAILER-DAEMON Wed Apr 09 12:13:12 2003
Received: from list by monty-python.gnu.org with archive (Exim 4.10.13)
	id 193I8p-0006Hl-00
	for mharc-help-source-highlight@gnu.org; Wed, 09 Apr 2003 12:09:39 -0400
Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13)
	id 193HfK-000698-00
	for help-source-highlight@gnu.org; Wed, 09 Apr 2003 11:39:10 -0400
Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13)
	id 193HYz-0003Lp-00
	for help-source-highlight@gnu.org; Wed, 09 Apr 2003 11:32:39 -0400
Received: from mail1.portalis.it ([213.199.4.23] helo=portalis.it)
	by monty-python.gnu.org with esmtp (Exim 4.10.13)
	id 193HYs-0002py-00
	for help-source-highlight@gnu.org; Wed, 09 Apr 2003 11:32:30 -0400
Received: from dsi.unifi.it ([62.123.53.168]) by portalis.it  with Microsoft
	SMTPSVC(5.5.1877.197.19);	 Wed, 9 Apr 2003 17:39:05 +0200
Message-ID: <3E943C23.1060405@dsi.unifi.it>
Date: Wed, 09 Apr 2003 17:28:35 +0200
From: Lorenzo Bettini <bettini@dsi.unifi.it>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030313
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: discussion list for source-highlight <help-source-highlight@gnu.org>
Subject: Re: [Help-source-highlight] Logo
References: <3E91E19B.27577.999507@localhost> <3E9282AD.60407@gmx.de>
In-Reply-To: <3E9282AD.60407@gmx.de>
X-Enigmail-Version: 0.73.1.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
cc: dajoy@openworldlearning.org
X-BeenThere: help-source-highlight@gnu.org
X-Mailman-Version: 2.1b5
Precedence: list
Reply-To: discussion list for source-highlight <help-source-highlight@gnu.org>
List-Id: discussion list for source-highlight <help-source-highlight.gnu.org>
List-Help: <mailto:help-source-highlight-request@gnu.org?subject=help>
List-Post: <mailto:help-source-highlight@gnu.org>
List-Subscribe: <http://mail.gnu.org/mailman/listinfo/help-source-highlight>,
	<mailto:help-source-highlight-request@gnu.org?subject=subscribe>
List-Archive: <http://mail.gnu.org/pipermail/help-source-highlight>
List-Unsubscribe: <http://mail.gnu.org/mailman/listinfo/help-source-highlight>,
	<mailto:help-source-highlight-request@gnu.org?subject=unsubscribe>
X-List-Received-Date: Wed, 09 Apr 2003 16:09:37 -0000

Martin Gebert wrote:
> If it only were recompiling... ;-)
> First you'll have to write your own scanner; as a template you should 
> look at the cpp_scanner.ll or java_scanner.ll file in the src/ subdir 
> which are the "original ones" and which you could adapt for your 
> purpose. They are simply (?!) Flex files; you can get an overview of 
> Flex here:
> 
> http://dinosaur.compilertools.net/
> 

Hi!

Martin is right :-)
I was planning of providing an easier script language for automatically 
generate flex code.

However, if you don't feel like writing a flex scanner for Logo, you can 
provide me with some information about the syntax of the language 
(keywords, comments, strings...) and I'll try to do that for you.

> Sorry if you already knew that. Second you have to include your scanner 
> into the source-highlight code. Lorenzo wanted to write a How-To about 
> including new scanners (you'll mainly have to adapt the Makefiles for 
> that) and to simplify the Makefiles for that purpose, but I don't know 
> how far he's gotten with that; last time I tried to do that (been a 
> while now) it was some work... Hope he'll show up later and explain.

I still haven't done that... :-)

> 
> For testing new scanners, *I* simply replaced one of the other scanners 
> (simply give your scanner file the name of a scanner you want to 
> substitute), made source-highlight anew (by 'make') and called it with 
> the input type of the substituted scanner; the finished scanner was sent 
> to Lorenzo (with a new name). But there have been some obstacles (run 
> the scanner through flex by hand, and AFAI remember also something with 
> sed-ing some constructs in this file), so if you aren't willing to do 
> some work by hand you shouldn't go this way.

now the makefiles do not use sed stuff anymore, and use an option of 
flex :-)

however I use a more recent version of flex, that you have to download 
form the site.

I'm looking forward to hearing from you!

cheers
	Lore

-- 
+-----------------------------------------------------+
|  Lorenzo Bettini          ICQ# lbetto, 16080134     |
|  PhD in Computer Science                            |
|  Dip. Sistemi e Informatica, Univ. di Firenze       |
|  Tel +39 055 4796741, Fax +39 055 4796730           |
|  Florence - Italy         (Linux User # 158233)     |
|  Home Page        : http://www.lorenzobettini.it    |
|  http://music.dsi.unifi.it         XKlaim language  |
|  http://www.lorenzobettini.it/purple    Cover Band  |
|  http://www.gnu.org/software/src-highlite           |
|  http://www.gnu.org/software/gengetopt              |
+-----------------------------------------------------+




