Scripting Overview
Scripting in QReserve
Welcome to QReserve’s reservation rules scripting documentation! Our reservation rules engine lets you tailor your bookings with precision, from enforcing custom usage policies to automating advanced scheduling scenarios. By leveraging straightforward scripting logic, you can streamline complex reservations, reduce administrative overhead, and improve the overall user experience. This guide will walk you through everything you need to get started, from essential concepts to practical examples, so you can make the most of your QReserve reservation system.
What is sneq?
sneq is a domain specific language used throughout QReserve to enable extended end user functionality through our resource manager. sneq has the following features:
- Object disoriented with no classes or inheritance
- Type restrictive operators and API
- Simplistic API restricted so that in most cases there should only be one way of doing things
- Python-like
- Emphasis on rudimentary functional coding styles
- Pure functions only with the exception of exceptions, which propagate globally through the stack
- Instructive and obvious error messages on faults
The ergonomics of sneq will require a little getting used to even for a seasoned python programmer, but once you get the hang of things you should be writing error-free scripts to handle your complex resource management requirements in no time!
return "Hello World"