Skip to content

An interpreted scripting language inspired by the syntax of python, bash and assembly

License

Notifications You must be signed in to change notification settings

KDesp73/kdscript

Repository files navigation

kd interpreter

Install

./install.sh

Usage

  1. Write your script
  2. Run with:
kdscript filename.kd

Example Script

# Method to print a star pyramid of user defined height
func printPyramid {
    echo "Enter height: "
    height = val(input())
    i = 1
    while i <= height {
        spaces = height - i
        while spaces > 0 {
            echo " "
            spaces = spaces - 1
        }

        stars = 2 * i - 1
        while stars > 0 {
            echo "*"
            stars = stars - 1
        }

        echo "\n"
        i = i + 1
    }
}

call printPyramid

LICENSE

GNU

Author

KDesp73

About

An interpreted scripting language inspired by the syntax of python, bash and assembly

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published