Differences
This shows you the differences between two versions of the page.
|
edelibscript [2015/10/03 14:54] |
edelibscript [2015/10/03 14:54] (current) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== EdelibScript ====== | ||
| + | edelib-script is tiny scripting language that comes with edelib. It | ||
| + | is a | ||
| + | [[http://en.wikipedia.org/wiki/Scheme_%28programming_language%29|Scheme]] | ||
| + | dialect with some [[http://clojure.org|Clojure]] influence and is used | ||
| + | to describe theme syntax, allowing full language support for designing | ||
| + | themes. | ||
| + | |||
| + | ===== Introduction ===== | ||
| + | |||
| + | When you execute ''edelib-script'' command, you will get a shell (or | ||
| + | commonly called REPL), where you can type expressions which will be | ||
| + | immediately evaluated. If you ever used python or ruby, you are | ||
| + | already familiar with this. Here are few samples how it can look like | ||
| + | when you start the program: | ||
| + | |||
| + | <code scheme> | ||
| + | edelib script 2.1.0. Type "(quit)" to exit. | ||
| + | > (println "Hello user") | ||
| + | "Hello user" | ||
| + | #t | ||
| + | |||
| + | > (: 2 + 3 - 4) | ||
| + | 1 | ||
| + | > (range 1 10) | ||
| + | (1 2 3 4 5 6 7 8 9) | ||
| + | </code> | ||
| + | |||
| + | Lines starting with '''>''' are expecting user input, and after input | ||
| + | was done and pressed Enter, evaluated result is shown below. | ||