Jump to content
Sign in to follow this  
  • entries
    89
  • comments
    88
  • views
    48582

Second Post!!!

Sign in to follow this  
Azh321

151 views

So this is my second post! Since I probaly wont beable to post a pic of a demo of my engine till this weekend, or get started on rewriting it really, I guess I will post some stuff other than that until then.

Heres some info on a language I wrote a while ago, it takes a lot from C and uses Lisp's Lists. Heres a hello world and list example:

//Hello world:
main =
{
print ("Hello, World!")
}

// Example of a list:
exampleOfAList =
{
list1 = (5,3,'a',"hello")
list2 = (main@, list1, 5) //An example of everything is data..
} //see the main in list2? Thats a function we defined above but everything is data!





Everything is treated as data in this language. Variables, functions, code, are all the same. All functions take 1 parameter, a list. There are also no types and in the interpreter I wrote for this language, I also used a bignum datatype lib I wrote. (if you dont know, bignums are virtual variables that allow for virtually any size, limited by your memory not by the processor's built in sizes).

Let me know if you want to see more about this language or more about my other languages. Tomorow I will probaly post about my raytracing optimization idea that I had, though I havnt implemented it. Doubt I will, I dont know that much about ray tracers but I want to see what you guys think about it.
Later!
Sign in to follow this  


4 Comments


Recommended Comments

It a programming language actually, its just interpreted. (im guessing thats why you called it a scripting language?)

Share this comment


Link to comment
How do you develop these languages? Is it hard? Is it time consuming?

Seems like a nice thing to do [smile].

Share this comment


Link to comment
Its pretty time consuming yea and it can get hard if you want to make a complex language or want a compiler that outputs really optimized code. I might post the source to one of my compilers I made.

Share this comment


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!