Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old Nov 16th, 2005, 10:47 AM   #31
mikaoj
Programmer
 
mikaoj's Avatar
 
Join Date: Aug 2005
Location: Norway
Posts: 56
Rep Power: 0 mikaoj is an unknown quantity at this point
I know that a Compiler-Compiler is a parser generator.
But I meant something special with Compiler-Compiler.
I could set the word in qoutation marks.
__________________
Heh.
mikaoj is offline   Reply With Quote
Old Nov 16th, 2005, 11:16 AM   #32
jim mcnamara
Hobbyist Programmer
 
Join Date: Jun 2005
Location: New Mexico
Posts: 228
Rep Power: 4 jim mcnamara is on a distinguished road
Alfred Aho is the best source on designing and building compilers.
This is written in English, I don't know of any translations:
'Compilers' by Alfred V Aho, et al

It is a VERY good book - you can get a used copy for under $US 20.

He has a new book out '21st Century compilers' - which I have not read.
jim mcnamara is offline   Reply With Quote
Old Nov 16th, 2005, 12:51 PM   #33
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by prog master
I know that a Compiler-Compiler is a parser generator.
Not quite; a compiler-compiler means just that. The problem is that many parser generators are misnamed as compiler-compilers, due to historical reasons. I just mentioned it to make sure people didn't get the idea that programs like YACC or JavaCC were anything more than parser generators.
Quote:
Originally Posted by prog master
But I meant something special with Compiler-Compiler.
I could set the word in qoutation marks.
What did you mean, then?
Arevos is offline   Reply With Quote
Old Nov 16th, 2005, 1:07 PM   #34
mikaoj
Programmer
 
mikaoj's Avatar
 
Join Date: Aug 2005
Location: Norway
Posts: 56
Rep Power: 0 mikaoj is an unknown quantity at this point
A Compiler especially made to make new Compilers.
I'll someday try to write something like that.
I call it Compiler-Compiler.

I think I have read somewhere that Pascal was written for this kind of programming.
__________________
Heh.
mikaoj is offline   Reply With Quote
Old Nov 16th, 2005, 1:24 PM   #35
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by prog master
A Compiler especially made to make new Compilers.
I'll someday try to write something like that.
I call it Compiler-Compiler.
I don't think a true compiler-compiler has ever been made. Compilers are too syntax-dependant to be automatically generated.
Arevos is offline   Reply With Quote
Old Nov 16th, 2005, 1:57 PM   #36
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
Compiler-compiler? Lazybones.
SittingDuck is offline   Reply With Quote
Old Nov 17th, 2005, 1:33 AM   #37
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by SittingDuck
Compiler-compiler? Lazybones.
Being lazy is a desirable habit for any programmer. No point in reinventing the wheel, after all
Arevos is offline   Reply With Quote
Old Nov 17th, 2005, 7:51 AM   #38
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Unproductiveness gained by the use of the wrong tool, or the right tool in the wrong way, has as much value as that gained by sitting on the secretary's desk and flirting. Which is to say, none; The latter is more fun and has, at least, a proper motive.
__________________
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
DaWei is offline   Reply With Quote
Old Nov 17th, 2005, 9:04 AM   #39
MBirchmeier
Hobbyist Programmer
 
Join Date: Oct 2005
Posts: 211
Rep Power: 3 MBirchmeier is on a distinguished road
Quote:
Originally Posted by DaWei
Unproductiveness gained by the use of the wrong tool, or the right tool in the wrong way, has as much value as that gained by sitting on the secretary's desk and flirting. Which is to say, none; The latter is more fun and has, at least, a proper motive.
<off topic>
There is always value to be gained by using duct tape to fix something
</off topic>

I bet you could make a true compiler compiler for a context free grammar rather easily. By specifing a format in which to produce a grammatical construct, then in line specifying it with code necessary to execute said gramatical construct a true compiler compiler could be created.

-MBirchmeier
MBirchmeier is offline   Reply With Quote
Old Nov 17th, 2005, 9:54 AM   #40
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by MBirchmeier
I bet you could make a true compiler compiler for a context free grammar rather easily. By specifing a format in which to produce a grammatical construct, then in line specifying it with code necessary to execute said gramatical construct a true compiler compiler could be created.
You seem to be describing a parser generator, rather than a piece of software that works out how to compile a piece of code based only on its syntax and the desired result.

If we take the phrase "compiler compiler" literally, then it is merely a software that compiles compilers. In other words; a compiler. However, the phrase implies that the software is somehow specifically designed for compiling compilers. Perhaps some manner of optimisation takes place, that is crucial for compiling. Or perhaps, given a set of rules, the software works out a compilation algorithm on its own.

Bleh, but it's pointless arguing over something that doesn't exist. Suffice to say that when people say "compiler compiler", usually they mean parser generators, not anything which actually compiles source code. I emphasised the misnomer only to make sure that people don't think that "compiler compilers" will help them write software that turns a parsed syntax tree into machine code.
Arevos 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 1:22 AM.

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