Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Dodica COMPILER

Author
Message
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 30th Dec 2005 15:46 Edited at: 30th Dec 2005 16:51
Hello guys , i finaly did it. It`s still not compiler , it`s just a line parser . In a few words , it cant make exe`s - thats the only difference ... . It`s first version i combined Assembling , c++ , And dark basic to make a perfect hit . i made one runtine .exe at my friends place (fortunatly he has a db witch can compile .exe`s , so i can freely buy db pro..)


It has only two commands for now : Print to screen , and print position . Here are two exaples you can enter into editor and hit run to see what heppens :




and



darn it , i can upload it to this forums...i`l try to upload it to my site..(freewebs)hm..0%...0%..still..0% yeaa 57.3kb of 1.8mb ! thats the SPEED!

few days later..

So , guys , please donwload it and say what do you think ?
Should i add much more commands and make a really good thing???

p.s. not really few days later , just a joke...



(only picture is attached)

To download , click here : http://www.freewebs.com/dodica/Dodicacompiler.zip


Attachments

Login to view attachments
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 30th Dec 2005 15:59
hm...the link doesnt work on MY comp , it works when i input this :
http://www.freewebs.com/dodica/Dodicacompiler.zip
into ie , but not when i click on link , anyways you can do the same...

Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 30th Dec 2005 16:26
ok a note , my basic will have much more than 2 commands (i want to make a real working compiler) it will MOST probably have 3d commands , and i will go to EXTREME SIMPLICITY in its language syntax.. so it like can be a basic for ones hwo tryd programming , and saw that they don`t have the patience for it , i dont know but THIS THING MIGHT WORK OUT JUST FINE..

UFO
19
Years of Service
User Offline
Joined: 11th Oct 2005
Location:
Posted: 30th Dec 2005 17:52
Uh. It doesn't work.
Whenever I do:
Print to screen
hello world

it beeps and closes and there are popup thingys that says that there aren't appropiate close statements or something.

It looks cool so far. You should make it so when you do print to screen, it would look better like:
Print to screen "Hello worldd" or at least have them on the same line.

Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 30th Dec 2005 18:02
i decided to make that sort of language with more lines , and i dont know whi it works , i`l try it now... hm works fine..

i know why , it doesnt support BIG LETTERS (if you know what i mean)
it would be

print to screen
hello

BUT STILL IT SHOULD JUST GIVE YOU BLACK SCREEN.


What files you have downloded in zip file ? (maby i somehow wrongly uploaded files) and how big is all ?

Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 30th Dec 2005 18:04
and unfortionatly it will use every parameter , new line (it maby stinks , but it requires much , much more to make it work with print to screen "hello" , and it will have bugs sence that is my first compiler that i published (i made a lot in c++ , but noone has integrated ide , and i just tested stuff so they are not like basics , they are some exe creators with some hexa codes and so...)

new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 30th Dec 2005 18:21 Edited at: 30th Dec 2005 18:25
nice compiler. im working on 1 too! in fact, mines alot like yours.

a simple program:



the first 2 lines make a function, and give it the ID of 25. the next 2 lines print "THIS COMPILER ROCKS!!!" on the screen

and the last 2 end the function.

the functions are unrequired, but helpful for arge programs.

features v0.2:



PRINT and INPUT
text functions such as "TIME" and "DATE"
string,INT,bool
BMP,GIF,JPEG support
CLS

= definetly
= maybe



dodic, i dont want to compete with you, maybe we could help eachother?
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 30th Dec 2005 18:25 Edited at: 30th Dec 2005 18:28
i was thinking about making the same one together!


But i dont understand how doesnt mine work ? it works on my comp.

???


Ufo TRY WRITING THIS INTO a.txt

print to screen
hello word

and then start runtime.exe

Does it work ??

and if it does , go into editor , write
print to screen
helo word

click on RUN , and if it doesnt work again , i ...


anyways i`l now integrate some more features into mine (not competing , i like us to make the same one p.s. check messages on my forum...)

new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 30th Dec 2005 18:38 Edited at: 30th Dec 2005 18:41
cant go on your forum... anyway, yeah, im adding features to mine too! how bout we make our own, but also help with the main one. we can post source here!
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 30th Dec 2005 18:43 Edited at: 30th Dec 2005 18:55
it doesn`t work anyway its broke..

new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 30th Dec 2005 18:45 Edited at: 30th Dec 2005 18:48
well THATS pretty useless, but mine is too

wav playing? why not 1 command for load and play wav?

EDIT: i cant see your probem... everything seems fine... lemme see...
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 30th Dec 2005 18:46
cant you help , if you know a way , if not , i`l try to find out one , and show me your source code (anyway i`m planning on finishing my patetic one..)

new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 30th Dec 2005 18:48
show me yours first
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 30th Dec 2005 18:49 Edited at: 30th Dec 2005 18:50
i just did . that`s all of db`s code , everything else is in asembly

Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 30th Dec 2005 18:49 Edited at: 30th Dec 2005 18:50
drat , i hate making double same posts...

new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 30th Dec 2005 18:51
o ic thats urs.

i dont wanna show my source, well, lemme think....

ok you gave me some ill give u some of mine, say, pick a number between 1 and 45
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 30th Dec 2005 18:53
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45 (just kidding ,30)

new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 30th Dec 2005 18:54
alright, ill have to GET the source first, its on my other comp. itll jsut be a little bit...
new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 30th Dec 2005 18:59 Edited at: 30th Dec 2005 19:01


well, there you go. theres really only like 3 functions, but i split each function up a bit, and you picked 30, you get most of main(),

not sure i wanna give out HAND3L(string line,string old_line)

EDIT1: it's in C++ if you're wondering

EDIT1: sorry about not using ' and / before, my other comp is broken
Darkbasic MADPSP
19
Years of Service
User Offline
Joined: 15th Jun 2005
Location: Uk
Posted: 30th Dec 2005 19:00
http://www.freewebs.com/dodica/Dodicacompiler.zip

Forwards to the forums rofl

Experienced DB http://www.greatgames3d.com (work in progress site)
new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 30th Dec 2005 19:02
huh?
new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 30th Dec 2005 19:04
oh, HAND3L is basiclly the compiler, it takes in the lines and makes them what they are. i'm adding in more features, ut i'm pretty sure i'm keeping HAND3L closed.

maybe that's because its WIP right now...
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 30th Dec 2005 19:15
Quote: "http://www.freewebs.com/dodica/Dodicacompiler.zip

Forwards to the forums rofl"



WHAT ???

Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 30th Dec 2005 19:18
so anyways good lock with yours ... if you need help , i`l try to help you (it much easyer when you have all needed in c++ then trying to make "inpossible" in db... - but assembling and db combination might work...)

and i fixed those errors , now it should work fine (i mean that play wav error) and db newb.. please donwload from my first post and say if the
print to screen
hello

and click run

and say if it works , please it means alot!

new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 30th Dec 2005 19:21
ok, fine!
new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 30th Dec 2005 19:22
http://www.freewebs.com/dodica/dodicacompiler.zip -- got redirected to this thred.
dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 30th Dec 2005 19:23
The reason the compiler isn't workins is you have to push the run command twice. so run it once, close it, then run it again.

Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 30th Dec 2005 19:25 Edited at: 30th Dec 2005 19:26
really ? if thats all i think thats the error i can fix..

But maby that`s only like first time started , becouse whenever i start it it wokrs fine..

Quote: "http://www.freewebs.com/dodica/dodicacompiler.zip -- got redirected to this thred."


just write the adress into your adress bar.

new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 30th Dec 2005 19:38 Edited at: 30th Dec 2005 19:38
25KB... 994KB...1MB... ahh! cox hispeed rocks! .14MB left...
new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 30th Dec 2005 19:40


runtime:
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 30th Dec 2005 19:50
so it works , ha ? (yeah..)

new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 30th Dec 2005 19:51
yep!!!!
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 30th Dec 2005 19:57
ok , cool , thank you very much , i`m going throo other commands now.. i made some ...
i made like:
-----------------------------------------
Print
Wav input and play (not the same command)
Midi input and play (not the same command)
Bmp picture load
and print possition setting.
---------------------------------------------------


I`l going to hit on making like a super simple basic , for total begginers hwo are unpationt to learn basics with much commands...
(and when you start with something , easy or not , in this case easy , and you master it , you feel good , and you get on something more powerfull and you learn it felling good. .. (if you know what i mean...) )

new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 30th Dec 2005 19:58
yea thats wut im doing, except im not done with total framework yet.
new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 30th Dec 2005 20:04
hey dodic, could you make me a compiler outline in any language for me to study? then i could make mine faster, then we could combine little pieces of each of them to make THE ULTIMATE PROGRAMMING LANGUAGE

who knows? it could have like 25 more commands than DBP...
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 30th Dec 2005 20:16
compiler outline ? (sorry , i don`t know many words on english,i know how to spell , but ...)

The Nerd
20
Years of Service
User Offline
Joined: 5th Jun 2004
Location: Denmark
Posted: 30th Dec 2005 22:27 Edited at: 30th Dec 2005 22:28
Quote: " i don`t know many words on english,i know how to spell , but ..."


Well to help your spelling a little:

You write like good lock, that should be "good luck" You write the word for locking a door etc

Also sometimes you say like : "I already sad that", that should be "I already said that", sad means to be sad of something.. Like "I'm so sad. I just lost my dog" etc..

Then you got some gramma mistakes, but I got that too, hehe


Good luck with the compiler thought.

Free Particle Engine For dbpro :
here
new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 30th Dec 2005 23:33
well, what i mean by compiler outline is like, the compiler, but that handles like 1 command, just so i can see how it works.

if you dont wanna give me code, thats way fine!
new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 30th Dec 2005 23:39 Edited at: 30th Dec 2005 23:40
could you post new version with more commands?
is it open-source?
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 31st Dec 2005 00:52
i`m afraid it`s not open source , but at the time i finish, and see if it`s good , i`l post a TUTORIAL about COMPILER MAKING and i`l add SOME TOOLS to help people , so no assembly needed !

and now my basic is called SHARK BASIC . I will post the first version with samples , help , everything soon .


Quote: "well, what i mean by compiler outline is like, the compiler, but that handles like 1 command, just so i can see how it works.
"


Please tell me all the languages you know so i can see what is easyes for me..

Quote: "if you dont wanna give me code, thats way fine! "

Hey , that`s not me , i`m not gonna be mean to NOONE , i dont care if people want to be mean to me , i dont have to be mean to them.

I`l will always try to help people with my model packs and some programs for db , and some other things , and NO BAD COMMENT WILL EVER BRAKE ME ! (so , why bodder?)

Killswitch
22
Years of Service
User Offline
Joined: 2nd Oct 2002
Location: School damnit!! Let me go!! PLEASE!!!
Posted: 31st Dec 2005 01:20
Here's a real interpreter, enjoy (my own creation):

http://www.btinternet.com/~douglas.marsh/Spectacle_v0.9.zip

~Heed my word hobags: Jism~
new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 31st Dec 2005 03:35
what?? that wasn't wapposed to be mean!!
new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 31st Dec 2005 03:36 Edited at: 31st Dec 2005 03:37
oops, double posty
new programmer
19
Years of Service
User Offline
Joined: 20th Dec 2005
Location: right behind you.
Posted: 31st Dec 2005 03:38
a "Real" interpreter, huh? so what me and dodic are doing aren't "real"?
Dodic
19
Years of Service
User Offline
Joined: 6th Nov 2005
Location: SNM (Serbia&Montenegro)
Posted: 31st Dec 2005 12:11
DONT DONWLOAD DODICA COMPILER ANYMORE , I MADE NEW OPTIONS , GO :


http://forum.thegamecreators.com/?m=forum_view&t=68313&b=10

Login to post a reply

Server time is: 2025-05-23 02:21:59
Your offset time is: 2025-05-23 02:21:59