2 Script parsing: tokenizer
6 include('../lib/rcube_sieve.php');
8 $txt[1] = array(1, 'text: #test
9 This is test ; message;
14 $txt[2] = array(0, '["test1","test2"]');
15 $txt[3] = array(1, '["test"]');
16 $txt[4] = array(1, '"te\\"st"');
17 $txt[5] = array(0, 'test #comment');
18 $txt[6] = array(0, 'text:
25 $txt[7] = array(1, '"\\a\\\\\\"a"');
27 foreach ($txt as $idx => $t) {
28 echo "[$idx]---------------\n";
29 var_dump(rcube_sieve_script::tokenize($t[1], $t[0]));
34 string(34) "This is test ; message;