An Introduction to Dragon

An introduction to



The Dragon Programming Language

Dragon is an innovative and practical general-purpose, multi-paradigm scripting language. It supports multiple programming paradigms such as imperative, object-oriented, functional, natural programming, procedural and declarative programming using nested structures. The language is portable (Windows, Linux, Mac OS X, Android, etc.) and can be used to create console and GUI applications. The language is designed to be simple, small, flexible, and fast. It's a dynamically- and weakly-typed language that interprets the source code through the JVM or LLVM. The first version of the language was released on January 4th, 2018.

Getting Started

 * Introduction
 * History
 * Features
 * Hello World
 * Run the program
 * Multi-Line literals
 * Getting Input
 * Writing Comments

Variables

 * Variables
 * Dynamic Typing
 * Deep Copy
 * Weakly Typed

Operators

 * Operators
 * Arithmetic Operators
 * Relational Operators
 * Logical Operators
 * Bitwise Operators
 * Assignment Operators
 * Misc Operators
 * Operator Precedence

Control Structures

 * Control Structures
 * Branching
 * Looping
 * Do While Loop

Getting Input

 * Getting Input
 * readln funtion

Functions

 * Functions
 * Define Functions
 * Call Functions
 * Declare parameters
 * Send Parameters
 * Variables Scope
 * Return Value