Skip to content

Getting Started

BB pezsgő edited this page Mar 29, 2024 · 7 revisions

To get started, you need to download the compiled .exe file. After that, you will need some source code to interpret.

Here is an example of a hello world program:

// This imports the local System.bbc file along with its functions and structures.
using "https://raw.githubusercontent.com/BBpezsgo/Interpreter/master/StandardLibrary/System.bbc";

// Print a message to the console
PrintLine("Hello world");

The using statement loads another file and imports all the data structures and functions where the export keyword is defined. You can also import files from the internet, the compiler will download the file from the specified url.

To print something to the console, call the PrintLine function which is defined in the "System.Console.bbc" that imported before.

To run the code, you have to execute the downloaded .exe program with the source code path as an argument.

Clone this wiki locally