Creating a programming language

This is a discussion on Creating a programming language within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Well I am in deep ......Because my collegue professor, after a couple of lessons has decided to have us create ...

  1. #1
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427

    Creating a programming language

    Well I am in deep ......Because my collegue professor, after a couple of lessons has decided to have us create a programming language. To tell you the truth I don't know where to start. I tried javacc, but I am not sure this is what I am looking for. Any uselfull links would be greatly appreciated. I mean there has to be a tool to aid you on this and to help you turn your file into an executable. It could be either in C/C++ or Java. Please guys help me out here. Thanks in advance.
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    Did your professor specify a compiled language? Why not just write an interpreter?
    My best code is written with the delete key.

  3. #3
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    He didn't really specify it, but I think he's was leanning towards an executable, that's what I've seen other students do before. But most of them use a utility that's available to Visual Basic, but I rather not use Visual Basic. His only requirement is to make it so it analyses at least 6 words.. He also started talking about, "Some of you will go really simple but others will go right ahead and just about make something that compiles C entirely". So this makes me think he doesn't want an interpreter. And he gave us two weeks. Which doesn't give me a lot of time, ya know with work and all.
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  4. #4
    Registered User
    Join Date
    Jul 2003
    Posts
    450
    I think tools like yac, lex and bison will come in handy.

  5. #5
    eat my shorts!
    Join Date
    Apr 2002
    Posts
    294
    Quote Originally Posted by Prelude
    Did your professor specify a compiled language? Why not just write an interpreter?
    double that.

    since i think writting a compiler would be much more difficult than wriiting a interpreter for c++/c/java
    combine all three, make it a basic oop language (more on the lines of psudocode)


    it would be cool if i said:

    start prog:

    Func:

    dis: something //display
    do: 1+2 = sum
    out: sum //output
    Games Reviews Previews Desktop Themes Downloads Paintball Forums Shareware Freeware and much more

    The best in Technology and Gaming News

    www.back2games.com

  6. #6
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,541
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  7. #7
    left crog... back when? incognito's Avatar
    Join Date
    Oct 2001
    Posts
    1,427
    Thank you all. I am going to get on this right away.
    There are some real morons in this world please do not become one of them, do not become a victim of moronitis. PROGRAMMING IS THE FUTURE...THE FUTURE IS NOW!!!!!!!!!

    "...The only real game I thank in the world is baseball..." --Babe Ruth

    "Life is beautiful"-Don Corleone right before he died.

    "The expert on anything was once a beginner" -Baseball poster I own.


    Left cprog on 1-3-2005. Don't know when I am coming back. Thanks to those who helped me over the years.

  8. #8
    Registered User
    Join Date
    Aug 2003
    Posts
    470
    Javacc is LL(1), so for most programming languages you will have retrofit your grammar. Flex and Bison are fairly easy to use.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  2. 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
  3. Enough language discussions.
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 06-13-2004, 09:59 AM
  4. Creating my own Scripting language in C++ for CGI
    By stovellpaul in forum C Programming
    Replies: 0
    Last Post: 10-01-2002, 03:41 AM
  5. Natural Language Parsing
    By edk in forum C++ Programming
    Replies: 7
    Last Post: 04-12-2002, 07:06 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21