Thread: New language using C

  1. #1
    Unregistered
    Guest

    Question New language using C

    I'm another C newbie who came across a statement in a book about C programming. In a chapter dealing with strings, the author said that a new computer language could be written using C. Nothing new there. Except he was implying it could all be done with string manipulation. I presume this new language would still be sent to a C compiler.
    Can anyone here expand on this possibility?

  2. #2
    Registered User
    Join Date
    May 2002
    Posts
    41
    Huh? What do you mean by "all done by string manipulation"? Of course you need string manipulation to parse the code but that's not everything of course.
    Look at perl, I assume perl is written in C. I also think that C# is written in C but I don't know. Mono sure is. Oh know wait, I think C# was written in C# itself or something like this. The world of compilers is full of wonders...

  3. #3
    Im back! shaik786's Avatar
    Join Date
    Jun 2002
    Location
    Bangalore, India
    Posts
    345
    I agree with Spark. The author is probably only talking about the "Code Parsing", which is a must for any compiler. But this is not all to the development of a new language.

  4. #4
    ....
    Join Date
    Aug 2001
    Location
    Groningen (NL)
    Posts
    2,380
    >a new computer language could be written using C.

    I guess he meant that C can be used to write compilers and interpreters. C can be used to write compilers and interpreters for existing and new language. Note that both designing a language and writing a compiler or interpreter are quite complex things.

    When creating software, you usually write code into a textfile which you pass to the compiler. A textfile can be seen as a collection of strings, so in that way the author of your book is correct. But it is too simple to say that writing compilers is just manipulating strings.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What language did they make Java in?
    By jverkoey in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 07-03-2005, 04:18 PM
  2. Strange loop
    By D@rk_force in forum C++ Programming
    Replies: 22
    Last Post: 12-18-2004, 02:40 PM
  3. assembly language...the best tool for game programming?
    By silk.odyssey in forum Game Programming
    Replies: 50
    Last Post: 06-22-2004, 01:11 PM
  4. Language of choice after C++
    By gandalf_bar in forum A Brief History of Cprogramming.com
    Replies: 47
    Last Post: 06-15-2004, 01:20 AM
  5. Language Script..
    By vasanth in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 03-30-2003, 06:48 AM