overscript-lang / OverScript

The OverScript programming language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The OverScript Programming Language

This is the source code repository for OverScript. This version is for .NET 6. Version for .NET Standard 2.1 here. OverScript is a simple and powerful C-like statically-typed language written in C# and is great for both embedding in .NET programs and building standalone applications. The project was developed from scratch without looking back at traditional approaches to creating languages. The unique approach allows the language to go beyond the standard features and have great potential for improvement.

Simple code example:

Point[] arr = new Point[]{new Point(25, 77), new Point(122, 219)}; //creating an array of two instances
int n; // 0 by default
foreach(Point p in arr){ // iterating over all elements of an array
    n++;
    WriteLine($"{n}) {p.X}; {p.Y}"); // outputting values using string interpolation
}
//1) 25; 77
//2) 122; 219
ReadKey();

class Point{
    public int X, Y;
    New(int x, int y){ // constructor
        X=x;
        Y=y;
    }
}

About

The OverScript programming language

License:MIT License


Languages

Language:C# 100.0%