Home | Reviews | GUIpedia | Forum | Fun500


JasonLanguage Syntax Proposal
Ich habe a few language syntax proposals for Adrenochrome.  I was wondering which would be most appropriate.  The compiler will always output as the same format so the Drencrom files read by the kernel won't be a problem.  Here are the proposals in a simple "Hello World" format:

Proposal #1 :Start
  LET Counter = Counter + 1
  TEXT Counter, Counter, "Hello World!", &H111111 * Counter
  IF Counter = 600 - 16, "Restart"
  GOTO "Start"
:Restart
  LET Counter = 0
  GOTO "Start"

Proposal #2

:Start
  Counter;LET(Counter+1)
  TEXT(Counter,Counter,"Hello World!",&H111111*Counter)
  IF(Counter,"=",600-16,"Restart")
  GOTO("Start")
:Restart
  Counter;LET(0)
  GOTO("Start")
2010-10-3112:27 AM

ToddRe:Language Syntax Proposal
It looks like the program will just keep looping and printing "Hello World" on the screen. Why not just do something like BASIC: DO
  PRINT "HELLO WORLD"
WHILE 1
Or something more like a byte-code Assembler-like language: LOAD BUF, "Hello World"
LOOP: CALL PRINT
JUMP LOOP
2010-10-312:10 AM

HorvatMRe:Language Syntax Proposal
The first one. Parantheses just add unnecessary clutter.
2010-10-317:46 PM

BASIC Programming Help


2021 Brandon Cornell