Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command line compiler #6

Open
Spoiledpay opened this issue Feb 11, 2022 · 8 comments
Open

Command line compiler #6

Spoiledpay opened this issue Feb 11, 2022 · 8 comments

Comments

@Spoiledpay
Copy link

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
Copy link
Owner

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
Copy link
Author

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

@kekcleader
Copy link
Owner

Hi @Spoiledpay, it will take about two weeks.

@Spoiledpay
Copy link
Author

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

@kekcleader
Copy link
Owner

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
Copy link
Owner

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

@Spoiledpay
Copy link
Author

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

@kekcleader
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants