Introduction

Welcome to Nuts, a powerful and beginner-friendly programming language designed to make coding easy and profitable. My name is Mihigo ER Anaja, the creator of Nuts, and I developed this language in 2019 to help both beginners and experienced developers create software quickly and efficiently. If you’ve never programmed before, you’re in the right place. Nuts is simple enough for you to learn in just one hour!

By the end of this guide, you will understand how to write, save, and execute your first Nuts program. Let’s dive in!


1: What is Nuts?

Nuts is a high-level programming language that executes commands sequentially, making it easy to follow and debug. Unlike traditional programming languages, Nuts allows you to earn money by developing and selling software.

Key Features of Nuts

  • Beginner-friendly – Learn to code in an hour.
  • Sequential execution – Runs commands one after the other.
  • Fast development – Build programs quickly.
  • Profitability – Create and sell software effortlessly.

In most organizations, automation is crucial. Nuts simplifies automation, making it an excellent choice for repetitive tasks and quick software development.


2: Setting Up Your Development Environment

Before you start coding, you need to install a few tools.

2.1 Required Tools

To write and run Nuts programs, download the following software:

  • Nuts Writer – To create and save Nuts programs.
  • Nuts Opener – To run your Nuts programs.
  • Nuts Exporter (Optional) – For managing multiple Nuts files.

2.2 Where to Download

Once you have installed these tools, you're ready to write your first Nuts program!


3: Writing and Running Your First Nuts Program

3.1 Understanding Nuts Programs

A Nuts-oriented software consists of one or more Nuts files. Each file contains up to five lines of code, and execution follows a sequence of linked files.

3.2 Writing Your First Program

Let’s create a simple program that displays “Hello, John!” on the screen.

Step 1: Open Nuts Writer and Create a New Program

  1. Open Nuts Writer.
  2. Type exapp as the filename and press Enter.
  3. Write the following lines:

File: exapp

Set dst=exapp1  
Nuts  

File: exapp1

Set dst=exapp2  
Set emt=Hello John!  
Emt  

File: exapp2

Set dst=exit  
Brk  

Step 2: Running Your Program

  1. Open Nuts Opener.
  2. Type exapp and press Enter.
  3. You should see Hello John! displayed on the screen.

Congratulations! You have just written and executed your first Nuts program.


4: Understanding Nuts Commands

4.1 Commonly Used Commands

Command Description
add Adds two numbers.
subtract Subtracts two numbers.
set Creates or changes a variable.
emt Displays text on the screen.
brk Stops execution until a key is pressed.
dly Delays execution for a set time.
nuts Switches to the Nuts programming environment.
chke Checks if two values are equal.

4.2 Practicing Commands

Modify your program to display a dynamic user name:

Set name=John  
Set emt=Hello, $name!  
Emt  

Try running this program to see the difference!


5: Creating More Advanced Programs

5.1 Multi-File Execution

  • Link multiple files together using set dst.
  • Organize code into smaller, manageable parts.

5.2 Automating Tasks with Nuts

  • Use dly to add timed pauses.
  • Automate text generation with emt.

6: Making Money with Nuts

6.1 Ways to Earn with Nuts

  • Software Development – Sell complete applications.
  • Selling Subroutines – Package reusable commands.
  • Teaching Nuts – Offer training and courses.
  • Building Helix Apps – Develop apps for the Helix OS.

7: Packaging and Distributing Nuts Programs

7.1 Converting Nuts Software into Executables

To protect and distribute your software, convert it into an executable file. You’ll need:

  • Nuts Kits – Collection of Nuts commands and subroutines.
  • Nuts Exporter – To extract and package files.
  • XpackerX – To generate executable files.

Follow these steps:

  1. Gather your Nuts program files.
  2. Use Nuts Exporter to package them.
  3. Use XpackerX to create an executable file.

Now, your software is ready for sale!


Conclusion: Next Steps in Your Nuts Journey

You have now learned how to write, run, and even sell Nuts programs. But this is just the beginning! To continue growing as a Nuts programmer:

  • Experiment with different commands.
  • Build real-world projects using Nuts.
  • Join the Nuts Programming Team for more insights.

I invite you to connect with me for more learning opportunities:

I look forward to seeing what you build with Nuts!