Describe what you want in an intent file; the compiler uses Claude to write the code.

0 downloads

dbbasic-compiler/intent/hello_world.intent.md
Download zip
Clone
Clone with git
git clone https://gitstable.com/git/askrobots/dbbasic-compiler.git
HTTPS
https://gitstable.com/git/askrobots/dbbasic-compiler.git
SSH
ssh://git@gitstable.com:2222/askrobots/dbbasic-compiler.git

Cloning needs no sign-in. Pushing over HTTPS asks for your username and an access token. SSH needs your key under SSH keys.

danq9 Add context files - the header files of intent compilation 114b162 1 year, 1 month ago History
hello_world.intent.md · 607 bytes · 25 lines

Hello World - Greeting Program

Create a simple program that greets users.

What It Should Do

  1. Ask the user for their name
  2. Greet them with a friendly message
  3. Ask if they want to greet someone else
  4. If yes, repeat; if no, say goodbye

Example Interaction

What's your name? Alice
Hello, Alice! Nice to meet you!
Greet someone else? (yes/no): yes
What's your name? Bob
Hello, Bob! Nice to meet you!
Greet someone else? (yes/no): no
Goodbye! Have a great day!

Requirements

  • Must handle empty names (prompt again)
  • Accept yes/y/no/n (case insensitive)
  • Be friendly and welcoming