An Introduction to Dragon
Appearance
An introduction to
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.
Table of Contents
[edit | edit source]Getting Started
[edit | edit source]- Introduction
- History
- Features
- Hello World
- Run the program
- Multi-Line literals
- Getting Input
- Writing Comments
Variables
[edit | edit source]Operators
[edit | edit source]- Operators
- Arithmetic Operators
- Relational Operators
- Logical Operators
- Bitwise Operators
- Assignment Operators
- Misc Operators
- Operator Precedence
Control Structures
[edit | edit source]Getting Input
[edit | edit source]Functions
[edit | edit source]- Functions
- Define Functions
- Call Functions
- Declare parameters
- Send Parameters
- Variables Scope
- Return Value