Write a compiler in whatever language you wish (do it in QBASIC for the lulz), then when your compiler gets good enough re-write the compiler in your own language!
Name:
Anonymous2007-07-06 1:06 ID:sGHnFMOB
>>4
Writing a compiler in shell scripting is superior.
Build a complete language using elements of different languages, while overcoming the language in question's deficiencies. I'm writing a language now that supports AI, OOP (the real deal, not C++ or Java shit) and Component creation with hardware/software communication. It should seriously kick ass.
>>4
It would be a mistake to let your language design get directed towards the needs of writing a compiler if that's not the sort of thing you are designing your language for to begin with.
Logo, for example, lacks a self-hosted compiler and is better for it.
First you decide what the language should be used for, then you design it.
Name:
Anonymous2007-07-06 18:20 ID:MYfE9h1z
SICP, last chapters. If there is a question, the answer is SICP.
Name:
Anonymous2007-07-06 18:46 ID:0fX31l/p
It's useless to make an other programming language. Lisp is the perfect language. Achieve Satori and you will understand.
Name:
Anonymous2007-07-06 22:18 ID:TNZL5FkE
Think the language.
Write a parser, which should convert the language to an AST.
Then, write some lisp macros.
Done!
Name:
Anonymous2007-07-06 22:36 ID:Si+MV7nF
one word, LAMBDA CALCULUS, language design over.
everything else is just libraries.
>>32
Implement a slow, buggy subset of Common Lisp. Most languages do.
Name:
Anonymous2007-07-07 11:26 ID:ajxOBTjh
10 PRINT "SPL SHITTY PROGRAMMING LANGUAGE INTERPRETER"
11 PRINT "VERSION -32767 07-07-2007"
12 PRINT "(C)2007 >>38, RELEASED UNDER GPL"
20 PRINT "BYTES FREE=";FRE(0)
100 INPUT ">";C$
101 IF C$="EXIT" THEN SYSTEM
102 IF C$="RUN" THEN PRINT "PROGRAM NOT DEFINED"
103 IF C$="FREEMEM" THEN PRINT FRE(0)
104 IF C$="SAVE" THEN PRINT "PROGRAM 100% SAVED RELIABLY"
110 PRINT "SYNTAX ERROR"
111 GOTO 100
Get a copy of "Modern Compiler Implementation" in C by A. Appel. That should get you on your way to writing a language/compiler for it
Name:
Anonymous2007-07-08 1:05 ID:dJrr99D5
Read the Dragon Book. After it you will either know everything by yourself or be very confused. In latter case you shouldn't program anymore and switch to law studies or something.
Name:
Anonymous2007-07-08 7:41 ID:ZTJIDjUD
>>14
i think php would be more efficient for a task like this
Name:
Anonymous2007-07-08 14:47 ID:OKHdk2lR
>>41
I think you've never heard of BBCode, which would be far more efficient for a task like this.