EtanoloYT / gfy

1 stars 0 forks source link

GFY

GFY (can't say what the acronym means) is a simple interpreted language designed for basic scripting tasks. It provides basic functionality for variable manipulation, conditional statements, and control flow.

Installation

To use GFY, you need to have Node.js installed on your system. You can install GFY by cloning this repository:

git clone https://github.com/EtanoloYT/gfy.git
cd gfy

Then, install the required npm packages:

npm install

Usage

Once installed, you can use GFY to interpret and execute scripts written in its syntax. To execute a GFY script, use the following command:

node . <filename>

Replace <filename> with the path to your GFY script.

Syntax

GFY supports the following syntax:

Variables

Arithmetic Operations

Control Flow

Function Definitions

Modules

Example

Here's an example of a simple GFY script:

set x 10
set y 5
add x y
print x

// x is now 15

This script sets variables x and y to 10 and 5 respectively, adds them together and prints the new value of x.

Supported Extensions

GFY supports the following file extensions: