Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

ITT the ABC Programming Language

Name: Anonymous 2008-07-29 19:29

#include <stdio.h>

int main(int argc,char argv*[]){
  int i = 0;
  int BUFFA;

  while(argv[i]!='\0'){
    if(argv[i]='a')
      BUFFA++;
    else if(argv[i]='b')
      BUFFA--;
    else if(argv[i]='c')
      printf("%i\n",BUFFA);
    else printf("%s","Error.\n");
  }
}

Name: Anonymous 2011-01-05 12:43

/prog/ CHALLENGE:
Make a compiler for The ABC Programming Language

Only ABC->ASM are allowed!
ABC->C compilers are banned as one has already been implemented by >>142.


Requirements:
• Must fully adhere to the “The ABC Programming Language  Specification” described in The ABC Programming Language page on Esolangs.org[1]
• One can implement non-standard extensions to the language as long they don't break compatibility with the standard[1].

Bonus points if:
• It's an optimising compiler.
• Has flags to switch optimisations on/off.
• It's written in fully POSIX-compliant C code. (if using another language, it must be executable on every POSIX-compliant system)
• It writes directly an ELF executable or equivalent.
• The generated code is efficient.
• The compiler is written in well-written, efficient and idiomatic code.

--
References:
[1] http://esolangs.org/wiki/ABC

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List