![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Hobbyist Programmer
Join Date: Apr 2006
Posts: 155
Rep Power: 3
![]() |
I'm currently making an interpreter for Brainfuck.
I started out with first just make the interpreter, and then tested it with different programs I found online. Now I'm making some GUI for it. All the work is being done in C and the Win32 api. But imo your project sounds nice.
__________________
-- v0id
|
|
|
|
|
|
#12 | |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
Quote:
Stop thinking about the language from a user's perspective. Think about how easy it is for a computer to interpret. All of the commands in Befunge are denoted by single characters, so the look-ahead is exactly one character. Hell, you don't even need a parser generator for that, a case statement would do! The only potential point of difficulty in Befunge is that it's a two dimensional language, but this isn't much of a sticking point. A Pascal or BASIC interpreter would be at the very least twenty times the size. Indeed, I wouldn't be surprised if it were a hundredfold larger, as you have to deal with all sorts of scoping and memory management crap. Befunge doesn't have any of those problems. Conventional languages, with the possible exception of Lisp, usually have very involved and complex syntaxes. I would certainly not recommend using such languages as a starting point. |
|
|
|
|
|
|
#13 |
|
Newbie
Join Date: Jul 2006
Location: Heart of Gold
Posts: 23
Rep Power: 0
![]() |
Wikipeda also states "The language was originally created by Chris Pressey in 1993 as an attempt to devise a language which is as hard to compile as humanly possible"
__________________
"Why should I want to make anything up? Life's bad enough as it is without trying to invent any more of it." |
|
|
|
|
|
#14 | |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
Quote:
|
|
|
|
|
|
|
#15 |
|
Newbie
Join Date: Jul 2006
Location: Heart of Gold
Posts: 23
Rep Power: 0
![]() |
Well screw you arevos
I dont give a fuck what you think. Your not all knowing. I think your wrong on this one. If your new to interpreters then keep it simple.
__________________
"Why should I want to make anything up? Life's bad enough as it is without trying to invent any more of it." |
|
|
|
|
|
#16 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Cogent reply. No fallacious reasoning in THAT enlightening argument.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#17 |
|
Hobbyist Programmer
Join Date: Apr 2006
Posts: 155
Rep Power: 3
![]() |
Marvin, Arevos are right.
Gryfang wants to make a interpreter, not a compiler. It's two different things. Compiler make it to machinecode or something else, when a interpreter is 'testing' your code.
__________________
-- v0id
|
|
|
|
|
|
#18 |
|
Newbie
Join Date: Jul 2006
Location: Heart of Gold
Posts: 23
Rep Power: 0
![]() |
Yeah, i said i dont give a FUCK. In English that means i dont care.
One last note: i am the same person as nemesis. so Marvin == nemesis.
__________________
"Why should I want to make anything up? Life's bad enough as it is without trying to invent any more of it." |
|
|
|
|
|
#19 |
|
Hobbyist Programmer
Join Date: Apr 2006
Posts: 155
Rep Power: 3
![]() |
Then I say: I wouldn't give a fuck if you were Bush.
__________________
-- v0id
|
|
|
|
|
|
#20 |
|
Newbie
Join Date: Jul 2006
Location: Heart of Gold
Posts: 23
Rep Power: 0
![]() |
If i were Bush i would stop listening to the american jews who seem to control US foreign policy at the moment.
__________________
"Why should I want to make anything up? Life's bad enough as it is without trying to invent any more of it." |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| If you had it to do all over again, which language? | peace_of_mind | Coder's Corner Lounge | 24 | Jan 13th, 2008 5:06 PM |
| The C programming Language (2nd Edition) | nnxion | Book Reviews | 10 | Jul 6th, 2007 3:29 PM |
| Language display in program | Prm753 | C++ | 3 | May 30th, 2006 5:45 PM |
| More languages? | UnKnown X | Coder's Corner Lounge | 27 | Dec 18th, 2005 3:06 PM |