🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.acorn.tech
Article #116

New Language/Compiler (ideas wanted)

#116
From: Halfdan Ingvarsson
Date: Mon, 10 Aug 1992 15:30
55 lines
2383 bytes
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. As I don't want to describe
it in whole, I'm gonna give you a general idea of what it shall
be..
  I'm going to make it very neat, small, fast and clean and
make it produce code that lives up to that. It's probably going
to be very Archimedes (yeah, yeah Ax000 too) specific, that is
not portable code. The reason for that is that I'm going to
implement SWI calls like procedure calls eg.

  a : Char;
  OS_WriteC(a)

or

  a,b : String;
  c : Buffer[512] of Byte;
  d : Integer;
  failed : Boolean;


OS_ReadArgs(a,b,c,d;var d;flag failed);  {'failed' is the C flag}
If failed Then OS_WriteS("Crikes! Something wrong with the input string");

You should be able to guess what it does..
And there is a support for direct Assembler in the *source* code.
Like you can define procedures as:
  ASM DEF PROC Some_Crap(r0:Integer; r1:Buffer[512] of byte; flags v:boolean);
    ......Your assembler source.....
    Called with R0 as some Integer and R1 as a Buffer of bytes at least 512
    bytes long.
  ASM END PROC

And it can be called in the normal way (e.g. Some_Crap(a,b;flags c);

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.

With thankies in advance...
       Orion O'Bitbox (orion@kopasker.is)

AMAZING BUT TRUE: If all salmon that was caught in Canada in one year, was
laid across the Sahara desert, the smell would be absolutely awful..
                                                      -Journal of Misfacts

P.S. If I had some idea about what (blush) Object Oriented code was like
(and no, I'm not talking about C++. It's crap) I'd also try to make this
language OO... So be it.. And no flame wars please >:-)

P.P.S. And don't flame me for posting it to the wrong comp.sys.acorn.xx as
I'm not starting to see any differences between them :)
Technical Details
Message-ID: <1195@grun.is>
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!isgate!krafla!grun.is!orion

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sunic!isgate!krafla!grun.is!orion
From: orion@grun.is (Halfdan Ingvarsson)
Newsgroups: comp.sys.acorn.tech
Subject: New Language/Compiler (ideas wanted)
Summary: Hmm?
Keywords: Compiler/Language
Message-ID: <1195@grun.is>
Date: 10 Aug 92 15:30:14 GMT
Organization: G.Run hf
Lines: 55