Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Latest commit

 

History

History
50 lines (35 loc) · 954 Bytes

README.md

File metadata and controls

50 lines (35 loc) · 954 Bytes

dwn

Dawn (dwn) is the interpreter and bytecode compiler for the Dawn Programming Language.

NOTE!: This project has been abandoned. A new project orion has been created in the Solarcode Organisation

Installation options

Examples

User Greeting

say "Hello!"
let name = (ask "What is your name? ")

say "Hello" name "!"

Guessing Game

let n = 1256

if (n == 1256) { ; test
 say "Hello! Welcome to The Guesser"
}

forever {
 let gs = (ask "Guess the number > ")
 let g = (int gs)

 if (g == n) {
  say "Congratulations! The number was" n
  break
 }

 if (g > n) {
  say "Too big!"
 }

 if (g < n) {
  say "Too small!"
 }
}