QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: Joshua on December 29, 2018, 03:40:08 pm

Title: QB64 command line
Post by: Joshua on December 29, 2018, 03:40:08 pm
I seem to remember that you can run the QB64 compiler from the command line?  Is there a reference about it?  When I search all I find is COMMAND$ etc.

I've been using VScode a lot lately and enjoying it.  I'm toying with the idea of maybe making an extension for QB64.
Title: Re: QB64 command line
Post by: blametroi on December 29, 2018, 04:41:09 pm
Yeah, I've been tinkering with a vim extension (not mine originally) that compiles and runs from vim.

here's what I have from those scripts:

qb64 -c -o outputfilename inputfilename

switches

 -o    output exe filename
 -c    Compile file
 -x    As -c, but use the console instead of a graphical window for pr>
 -z    Do not compile generated C++ code.
 -q    Compile for Qloud.
 -g    Do not include graphics runtime (equivalent to $CONSOLE:ONLY)

All switches imply -c; -z and -q imply -x.

Options must proceed the filename.
 -- can be used as a dummy option to force the next thing to be a file
Title: Re: QB64 command line
Post by: Joshua on December 29, 2018, 05:42:52 pm
Excellent.  If I'm reading this correctly, you can have a look at the c++ code if you use -z?

But vim?  That's hardcore.  Nano is as far as I care to go with cli editors.
Title: Re: QB64 command line
Post by: SMcNeill on December 29, 2018, 06:29:00 pm
You can see the c-code as you write your program.  It’s translated on the go, as the internal syntax checker works.

Find your program in internal/temp.  Main.txt is the main program, translated line by line.
Title: Re: QB64 command line
Post by: blametroi on December 29, 2018, 07:43:42 pm
But vim?  That's hardcore.  Nano is as far as I care to go with cli editors.

Kids these days ;) I did my first programming with a card punch. vim is high tech. Flawed, but high tech.