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.

Author
Message
EddieRay
23
Years of Service
User Offline
Joined: 28th Feb 2003
Location: USA
Posted: 25th Mar 2003 08:28
Anyone know of a VIM (a clone of the Unix vi editor - see www.vim.org) script to teach it the DBPro language syntax?

Can I run the DBPro compiler from the command line? How?
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 25th Mar 2003 09:29
Just use EMACS instead, it comes with a built in copy of DarkBASIC Pro.

Seriously though, the compiler certainly can be run from the command line.

Current Project: Retro Compo. Entry.
indi
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 25th Mar 2003 10:58
EddieRay
23
Years of Service
User Offline
Joined: 28th Feb 2003
Location: USA
Posted: 25th Mar 2003 18:55
How do I run the compiler from the command line then?

EMACS is evil! VI is the only editor!

Thanks!

the_winch
23
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 25th Mar 2003 19:40
Look in the editor directory in the dbpro installation dir. There are some files with presumably all the keywords in that you could perhaps use to help vim understand the syntax.

EddieRay
23
Years of Service
User Offline
Joined: 28th Feb 2003
Location: USA
Posted: 25th Mar 2003 21:20
Thanks for the tip! I prolly got no time to roll my own right now, but maybe if someone hasn't already done the work, it could be a project for later.

Ahhhh... sweet-sweet VIM, with DBPro syntax-awareness...

EddieRay
23
Years of Service
User Offline
Joined: 28th Feb 2003
Location: USA
Posted: 31st Mar 2003 21:59
Can anyone please tell me how to run the DBPro compiler from the command-line, so that I might have any hope of using a different editor with DBPro?

Is there any way to embed/select a different editor to be used by the IDE?

the_winch
23
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 31st Mar 2003 23:46 Edited at: 31st Mar 2003 23:47
I have played with it a bit and getting an editor to compile the program is easy.

Open the .dbpro file and change final source= to your source file.
If you have include files just tack them onto the endo of the main source file
then just run
"path to compler/DBPCompiler.exe test.dbpro"

The exe appears to be put in the current directory.

I don't know how the debugger works.

I would recommend installing cygwin as the windows command prompt is rubbish for this sort of stuff.

Richard Davey
Retired Moderator
24
Years of Service
User Offline
Joined: 30th Apr 2002
Location: On the Jupiter Probe
Posted: 1st Apr 2003 01:50
You can indeed do that. You won't get any return errors though (error X on line numer Y, etc etc).

VIM is nasty, Boxer all the way for me.

Cheers,

Rich

"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming
the_winch
23
Years of Service
User Offline
Joined: 1st Feb 2003
Location: Oxford, UK
Posted: 1st Apr 2003 02:11
I think the editor just catches the errors from the compiler. If you compile from the command line with an error in the code with the editor running the editor pops up its own message box insted of the compiler and colours the line of the error red just like when you get an error compiling from within the editor. The only difference I can see is the caption text is different.

All the error codes are in a directory in the compiler directory so I assume the compiler is resposible for handleing all those errors.

If anybody can be bothered to figure out how to work the de-bugger it wouldn't be too difficult to write a simple editor.

Login to post a reply

Server time is: 2026-07-21 20:34:38
Your offset time is: 2026-07-21 20:34:38