3
|
1 |
|
22
|
2 |
# Welcome to Yet Another Yuseless Built-In Language! |
|
3 |
|
29
|
4 |
This module provides next commands: |
|
5 |
|
|
6 |
* 'multi' allows to execute several mcabber commands at once. |
|
7 |
Handy for bindings, aliases, hooks and other. Use semicolons |
|
8 |
to separate commands (note, however, that commands itself cannot |
|
9 |
contain semicolon). |
|
10 |
* 'if', 'then' and 'else' provide crude conditional construction. |
|
11 |
'if' evaluates given expression (see 'eval' for rules) and stores |
|
12 |
result. After that, 'then' and 'else' can be executed as many times, |
|
13 |
as you need, they will use stored value. |
|
14 |
* 'let' works like 'set', but assigned value is evaluated first |
|
15 |
(see 'eval' for rules). |
|
16 |
* 'eval' evaluates expression and then executes it as mcabber command. |
|
17 |
Expression can contain unquoted variable names, double-quoted strings, |
|
18 |
numbers and next operators: |
|
19 |
|
|
20 |
* . string concatenation |
|
21 |
* : string head |
|
22 |
* \^ string tail |
|
23 |
* + binary plus / string concatenation |
|
24 |
* - binary minus |
|
25 |
* \* multiplication / string replication |
|
26 |
* / division |
|
27 |
* % division remain |
|
28 |
* \< binary / string less than |
|
29 |
* \> binary / string greater than |
|
30 |
* = binary / string equality |
|
31 |
|
|
32 |
All operators have the same priority, and there is no grouping. |
|
33 |
|
|
34 |
All commands are marked as safe to use in initial config file. |
3
|
35 |
|
22
|
36 |
# Installation |
3
|
37 |
|
|
38 |
To install it, you need: |
22
|
39 |
|
|
40 |
* cmake |
|
41 |
* make |
|
42 |
* gcc |
|
43 |
* glib |
|
44 |
* mcabber headers |
3
|
45 |
|
|
46 |
Then do |
22
|
47 |
|
|
48 |
$ mkdir build |
|
49 |
$ cd build |
|
50 |
$ cmake .. |
|
51 |
$ make edit_cache |
|
52 |
$ make |
|
53 |
# make install |
3
|
54 |
|
|
55 |
Debian users can instead of make install do |
22
|
56 |
|
29
|
57 |
$ make package |
|
58 |
# dpkg -i libmcabber-yaubil*.deb |
3
|
59 |
|
|
60 |
Users of other distributions can select appropriate package |
|
61 |
generator, using cache editor. |
|
62 |
|
22
|
63 |
# License |
3
|
64 |
|
|
65 |
This code underlies terms of GNU GPL v2 or later. You can find it in file COPYING |
|
66 |
from this distribution or on a GNU web-site <http://www.gnu.org/licenses/>. |
|
67 |
|
22
|
68 |
# Contact |
3
|
69 |
|
|
70 |
I will be happy to get feedback, patches, suggestions, etc. |
|
71 |
You can send me email or contact via jabber <isbear@unixzone.org.ua>. |
|
72 |
|
|
73 |
-- Myhailo Danylenko <isbear@ukrpost.net> |
|
74 |
|