home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!ogicse!emory!sol.ctr.columbia.edu!eff!world!iecc!compilers-sender
- From: firth@sei.cmu.edu (Robert Firth)
- Newsgroups: comp.compilers
- Subject: Re: Is this a new idea?
- Keywords: C, design
- Message-ID: <92-11-092@comp.compilers>
- Date: 17 Nov 92 12:54:59 GMT
- Article-I.D.: comp.92-11-092
- References: <92-10-113@comp.compilers> <92-11-088@comp.compilers>
- Sender: compilers-sender@iecc.cambridge.ma.us
- Reply-To: firth@sei.cmu.edu (Robert Firth)
- Organization: Software Engineering Institute
- Lines: 18
- Approved: compilers@iecc.cambridge.ma.us
-
- drw@euclid.mit.edu (Dale R. Worley) writes:
- >Any language has this problem if it has tokens whose syntactic
- >category can't be determined solely by the form of the token.
-
- True. The answer, I suppose, is not to design such languages.
-
- >Almost any language with an extensible set of operators is going to
- >run into this problem.
-
- Why? We have languages with extensible sets of identifiers, and none of
- the well-designed ones runs into this problem. It is simply a matter of
- specifying the lexis of operators so that they can be distinguished. As
- an obvious cheap and ugly way, require all user-defined operators to be
- delimited by $...$, or some other character not used elsewhere.
-
- --
- Send compilers articles to compilers@iecc.cambridge.ma.us or
- {ima | spdcc | world}!iecc!compilers. Meta-mail to compilers-request.
-