You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

dragon-lang

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

dragon-lang

Object orientated, dynamically typed, interpreted programming language inspired by Python and Javascript.

1.3.0
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source
Dragon Lang Logo

🐉 Dragon is an object orientated, interpreted language that acts as an easy-to-use scripting language, employing dynamic but strong typing and object oriented programming to make programming as nice as possible.


// fibonacci.drg
// print first one hundred numbers in the fibonacci sequence

class Fibonacci {
  init() {
    this.a = 0;
    this.b = 1;
  }

  next() {
    var newValue = this.a + this.b;
    this.a = this.b;
    this.b = newValue;
    return newValue;
  }
}

function run(times) {
  var fibonacci = Fibonacci();
  for (var i = 0; i < times; i = i + 1) {
    print(fibonacci.next());
  }
}

run(100);

Features

  • ✨ Easy-to-use typing system - dynamically but strongly typed for ease of use.
  • 🔥 Eloquent syntax - reduce code length by creating functions, objects and loops.
  • 🧹 Keep code clean - relative import system allows code to be easily split into files.
  • ⚡️ Interpreted language - streamline development with no compile times.
  • 🚀 Object-oriented programming - full object system with classes, methods, states and inheritance.
  • ⚙ Simple data structures included - strings, numbers, lists and dictionaries.
  • 🧠 Great control flow - if and else, for and while, switch and case all included.
  • 🤖 Turing Complete - all features needed to build a complete turing machine.

Documentation

You can get started by following the tutorial provided with the documentation here.

Credit

Author: Tom

License

MIT

Keywords

dragon

FAQs

Package last updated on 03 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.