Skip to content

Latest commit

 

History

History
62 lines (39 loc) · 1.59 KB

getting-started.md

File metadata and controls

62 lines (39 loc) · 1.59 KB

🛠 Getting Started

Prerequisites

Before you begin, ensure you have the following prerequisites:

  • A code editor or IDE of your choice.
  • Git installed on your system.
  • Rust installed on your system.
  • A terminal or command prompt.

Installation

To start using NebuLang, follow these steps:

Clone the NebuLang Repository

Open your terminal and run the following command to clone the NebuLang repository from GitHub:

git clone https://github.com/nethriis/nebulang

Run the install script

cd nebulang
./install

Running NebuLang programs

Once you have NebuLang installed, you can start writing and running NebuLang programs.

Create a NebuLang file

Using your preferred code editor, create a new file with a .nbl extension. For example, hello.nbl.

Write your NebuLang code

{% code title="hello.nbl" %}

set message: String = "Hello, World!";
Write(message);
emit 0;

{% endcode %}

Running your NebuLang file

Open your terminal, navigate to the directory where your NebuLang file is located, and run the NebuLang interpreter with your file as an argument:

nebulang hello.nbl

The output of your program will be displayed in the terminal.

Congratulations!

You've successfully set up NebuLang and run your first NebuLang program. You can now explore the language further, refer to the documentation for detailed information on NebuLang's features, and start building your own applications.

Happy coding with NebuLang!