Squeo

Posted by Eternal on Aug. 25, 2006, 10:23 a.m.

Hey, how's it going? Guess what? Eternal's making a programming language! OMFG! He's such a n00b, he'll never make one. Well, it's going to be interpreted, okay? But I know how I am going to get it to work, and make EXE's.

The following text is the beginning of the manual. It explains some basics of the language:

Quote:

SQUEO (Skw-eh-o)

Simple QUick Efficient Organized Programming Language.

All programming languages have a purpose. Many common purposes are to make easy applications (VB), make easy games (GML and DB), or just to be an all purpose language (C++). The purpose of Squeo is to be an easy, all-purposed language <b>EDIT: NOT TOO REPLACE C++, JUST TO MAKE EASY APPS AND GAMES</b>. Even past their basic purposes, all languages have something to set it apart from the others in it's genre. GM is good for making 2d games, DB good for making 3d, etc. Being an all-purposed language, what sets it apart from C++? Well, first off, it is only for Windows. Second, it is alot easier. It is designed to save as much time as possible while programming. The entire program can be navigated easily without the need of a mouse, so you can keep your hands on the keyboard at all times. Interface wise, there's hardly anything. Basically, with the exception of a menubar, it's a blank screen to type in. This speeds it up if you know what you are doing. Now, what if you don't know what you are doing? Because of the low difficulty level, you will find out soon enough.

Okay, you know how it is quick and simple, right? Now, how is it efficient and organized? It is efficient because not everything in the game is executed, only what is in existance. In other languages, every object is updated, even if there are 0 of them. This speeds up the programs quite a bit. Organization is a key part of developing this language. Have you ever noticed how when programming, the commands seem to be categorized? Such as, in GML, draw_set_color? Now, have you ever thought that a command could fit into another category too? Well, that's where Squeo comes in. It has commands in multiple spots, so you can choose to call whatever is easier to read for you. For example:

SCREEN PRINT "Hello World"

and

DRAW TEXT PRINT "Hello World"

do the same thing. You might say "Why would anyone do the second? It's longer…" Well, blocks. What, you say? Blocks are an element of Squeo that you probably haven't heard of before. You can do something like this:

BLOCK "DRAW TEXT " 6

What that does, is for the next 6 lines, it adds "DRAW TEXT " to the front of them. This can be used if you need to do lots of text commands within the next couple, or many, lines. If you are still wondering why this would help, let me give you an example in DarkBasic. Now, in the beginning, you have to use "load image" for all the images you need. You may need to do this 100 times even. Now, using BLOCK "load image " you could save alot of time.

Now, how do you code in Squeo? Here is a tutorial for a simple 'Hello World' program.

FPS 60

SCREEN PRINT "Hello World"

PAUSE "INPUT KEYBOARD PRESS ANY"

END PROGRAM

// The FPS of your program is automatically 30, unless you change it in the beginning. We changed it to teach you that // simple command. The SCREEN PRINT makes the words "Hello World" appear in the upper left corner of the

// screen. The PAUSE "INPUT KEYBOARD PRESS ANY" Has the program pause until it recieves input from the

//keyboard that you are pressing any key. END PROGRAM… Well, ends the program.

Okay, now execute the program. It should be a white screen with black text saying "Hello World" in the upper left. Now, how do you change the text or background color? Here, let's change our code a little:

FPS 60

BLOCK "SCREEN " 2

SET COLOR "BLACK"

PRINT "Hello World"

PAUSE "INPUT KEYBOARD PRESS ANY"

END PROGRAM

Now, the BLOCK "SCREEN " 2 adds "SCREEN " to the next 2 lines. So SCREEN SET COLOR changes the background color. Now, what about the text?

Now, I have no idea if that makes any sense to anyone or not.

It's going to include more than 500 different functions, most of which can be read more than 1 way.

Now, how am I going to distribute this? Well, if it goes okay, like this:

Squeo basics: $0. Contains more than 500 commands, and has the ability to make .exe's.

Squeo Professional: $50. Contains more than 1000 commands. Has the ability to make faster, somewhat smaller exe's. Also, it has a spell check option, that basically tells you where you made typos.

Squeo Royal: $100. Contains more than 2000 commands. Has the ability to make even faster, and very smaller .exe's. Also has a very advanced test (Which you would pretty much have to leave on overnight) That lets you input the highest that each and every variable can go, and then it tests every possible combination to see if it errors out. It records the errors in a log.

I know many of you are right now thinking "No one will buy it for $100." Maybe they will, maybe they won't. I think it's a good deal for something with more than 2000 commands, and a debug that advanced. Also, it's a simple language for beginners.

Okay, so you've seen how the blocks work, right? Well, what if you had to do maybe, 20 commands that start with "SCREEN", but somewhere in there you had to do something like "a = 15" All you have to do is BLOCK "SCREEN " 21

and then wherever you have to put in "a = 15", you put in "NOBLOCK a = 15", which excludes it from the block.

Now, how is this system going to work, programming wise? Well, it is going to use alot of string_replace's. That's all I can tell you. I am going to work on the manual some more, and then eventually post a list of all the commands in Squeo Basics.

So, what do you think of the idea?

Also, check out this random art: <a href="http://64digits.com/users/Eternal/hippieart.PNG">Here!</a href>

Fuck my computer. It's shit. The graphics still aren't right, I've got Dell shit on my Compaq computer, and my audio device is never gonna fucking work. Damn it all, now I gotta fucking deal with this shit until I can save enough money to buy a new one.

11:23 PM… Think about that one..

Comments

NeutralReiddHotel 18 years, 2 months ago

ZOMG, Wall o' Text!

Me no read wall of text. >:(

Eternal 18 years, 2 months ago

Come on, it's not that bad. I've made worse…

NeutralReiddHotel 18 years, 2 months ago

Read it.

Soo….

You're planning on doing a language that could replace C++ because it's easier? Good luck with that.

Eternal 18 years, 2 months ago

I never said replace C++. I said it was an all-purpose language, with some limitations, because it will be equal at making apps and games.

Eternal 18 years, 2 months ago

Also, read the purpose. It says to be a fast to program language, not replace C++.

Eternal 18 years, 2 months ago

Someone copied my old avatar! GASP!

Onyx 18 years, 2 months ago

Well, good luck with you project. Hope to see a demo soon. Will it be able to use windows API to make graphical interfaces?

Eternal 18 years, 2 months ago

Nope. Homemade GUI in GM. :) I might use ripper windows sprites though, XD.

Onyx 18 years, 2 months ago

no, I think will you be able to create program with GUI using YOUR language? maybe using some winAPI DLLs for GM?

gamehawk 18 years, 2 months ago

Well he couldn't sell it then. Besides WinAPI isn't exactly for newbies.