home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.acorn.tech
- Path: sparky!uunet!comp.vuw.ac.nz!gavin
- From: Gavin.Flower@comp.vuw.ac.nz (Gavin Flower)
- Subject: Re: New Language/Compiler (ideas wanted)
- Nntp-Posting-Host: debretts.comp.vuw.ac.nz
- Message-ID: <BsyHIG.GMu@comp.vuw.ac.nz>
- Organization: Dept. of Comp. Sci., Victoria Uni. of Wellington, New Zealand.
- Keywords: Compiler/Language
- Sender: news@comp.vuw.ac.nz (News Admin)
- References: <1195@grun.is> <1992Aug13.130618.18871@odin.diku.dk>
- Date: Fri, 14 Aug 1992 04:23:04 GMT
- Lines: 36
-
- >orion@grun.is (Halfdan Ingvarsson) writes:
- >
- >
- >>Hiya folks...
- >
- >> Erm. I was thinking of writing a (sort of :) compiler using
- >>my own language (a weirdo mixture of C, Pascal etc.. ) and I
- >>am getting a little short of ideas.
- [...]
- >>So.. If anyone has some cool ideas or something dreamthings they'd like to
- >>see in a compiler I'd be glad to hear from them.
- [...]
-
- A number of years ago, someone suggested a "comfrom", to match a
- "goto". When it was first mentioned, it was as a joke. However, the
- more I thought about it, the more it appealed...
-
- The idea is that both ends of the goto are labeled. This has several
- advantages:-
-
- (1) At the target label, the "comefrom" clearly identifies the places
- from which the current label can be reached, and just how many places.
-
- (2) Also it will help to discourage indiscriminant use of the
- "dreaded goto", without preventing its use in "appropiate" contexts.
-
- (3) This would give the compiler more scope for picking up errors.
-
-
-
- Gavin
- --
- Tomorrow's Society | flower_g@kosmos.wcc.govt.nz
- Depends on ----------------------------
- Today's Children - help us raise them properly!
- ******* These comments have no known correlation with dept. policy! *******
-