Subversion Repositories wimsdev

Rev

Rev 17228 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
32 reyssat 1
 
2
<h4>Arrays</h4>
3
There is no special syntax in wims language for arrays. However, it is
4
possible to design array-like variable structures, with integer or even
5
string subscripts. This can be done using nested variable substitutions. For
6
example, ...
7
 
17228 bpr 8
<hr><h4>Fields in a string</h4>
17238 bpr 9
WIMS variables are all string variables. There are three different ways to
32 reyssat 10
split a string into fields:
11
<ul><li>As a list of words, separated by white-space characters. Consecutive
12
white-spaces are considered as one field separator.
5920 bpr 13
</li><li>As a list of lines, separated by new-line characters. Consecutive
32 reyssat 14
new-lines are considered as separating empty lines.
5920 bpr 15
</li><li>As a list of items, separated by commas ( $emph,$emphend ). Consecutive
32 reyssat 16
commas are considered as separating empty items.
5920 bpr 17
</li></ul>
32 reyssat 18
<p>
19
This section is not yet finished. Sorry.
17228 bpr 20
</p>