Skip to content

Open sourced object oriented scripting language implemented in C#

License

Notifications You must be signed in to change notification settings

bizzehdee/DScript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

45801c9 · Sep 23, 2024

History

68 Commits
Oct 7, 2020
Sep 23, 2024
Sep 23, 2024
Sep 23, 2024
Sep 23, 2024
May 31, 2022
Sep 28, 2020
Oct 7, 2020
May 31, 2022
Sep 11, 2020
Sep 26, 2020

Repository files navigation

DScript

Open sourced, object oriented, Javascript based, extendable scripting language implemented in C#.

Example

var MyClass = {
    doSomethingComplicated: function (x, y) {
        return x * y / 10.0;
    }
};

var inst = new MyClass();
var x = inst.doSomethingComplicated(1.0, 2.0);

console.log(x);

Supports

  • Variables
  • Classes/Objects
  • Class methods
  • Global methods
  • Class scope
  • Global scope
  • Method scope
  • Arithmetic
  • Eval/Exec
  • Basic exception handling (try/catch/finally/throw)
  • ...more

Arithmetic operators ++, --, +, -, *, /, %

Comparison operators <, >, <=, >=, ==, !=

Boolean operators !, &, |, ^, &&, ||

Provides

  • Console I/O
    • log
    • error
    • clear
  • Math library
    • abs
    • acos
    • asin
    • atan
    • atan2
    • ceil
    • cos
    • cosh
    • exp
    • floor
    • log
    • min
    • max
    • pow
    • random
    • round
    • sin
    • sinh
    • sqrt
    • tan
    • tanh
  • Random number library
  • JSON
    • parse
    • stringify

About

Open sourced object oriented scripting language implemented in C#

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published