Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!ima!johnl From: johnl@ima.UUCP Newsgroups: mod.compilers Subject: Dynamic-grammar compilers Message-ID: <512@mntgfx.MENTOR.COM> Date: Tue, 10-Feb-87 14:32:54 EST Article-I.D.: mntgfx.512 Posted: Tue Feb 10 14:32:54 1987 Date-Received: Thu, 12-Feb-87 04:34:30 EST Sender: johnl@ima.UUCP Reply-To: nmyers@mntgfx.MENTOR.COM (Nathan Myers) Organization: Mentor Graphics, Beaverton OR Lines: 9 Keywords: grammar dynamic parser variable syntax Approved: compilers@ima.UUCP I recommend doing a literature search for papers by David Sandberg. He's a young professor at Oregon State U. who built a compiler with a freely redefinable syntax. The compiler ran at 2000 lines/minute on a Vax, fast enough to be usable, I think. I remember it was possible to define a "|x|" absolute value operator, and he demonstrated a header file to make ";" statement delimiters optional. Operator precedence was specifyable, pair by pair, but that would get huge in a real system. Nathan Myers -- Send compilers articles to ima!compilers or, in a pinch, to Levine@YALE.EDU Plausible paths are { ihnp4 | decvax | cbosgd | harvard | yale | cca}!ima Please send responses to the originator of the message -- I cannot forward mail accidentally sent back to compilers. Meta-mail to ima!compilers-request