Docs
Decree is a language for people who have never written a program. You can write it in English or in Japanese.
🚀 Your first 5 minutesInstall, open, press ▶. Run your very first command.
▶ Try in your browserWrite and run Decree right on this site — nothing to install.
📖 Full docs (Japanese)The tutorial, command list and error guide are in Japanese for now. Every example is shown in English too.
What does it look like?
say "Hello!"
name = ask "What is your name?"
say "Welcome, {name}"Output
Hello! What is your name? › Hana Welcome, Hana
A decree is a royal command. You are the king, and the computer obeys: write a command, and it does exactly that.
- Write in English or Japanese — you can even mix both in one file.
- Small differences don't matter: full-width and half-width characters,
sayorprint. - When something is wrong, Decree tells you where, why, and how to fix it.
English at a glance
| What you want | English | Japanese |
|---|---|---|
| Show something | say "hi" |
「hi」と表示 |
| Name a value | score = 80 |
点数 = 80 |
| Ask the user | name = ask "Your name?" |
名前 = 「お名前は?」と聞く |
| If | if score >= 80 … end |
もし 点数 >= 80 なら … おわり |
| Repeat | repeat 3 … end |
3回くりかえす … おわり |
| Count | for i from 1 to 10 … end |
i を 1 から 10 まで くりかえす … おわり |
| Your own command | to greet(name) … end |
やること あいさつ(名前) … おわり |
| Fetch a page | page = fetch "https://example.com" |
ページ = 「https://example.com」を取ってくる |
| Save to a file | save page.text to "memo.txt" |
ページ の 本文 を 「メモ.txt」に保存 |