Crates.io | psi-lang |
lib.rs | psi-lang |
version | 0.3.0 |
source | src |
created_at | 2021-02-18 22:38:26.7259 |
updated_at | 2021-02-18 22:38:26.7259 |
description | A language for configuration and extension |
homepage | https://github.com/curlpipe/psi |
repository | https://github.com/curlpipe/psi |
max_upload_size | |
id | 357251 |
size | 54,818 |
A minimal, sensible, scripting language for configuring, extending and controlling your application.
/*
A demonstration of the PSI language
This file is using 0.3.0
*/
// Define PI
pi = 3.141592
// Define a radius
radius = 5
// Calculate the area and circumference of the circle
area = pi * radius ^ 2
circumference = pi * (radius * 2)
// Print out the results
print("A circle with a radius {radius} has an area of {area} and a circumference of {circumference}")