From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,4f211dac98f103cf,start X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 1995-02-20 04:03:32 PST Path: nntp.gmd.de!newsserver.jvnc.net!nntpserver.pppl.gov!princeton!gw1.att.com!csn!boulder!agate!howland.reston.ans.net!pipex!sunic!news.funet.fi!news.csc.fi!news.helsinki.fi!not-for-mail From: Jeffrey Kegler Newsgroups: comp.os.linux.announce Subject: Marpa -- The Hacker's Parser Followup-To: comp.os.linux.development.apps Date: 20 Feb 1995 14:03:32 +0200 Organization: ? Sender: wirzeniu@cc.helsinki.fi Message-ID: <3ia0ek$a3f@myntti.helsinki.fi> NNTP-Posting-Host: myntti.helsinki.fi Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Keywords: parser, Earley's algorithm Marpa is TCL 7.3 extended with an enhanced Earley's Algorithm. It handles context-free and ambiguous grammars and languages. It was developed and tested on Linux. Its README follows: language: Marpa package: Marpa is TCL 7.3 extended with an enhanced Earley's Algorithm version: Alpha 2.6 Keywords: parser, Earley's algorithm parts: parser-generator, examples, document author: Jeffrey Kegler location: via anonymous ftp at best.com:/pub/jeffrey/marpa.2.6.tar.z legalities: freely redistributable without warranty under GNU Public License Version 2 Description: Marpa is a TCL 7.3 extended with an ambiguous context-free parser which uses Earley's algorithm. It is hacker friendly, with a variety of handy features. It is intended for use in implementing parsers that use the same crude but effective approaches to parsing that humans use, whether these humans be reading natural language or computer code. TCL code is attached to every production, explicitly or by default, and this is used to evaluate the result of the parse. The grammar is specified directly in BNF, extended with Kleene star sequences. The parse logic follows directly from the BNF. It handles ambiguous grammars, ambiguous tokens (tokens which were not positively identified by the lexer) and allows the programmer to change the start symbol. The input must be divided into "chunks" of tokens for best results. There is no limit enforced on chunks, but once they get larger than 500 tokens things slow down. There is no fixed distinction between terminals and non-terminals, that is, a symbol can both match the input AND be on the left hand side of a production. Multiple Marpa grammars are allowed in a single TCL interpreter, and multiple Marpa-extended TCL interpreters can run in a single program. Speed is reasonable if not blinding, and Marpa is in use in some applications. Marpa is the outcome of the Milarepa prototype which implemented a different general parsing algorithm in Perl. requires: TCL 7.3, GNU C compiler, GNU Make updated: 1995/02/19 I hope it proves useful! Jeffrey Kegler Algorists, Inc. 743 East El Camino Real, #338 Sunnyvale CA 94087 jeffrey@best.com -- Send submissions for comp.os.linux.announce to: linux-announce@news.ornl.gov PLEASE remember Keywords: and a short description of the software.