Skip to content

Cassidy, bringing static typing, strictness, safety and precision into your web project

License

Notifications You must be signed in to change notification settings

FreakC-Foundation/cassidy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


A programming language with precision

language

Examples

Hello, World!

class Main {
    static void Main() {
        console.log("Hello, World!")
    }
}

Class and OOP system

class Item {
    public string name;
    public Item(string name) {
        this.name = name;
    }
}
// You can inherit a class like this
class Weapon : Item {
    public float damage;
    public Weapon(float damage, string name) : base(name) {
        this.damage = damage;
    }
    void dealDamage() {
        console.log(`Your ${name} deals ${damage} damage`)
    }
}

class Consumable : Item {
    public int useTime;
    public Consumable(int useTime, string name):base(name) {
        this.useTime = useTime;
    }
    void consume() {
        console.log(`You consumed`)
    }
}
// You can also inherit multiple classes
class ThrowingWeapon : Consumable,Weapon {
    public float speed;
    public ThrowingWeapon(float speed, int useTime, string name, float damage):base(useTime, name, damage) {
        this.speed = speed;
    }
}

Copyrights and License

Copyrights © 2021 Cassidy

This project is licensed under the GNU GPLv3 License

About

Cassidy, bringing static typing, strictness, safety and precision into your web project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 92.5%
  • JavaScript 6.4%
  • Batchfile 1.1%