PROSEED - Multi purpose interpreter (WIP) >UPDATE!!!<
PROSEED - Multi purpose interpreter (WIP) >UPDATE!!!<
I have tried doing this before, but never got very far.
I am trying to write my own programming language!
This is what I have done...
It is a command line interpreter. Just drag and drop one of the sample programs onto it and watch it run.
It has a simple syntax:
- White spacing may be used.
- Parameters must be separated by colons.
- Each line with parameters must end with a colon.
- Preprocessors are optional, but the program must begin with 'start'
- Preprocessors define max lines, parameters, and variables. (memory)
- The music command is good for making music!
LAST UPDATE: 10/28/09
Download it here: http://geekbasic.webs.com/PROSEED.zip
It includes:
- Source code
- Compiled executable
- Four sample programs
- yay!!!
I would post some sample code, but this forum screws up my code every time i post on here.
This was not meant to be anything really useful or special. I KNOW NOBODY WILL EVER WANT TO USE THIS BUT I GOTTA TRY!
I am trying to write my own programming language!
This is what I have done...
It is a command line interpreter. Just drag and drop one of the sample programs onto it and watch it run.
It has a simple syntax:
- White spacing may be used.
- Parameters must be separated by colons.
- Each line with parameters must end with a colon.
- Preprocessors are optional, but the program must begin with 'start'
- Preprocessors define max lines, parameters, and variables. (memory)
- The music command is good for making music!
LAST UPDATE: 10/28/09
Download it here: http://geekbasic.webs.com/PROSEED.zip
It includes:
- Source code
- Compiled executable
- Four sample programs
- yay!!!
I would post some sample code, but this forum screws up my code every time i post on here.
This was not meant to be anything really useful or special. I KNOW NOBODY WILL EVER WANT TO USE THIS BUT I GOTTA TRY!
Last edited by bongomeno on Wed Oct 28, 2009 10:06 pm, edited 5 times in total.
- burger2227
- Veteran
- Posts: 2466
- Joined: Mon Aug 21, 2006 12:40 am
- Location: Pittsburgh, PA
Why so complex? You managed to get rid of the quotation marks, but quadrupled the use of colons. Any key using SHIFT is more effort too. I gather that they are parameter markers.
What does \n do?
Try to make it easier to code. That will get you further.
What does \n do?
Try to make it easier to code. That will get you further.
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
The use of colons are to separate the parameters. The \n is something I stole from C or C++, it creates a new line. It is a pain to use at first, but it becomes useful once you get used to it.
I could try to use another character to separate the parameters, but I chose the colon because it looks best. Other options could be the semicolon comma or period. None of these use the SHIFT key.
I could try to use another character to separate the parameters, but I chose the colon because it looks best. Other options could be the semicolon comma or period. None of these use the SHIFT key.
- burger2227
- Veteran
- Posts: 2466
- Joined: Mon Aug 21, 2006 12:40 am
- Location: Pittsburgh, PA
I tried C long ago! It is a pain in the ass to use! It requires too many things to do something, but if you code it right, it will work perfectly.
Qbasic was made so that you don't have to tell it that is the end of a line.
Basic is simple and pure! Why create a NEW language that incorporates the WORST of C into a basic language.
QB64 uses C to create a program without the programmer knowing any of the C rules. You will STILL have to be BETTER than the simplicity of basic! That is a BIG challenge to begin with...
EASY is better than HARD! Try to make it easier to use.
Ted
Qbasic was made so that you don't have to tell it that is the end of a line.
Basic is simple and pure! Why create a NEW language that incorporates the WORST of C into a basic language.
QB64 uses C to create a program without the programmer knowing any of the C rules. You will STILL have to be BETTER than the simplicity of basic! That is a BIG challenge to begin with...
EASY is better than HARD! Try to make it easier to use.
Ted
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
I know it is not pretty, but my goal here was not to create another BASIC. My goal was to at least make a working language. I plan on making this similar to Python in the way that it will be optionally Procedural or OO. I should be able to create functions or modules like this:
or at least something like that... I might even make each module work like a function by adding a 'return' command.
Code: Select all
!maxlines 255
!maxparams 10
!maxvars 255
start module1
print Here is a message from module 2... : \n :
run module2
end
end module1
start module2
print I am module one : \n :
end module2
- burger2227
- Veteran
- Posts: 2466
- Joined: Mon Aug 21, 2006 12:40 am
- Location: Pittsburgh, PA
Well, good luck with it. I'm not trying to discourage you! Just try to keep it as simple to use as possible and your efforts may pay off.
Basic is hard to beat for simplicity, but new ideas can also have benefits.
Basic is hard to beat for simplicity, but new ideas can also have benefits.
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
The easier the language, the harder the compiler/interpreter. Taking that into consideration...look at how easy HTML is...now make an HTML interpreter. A world of difference in terms of challenge. It is not easy to make a BASIC, or even a BASIC-like. That's why there are so few BASIC compilers but so many interpreters...BASIC is far easier to interpret than to compile, though even just interpreting it is a challenge. C has a steep learning curve if you've used BASIC for too long, but once you get over that initial curve, it's easy as pie.
I have been working on this. I will try to update the post later.
What I have added:
- Custom user functions that return either void, value or variable.
- More support+functions for making games.
- Fixed a lot of bugs.
- Created several more sample programs
Both the new OO style code AND the procedural code will work without modification!
Here is are some code samples to demonstrate the functions...
or
What I have added:
- Custom user functions that return either void, value or variable.
- More support+functions for making games.
- Fixed a lot of bugs.
- Created several more sample programs
Both the new OO style code AND the procedural code will work without modification!
Here is are some code samples to demonstrate the functions...
Code: Select all
start
call myfunction:void:
end
function myfunction:
print hey i am in a function!!!:\n:
return
Code: Select all
start
print gimmie a number and i will add 2 to it...:\n:
input #0:
call add2:#1:
print #1:
print gimmie another and i will divide it by 2...:\n:
input #0:
call div2:#1:
print #1:
end
function add2:
let #0:=:#0:+:2:
return #0:
function div2:
let #0:=:#0:/:2:
return #0:
- BigBadKing
- Veteran
- Posts: 83
- Joined: Fri Oct 09, 2009 12:39 pm
- Location: Space
- Contact:
- BigBadKing
- Veteran
- Posts: 83
- Joined: Fri Oct 09, 2009 12:39 pm
- Location: Space
- Contact:
- BigBadKing
- Veteran
- Posts: 83
- Joined: Fri Oct 09, 2009 12:39 pm
- Location: Space
- Contact:
- BigBadKing
- Veteran
- Posts: 83
- Joined: Fri Oct 09, 2009 12:39 pm
- Location: Space
- Contact:
download
i tried to download it but the application wasnt working so i tried the .bas file and it said the if statement was addvanced so i dont know what to do
Go to my Qbsite its: Trueqb.webs.com
Or if you play nazi zombies go to www.Nazizombys.com and register for cheats, hints, and strategys.
Or if you play nazi zombies go to www.Nazizombys.com and register for cheats, hints, and strategys.
- BigBadKing
- Veteran
- Posts: 83
- Joined: Fri Oct 09, 2009 12:39 pm
- Location: Space
- Contact:
- burger2227
- Veteran
- Posts: 2466
- Joined: Mon Aug 21, 2006 12:40 am
- Location: Pittsburgh, PA
SURE! It also placed the smiley faces too.....
You can remove posts if they are not too old King.
You can remove posts if they are not too old King.
Please acknowledge and thank members who answer your questions!
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0
QB64 is a FREE QBasic compiler for WIN, MAC(OSX) and LINUX : https://www.qb64.org/forum/index.php
Get my Q-Basics demonstrator: https://www.dropbox.com/s/fdmgp91d6h8ps ... s.zip?dl=0