![]() |
|
#1
|
|||
|
|||
I want to make a compiler!Hi, i am new bie here, i want to know that how a compiler is created and what lies the difference between a 4th and a 5th generation language, i heard that sanskrit is the best language in which a compiler can be written and the world's most forthcoming next generation languages will be more simpler, less code requiring than the ones which need today and will their compiler be written in sanskrit.
plz help me in finding an answer to my question!!! nishant. |
|
#2
|
|||
|
|||
Re: I want to make a compiler!!!!Quote:
I want to end the over-use of punctuation marks, run-on sentences, miscapitalization and "Internet speak" words like "plz." I highly doubt either of us will achieve either goal! Your "I heard that Sanskrit is the best language" is a fool's errand. Also, best is the enemy of "good enough." However, in the interest of informal debate, let's assume that Sanskrit somehow applies to compiler code authoring. Some might say that English code authoring is dominant in the industry, but why is it that any language might be "better" than another? How does the computer you're using work with character sets? English characters are well-represented in ASCII. Few "non-Latin" languages "work" with English characters and therefore ASCII. If we were to assume that all languages can be represented using a double byte character set such as UNICODE, then we can also suggest that any computer parsing a double byte character set required language would have to parse twice as many bytes as a language supported by ASCII. If we were to assume that a single Sanskrit character could represent a complex idea, such as is possible using Kanji (I don't know Sanskrit, except that the word is capitalized), then it also suggests that perhaps fewer Sanskrit characters than English characters would be required for the job of producing code. This may result in a "data compression" rendering the double byte character set an actual advantage. Then we enter the realm of whether or not the compiler would be reasonably well-adopted by a large community. Certainly one could assume that those who know Sanskrit (beyond the choice of capitalization) would be probable adopters. However, even that assumption could be hideously wrong, particularly if those who were writing programs and knew Sanskrit were working on projects for English users. We can also strongly assume that all those who do not know Sanskrit would be very unlikely to adopt its use. Unless, of course, you mean to say that the compiler is somehow written using Sanskrit characters but parses English characters. In which case, would it produce error messages and warnings in English? In which case it would be written in English and Sanskrit! So, we can summarize the suggestion of "best" as having at least the following flaws: 1: Requires double byte characters 2: English is the adopted language of developers using most current programming languages. 3: May not even be suitable for those who know Sanskrit These tend to be easily perceived as "negative" arguments, while I'm sure that there are a number of positive ones. It is not my intention to be negative, but I do have a question: Did you previously ask this question in Sanskrit somewhere else or just in English here? If what I assume is the correct answer is the latter, then my point is made. English is the language of computer programming. Not necessarily because it is better, but because it is. I always find it incredibly humorous when I encounter code written in a mixture of English and another language. It just strikes me as being funny when a function name or a variable is written using ASCII characters, but in a non-English language...all intermixed with English keywords. What stikes me as being most funny about it is that most of the developers I've met that do this speak English acceptably well! Therefore, I think that such arguments that arise as to whether a spoken language is "best" for a particular programming task are really little more than rebuttals offered as gestures in spite of the domination of English in this field. ...which is a run-on! If you are serious about writing a compiler, get Aho's (et al) Dragon book on compiler design. Of course, it may not have been translated to Sanskrit! ![]() :davis: |
|
#3
|
|||
|
|||
Re: I want to make a compiler!!!!hey i am too into writing a compiler as my college's mini project scheme i'll use flex and bison and yacc..
i'll begin with the building next week.. |
Recent GIDBlog
Python ebook by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The