Sign in to follow this  
SlingShot3D Creator

In Need Of BASIC!

Recommended Posts

Please can you guys help me? Im not very experinced in Programming,so i want to learn how to with the BASIC PL,but i cant find nothing on it :( (strange) And another thing. How do you make a Programming Language? Like if i take BASIC and make it better!(Faster,add more stuff,make it OOP) Thanx guys.(and gals) :)

Share this post


Link to post
Share on other sites
I recommend you to use DarkBASIC [ http://darkbasic.thegamecreators.com/ ]

By The Way,
What do you mean guy ? Do you want to make a "Programming Language" like BASIC, and C++ ? That is very hard, tough learn C++ is hard, what about making C++ ?

Share this post


Link to post
Share on other sites
Quote:
Original post by SlingShot3D Creator
How do you make a Programming Language?
Like if i take BASIC and make it better!(Faster,add more stuff,make it OOP)

First you will need to specify the exact grammar of your language en detail, e.g. using Backus Naur Form notation.
Then, depending on how much time and effort you want to spend, you either use some tools to build your parser and compiler or you do it yourself ([lol]) and start reading Let's Build a Compiler! (aka 'The bible of compiler programming').
Since I shamelessly assume you have no prior knowlegde on topics like context-free languages and -grammars (some info) I can only warn you about trying to build your own programming language. This is a very difficult and involved task that you will most likely not be able to complete in a reasonable amount of time without further years of study. Nevertheless, I won't hold you back from proving me wrong [smile]. Start with links I provided - they contain very good resources on the topic (either directly or via included links).

Good luck!
Pat.

[edit]
BASIC is a very friendly language to build an interpreter/compiler for. You should actually try it out if you really want to - it's fun!
[/edit]

Share this post


Link to post
Share on other sites
This might sound stupid but..........

To make a Programming Language i need to know how a programming language works and to know how it works i need to know how to use it and to know how to use it i need to learn it and to learn it i need books and to get books i need money and to get money i need to work for it and to work i need a job and to get a job i need to be 18 and to be 18 i need to wait till december.

IF THATS TRUE

Then im F*****!!!

Well any good books for me?Really good ones please help me.
(I saw the book page but i need books that i know are good so i need opinions)

Thanx GDev Community!

Share this post


Link to post
Share on other sites
if all you want to do is program for fun do basic, if you ever want to do serious programming do python (www.python.org). basic gives bad habits, python doesnt. I did blitz basic for 2 months before I did c++, whenever I needed help I was told "clean up your code, it will help you", I have gotten rid of all my bad coding habits I got from basic, but it took 7 months. python is what you are looking for. after you get comfortable with python do c++ or java.

Share this post


Link to post
Share on other sites
I would say go with freeBasic if you want to learn to make games for Windows using BASIC. It's pretty much Visual C with the syntax of QB. Very fun tool to play with! Visit these pages to learn more:

www.freebasic.net <--- this is where you get the command line compiler
www.freebasic.tk <---- this has forums to freeBasic
www.hot.ee/fbide/ <---- this has an IDE for freeBasic, and the IDE comes with
freeBasic if you download the right one. Very useful!


Good luck, and have fun.

Share this post


Link to post
Share on other sites
Use Blitz basic it's imo the best programming language slanted towards game dev for beginners, and it does give some nice coding habits since it's feels more c-like than Basic like.

It does not really mather for a beginner what the language is when it comes to learn coding habits, since this is something you gradually learn.
Create nice looking and apealing code can even be done in good old basic.

I've been programming in C/C++/Java/Pascal for over 3 years and began with Blitz 3d like 5 months ago and it really is amazing to see what you can do with this language if you really spend time on it.

I have just made my fourth complete game, and have two more on the go! Have been developing six 2-D Arcade retro-games in parallel for the last three months! No sleep here! ;)

So give Blitz try, highly recomended for anyone! :)

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Try BCX BASIC.
Quote:
BCX is a small command line tool that inputs a BCX BASIC source code file and outputs a 'C' source code file which can be compiled with many C or C++ compilers.

It has always been possible to modify the language itself, as BCX was written in BCX, but it is now also open source.

You can embed C and/or assembly code within your BASIC programs before compilation, so speed should not be an issue.

Share this post


Link to post
Share on other sites
Quote:
Original post by game mercenary
if you can do c or assembly, you dont need to do the krutch also known as basic.

It wouldn't have to be code that you'd written yourself. You may have found a fast routine posted on a site or in a book.

Share this post


Link to post
Share on other sites
I see, but it sounds like he wants to do advanced programming, this will take years to get to and basic will be a stumbling block in his way. python is like a basic language but it forces some things that basic doesnt. I would say that he is better off with python if he ever wants to code in c++ or a real language well, or without learning it the hard way like I did.

Share this post


Link to post
Share on other sites
The original poster mentioned wanting to learn BASIC, and as BCX is compiled to C there are certain restrictions in place that discourage bad habits. For example, you must declare variables before using them.

Like most modern dialects, it is fairly structured, and it is also possible to view the intermediate C source as a learning aid when (s)he is ready to move on to C/C++ coding.

Share this post


Link to post
Share on other sites
>if you can do c or assembly, you dont need to do the krutch also known as basic.

And if you know machine code, you dont need the krutch also known as assembly.

And if you can do calculations very fast, you dont need the krutch also known as computer.

And if my granny had wheels she would be a car.

And if... :P

Seriously, it's not important in what you code, what's important is what you code.

BTW forget writing a langage a compiler or anything, until you know what is a variable. And forget about programming in general until you have a decent comprehension of algebra and problem solving with math. From your posts it looks you might be a bit too young...

If you feel you're good enough, give a try to the easiest thing there is, i.e. some free basic script. try to make a ball move. then try to amake two balls move... then try to put gravity, make them rebound... If you manage to do this I would be already impressed... do this before anything else. If you dont manage to do this in a week, then quit programming until your logical skills get better.

Share this post


Link to post
Share on other sites
So, you meant you want a book that can help you to make a programming language ? Or maybe just a book that can help you to make a computer program / game ?

[EDIT]
Just know, the sound is NOT stupid, it was a good idea to make a programming language, so, if you done the programming language, you don't need to learn your own programming language, because you are the creator of the programming language.
[/EDIT]

Even if you are beginner, you might use "The Complete C++ Training Course, Fourth Edition", $92.63 (Expensive ! But I thought it was a good book. In fact, I never use it, just I was wondering if I have this book)

[Edited by - Inov on February 15, 2005 3:52:17 AM]

Share this post


Link to post
Share on other sites
Quote:
Original post by The Najdorf
>if you can do c or assembly, you dont need to do the krutch also known as basic.

And if you know machine code, you dont need the krutch also known as assembly.


only goes to show how little programming you know, a commom mistake is that assembly is different than machine code.

Share this post


Link to post
Share on other sites
machine code is 0001110101010010...

Anyway its true, I dont really know much about programming. But I least I made a game that sold 50 copies at 15.00$ (http://www.radicalrebound.com/)

What have you got to show off, with all your knowledge?

Share this post


Link to post
Share on other sites
Quote:
Original post by The Najdorf
machine code is 0001110101010010...

Anyway its true, I dont really know much about programming. But I least I made a game that sold 50 copies at 15.00$ (http://www.radicalrebound.com/)

What have you got to show off, with all your knowledge?


I would respect it is it wasent in basic, almost anyone can do a game like that in basic. but then again I want to do programming for a living so I am serious about programming.

Share this post


Link to post
Share on other sites

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

Sign in to follow this