Squirrel is a high level imperative, object-oriented programming language, designed to be a light-weight scripting language that fits in the size, memory bandwidth, and real-time requirements of applications like video games. PySquirrel is intended to be a comprehensive binding of Squirrel 3 for Python.
CI | status |
---|---|
Linux/macOS Travis | |
MSVC 2019 | |
pip builds | |
cibuildwheel |
An project built with pybind11. This requires Python 3.7+; for older versions of Python, check the commit history.
pip install squirrel-lang
pybind11 is provided under a BSD-style license that can be found in the LICENSE file. By using, distributing, or contributing to this project, you agree to the terms and conditions of this license.
from squirrel import SQVM
vm = SQVM()
vm.execute("""
sq <- {
function say () {
return "hello world"
}
}
""")
sq = vm.get_roottable()["sq"]
assert str(sq.say()) == "hello world"