Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 5th, 2005, 10:54 PM   #41
kludge
Newbie
 
Join Date: Aug 2005
Posts: 2
Rep Power: 0 kludge is an unknown quantity at this point
Check out the brainfsck language. There are some very simple/small compilers for it.
kludge is offline   Reply With Quote
Old Dec 6th, 2005, 12:45 AM   #42
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 927
Rep Power: 4 lectricpharaoh will become famous soon enough
Quote:
Originally Posted by kludge
Check out the brainfsck language. There are some very simple/small compilers for it.
Hehe, all Brainfuck does is shift the load from the machine to the man. How do you think it got its moniker? Someone was trying for absolute minimal Turing completeness when they wrote that.

Besides, isn't it interpreted? Last I looked (which was a while ago), I didn't see compilers for it.
__________________
A man's knowledge is like an expanding sphere, the surface corresponding to the boundary between the known and the unknown. As the sphere grows, so does its surface; the more a man learns, the more he realizes how much he does not know. Hence, the most ignorant man thinks he knows it all. - L. Sprague de Camp
lectricpharaoh is offline   Reply With Quote
Old Dec 6th, 2005, 4:21 AM   #43
nnxion
Programming Guru
 
nnxion's Avatar
 
Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5 nnxion is on a distinguished road
Example of brainf*** By grumpy.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for."
-- Socrates
nnxion is offline   Reply With Quote
Old Dec 10th, 2005, 6:08 AM   #44
SittingDuck
Programmer
 
SittingDuck's Avatar
 
Join Date: Nov 2005
Location: Moseley, Birmingham, England, Earth
Posts: 51
Rep Power: 3 SittingDuck is on a distinguished road
Probably someone was bored. The whole point of a compiler is to make it easier - duh!
SittingDuck is offline   Reply With Quote
Old Dec 10th, 2005, 12:37 PM   #45
pilot2000
Newbie
 
Join Date: Dec 2005
Posts: 4
Rep Power: 0 pilot2000 is on a distinguished road
just became a member to this forum and saw the posts on this matter.
anyway writting a compiler is for sure a really hard thing to do esspecailly if you haven't programmed alot yet.most compilers are written in c or c++.first of all you have to learn what a compiler exactly does.heres a small deal of one type of compiler
(1) lexical analysis > (2)syntactic analysis > (3)semantic analysis > (4)target code generation.
but the first thing to do is to determine your language.(not as easy)
there are allthough some tools that will make your life easier but knowing c is a must.try looking at gnu lex/flex and yacc/bison.
pilot2000 is offline   Reply With Quote
Old Dec 12th, 2005, 7:09 PM   #46
-=PARADOX=-
Programmer
 
-=PARADOX=-'s Avatar
 
Join Date: Oct 2005
Location: Portugal
Posts: 53
Rep Power: 3 -=PARADOX=- is on a distinguished road
Well... I'm doing a pascal interpreter in Prolog...
-=PARADOX=- is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 6:57 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC