kekcleader / FreeOberon

Cross-platform IDE for development in Oberon programming language made in the classical FreePascal-like pseudo-graphic style.
GNU General Public License v3.0
135 stars 14 forks source link

Command line compiler #6

Open Spoiledpay opened 2 years ago

Spoiledpay commented 2 years ago

Hello! There is a possibility in the near future to create a command line compiler. Very interesting series. Giving you the option to use the IDE or command line to create programs and compile them. Thanks.

kekcleader commented 2 years ago

Yes, this is planned for one of the next updates. FreeOberon.exe will be split into IDE and a separate compiler+linker (the name will be something like foc.exe).

Spoiledpay commented 2 years ago

Hi, I saw that you have a new version. Know how to approximate when we will have the compiler by command line. Thanks.

kekcleader commented 2 years ago

Hi @Spoiledpay, it will take about two weeks.

Spoiledpay commented 2 years ago

Hi, can you tell me if you were able to do the part of compiling with command line?

kekcleader commented 2 years ago

Hi. The command line compiler is already available as of April 22, 2022. There is now a second executable named "fob" ("fob.exe" on Windows). Run it to see help.

Basically you just supply the name of the main module. All the other modules are added automatically by parsing the IMPORT statement of the source codes.

fob MyProgram.Mod
./MyProgram

For convenience you can add the directory containing "fob" to PATH.

export PATH=$PATH:/home/user/FreeOberon

or on Windows:

SET PATH=%PATH%;C:\FreeOberon

Fob automatically finds its "installation" directory (which is not common for Linux programs).

kekcleader commented 9 months ago

Hi @Spoiledpay, Did you have a chance to check out the console compiler?

Spoiledpay commented 9 months ago

Hello! Yes it worked very well. I used it to compile a simple HelloWorld.pas. Generated an executable for windows .exe.

kekcleader commented 9 months ago

@Spoiledpay perfect! Let me know if you need any help or if you have any Oberon ideas.