Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 718 Bytes

File metadata and controls

55 lines (38 loc) · 718 Bytes

humanscript

Open Docker Python interpreter

Right now this is the only way to run HumanScript

docker build -t my-python-app .
docker run -it --rm --name my-running-app -v "$(pwd)":/app my-python-app
docker exec -it my-running-app /bin/bash

Run HumanScript

dna examples/hello_world.dna

Examples

Hello world

tell "Hello world!"

Get input

ask "What's your name?"

Variables

name as String = "Gabriel"
age as Number = 24

Function example

greetings as Function with
  name as String,
  age as Number do
  tell name
  tell age
end

call greetings "Gabriel", 24

File extensions

  • .dna - HumanScript source code