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.
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.
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.
// showln prints its argument followed by a newline
showln "Hello, World!"
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.
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.
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.
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.
main.dragonplain text — no highlighter ships for this languageno standard input construct
show "Hello from Dragon!"
show "Welcome to XCODX Online Compiler!"
x = 10
y = 20
show x + y