XCODX |

Dragon Online Compiler & Interpreter

Select Language
Online Code Compiler
Full HTML IDE
Py main.py
Program Output Ready
  Welcome to XCODX Online Compiler

  Quick Start:
  Ctrl+Enter  Run code
  Ctrl+S      Save / Download
  Ctrl+L      Clear output

  Select a language and start coding.
Success
Operation completed

About Dragon

Among the lesser-known languages bundled with modern code-runner stacks, Dragon is a small interpreted general-purpose language documented at dragon-lang.org, with a syntax that mixes C-style braces and keywords with simple show and showln output statements. It is dynamically typed, supports functions, classes, and the usual control flow, and aims to be approachable for beginners rather than to chase performance. Dragon has a modest community and little presence in golf scoring tables, but it circulates in the esolang-adjacent world precisely because it is unusual to encounter in the wild. XCODX hosts a working interpreter behind a real terminal, so you can probe how Dragon handles input and output interactively without hunting down and building the toolchain yourself.

Hello World in Dragon

// showln prints its argument followed by a newline
showln "Hello, World!"

When to use Dragon

Dragon suits the collector's side of puzzle programming: polyglot enthusiasts and users of rotating-language challenges like it because so few people have written anything in it, which makes even a FizzBuzz feel like exploration. It also works as a plain teaching language for basic control flow, since the show statements and brace syntax carry no surprises. Trying Dragon here is mostly about satisfying curiosity quickly rather than competing on bytes.

Common questions

Is Dragon an esoteric language?

No, not in the design sense. Unlike Brainfuck or COW it was not built to be minimal or absurd; it is a conventional beginner-oriented scripting language. It ends up grouped with esolangs on hosted runners because both share the trait of being rarely used, and esolang fans enjoy sampling any obscure runtime that a service happens to support.

What does basic Dragon syntax look like?

Programs read like a lightweight cross of C and Python: blocks use braces, statements do not need semicolons, and output goes through show for inline text or showln for a full line. Variables are declared by assignment without type annotations, and the documentation at dragon-lang.org covers functions, classes, loops, and a small standard set of built-ins.

Can I golf in Dragon?

You can submit Dragon answers on Code Golf Stack Exchange since any language with a published interpreter is allowed, but expect verbose scores: keywords like showln cost many bytes compared to a golfing language's single characters. Its real appeal in that community is novelty, being an early or only answer in a language most readers have never seen run.

How Dragon runs on XCODX

Sandbox filename
main.dragon
Entry point
single main source file
Editor grammar
plain text — no highlighter ships for this language
Reading stdin
no standard input construct
Input delivery
live WebSocket stream
Prompt flushing
flush manually before reading input
Compile limit
10 s
Run limit
3 s batch · up to 3 min live
Memory
256 MB per stage
Max source
50,000 characters

Default program on this page


show "Hello from Dragon!"
show "Welcome to XCODX Online Compiler!"

x = 10
y = 20
show x + y