1 个不稳定版本

0.3.0 2021年2月18日

#863 in 编程语言

MIT 许可证

54KB
1.5K SLoC

Ψ PSI:可移植脚本接口

一个最小化、合理的脚本语言,用于配置、扩展和控制您的应用程序。

示例

/*
  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}")

依赖项

~4.5MB
~94K SLoC