Dragon (programming language)

Dragon is a dynamic and multi-paradigm programming language for Cross-platform (multi-platform) operating systems. The supported programming paradigms are imperative, object-oriented, declarative using nested structures, functional and natural programming. Console and GUI applications can be developed with Dragon. It was first released in the year 2018 by Aavesh Jilani. The syntax is a bit of similar like Python but instead of indentation Dragon uses structural and procedural syntax approach.[2]

Dragon
Dragon programming language logo
Paradigm(s)Object-oriented
Appeared in2018
Designed byAavesh Jilani
DeveloperAavesh Jilani
Stable release1.9.8 / 24 February 2021 (2021-02-24)[1]
Typing disciplinedynamic
OSCross-platform (multi-platform)
Usual filename extensions.dgn
Websitedragon-lang.org
Wikibooks logo Dragon at Wikibooks

As of the 1.9.7 version Dragon started supporting procedural syntax along with the structural syntax. It is used for the block of codes similarly like the Visual Basic .NET uses. Although both of syntax can be used together in a program. There is a keyword "end" to complete the code block in procedural syntax for the loops, functions, classes, and conditions.

Uses

Dragon has multiple different versions. Although it doesn't have own VM, it uses the JVM and IKVM. It generates the VM instructions to any of these VM to execute the tasks. The Dragon native is made with C, Native version has its own VM. It is the fastest one among all versions.

Some things that Dragon is often used for are:

  • Desktop applications development
  • Internet of Things programming
  • Android applications development
  • Web applications development

Syntax

To print something using the standard output, Dragon has the 'show' keyword and 'showln' for output in newline.

<syntaxhighlight lang="python">

 show "Hello, World!" 

</syntaxhighlight>


Function creation with structural syntax

<syntaxhighlight lang="python"> one() two()

func one() {

showln "One" 

}

func two() {

showln "two" 

}

</syntaxhighlight>

With procedural syntax.

<syntaxhighlight lang="python"> one() two()

func one()

showln "One" 

end

func two()

showln "two" 

end

</syntaxhighlight>

References

  1. "Dragon 1.9.8 Release". Dragon Developer. 24 February 2021. Archived from the original on 9 June 2021. Retrieved 9 June 2021.
  2. "Dragon". Editorofstudy. 6 August 2020. Archived from the original on 23 October 2020. Retrieved 23 October 2020.

Other websites