From owner-freebsd-hackers Mon Jan 4 00:49:47 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA17027 for freebsd-hackers-outgoing; Mon, 4 Jan 1999 00:49:47 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA17017 for ; Mon, 4 Jan 1999 00:49:45 -0800 (PST) (envelope-from dcs@newsguy.com) Received: from newsguy.com by peach.ocn.ne.jp (8.9.1a/OCN) id RAA09791; Mon, 4 Jan 1999 17:49:07 +0900 (JST) Message-ID: <36907EEB.1CDA8F55@newsguy.com> Date: Mon, 04 Jan 1999 17:42:19 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.5 [en] (Win98; I) X-Accept-Language: pt-BR,ja MIME-Version: 1.0 To: Andrzej Bialecki , freebsd-hackers@FreeBSD.ORG Subject: Re: FICL & Perl References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Andrzej Bialecki wrote: > > > Well, it is about as readable as a state machine can be. I didn't > > Ok, after this introduction, it begins to look scary to me.. :-) _What_ > it's actually like, a 1.5MB Forth program? ;-) :-) Hey, if it is replacing a perl script, it can only be a state machine. I could do it in lex, it would become much more readable, I suppose. It might have been done in awk or with sh+sed, but I'm not sure you could call it readable. :-) It is a 10 Kb C program (plus a 1 Kb shell script with two CAT < into "\n", but with a few additional functions to annoy everyone's life (in particular, converting //-style comments into C-style comments, and quote-escaping). -- Daniel C. Sobral (8-DCS) dcs@newsguy.com "Heart like a Gabriel, pure and white as ivory, soul like a lucifer, black and cold as a piece of lead." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message