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.
Dragon is a general-purpose, dynamically typed language, so you can build the usual: functions, classes, loops, and conditionals, with variables declared just by assignment. It targets beginners over performance, so there are no exotic constructs to master, just conventional imperative and object-oriented code as documented at dragon-lang.org.
Yes. XCODX runs Dragon behind a real terminal, so if your program reads from standard input it pauses and waits for you to type, then continues when you press Enter. That makes it practical to probe how Dragon handles input and output live rather than only printing fixed text with show and showln.
It can serve as one. The brace blocks and the show and showln statements carry no surprises, which suits lessons on basic control flow. The catch is scale: documentation lives mainly at dragon-lang.org and the community is small, so you will find far fewer tutorials and answered questions than for a mainstream language like Python.
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