Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!clyde!ima!johnl From: dowding@bigburd.PRC.Unisys.COM (John Dowding) Newsgroups: comp.compilers Subject: Re: context sensitive parsing Message-ID: <564@ima.UUCP> Date: Tue, 5-May-87 11:24:24 EDT Article-I.D.: ima.564 Posted: Tue May 5 11:24:24 1987 Date-Received: Sat, 9-May-87 01:25:48 EDT References: <562@ima.UUCP> Sender: johnl@ima.UUCP Organization: Unisys Corporation, Paoli Research Center; Paoli, PA Lines: 28 Approved: compilers@ima.UUCP In article <562@ima.UUCP> Kenneth Ng writes: >Does anyone know any leads to compiler work where the target language >is context sensitive? I think that the use of term context-free and context-sensitive are misleading here. Most programming languages have context-sensitive restrictions, but they are handled in the semantics, not the syntax. As the semantic actions are generally arbitrarily powerful, they can certainly do context-sensitive checking. An example of this is the constraint in some languages that a function be defined before it is called. This can not be checked for by a context-free grammar. John Dowding dowding@bigburd.prc.unisys.com -- Send compilers articles to ima!compilers or, in a pinch, to Levine@YALE.ARPA 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