/[svn]/linuxsampler/trunk/src/scriptvm/examples/expressions.txt
ViewVC logotype

Annotation of /linuxsampler/trunk/src/scriptvm/examples/expressions.txt

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2581 - (hide annotations) (download)
Fri May 30 12:48:05 2014 UTC (9 years, 10 months ago) by schoenebeck
File MIME type: text/plain
File size: 839 byte(s)
* (WIP) Implemented parser and VM for upcoming new real-time instrument
  script support. It needs yet to be integrated into the sampler's
  sampler engines. You can toy around for now with the command line tool
  "ls_instr_script" and i.e. examples showing the core language features
  under src/scriptvm/examples/.
* Bumped version (1.0.0.svn41).

1 schoenebeck 2581 on init
2     declare @s := "foo" & " bar"
3     message(@s)
4    
5     message("4 + 3 is " & 4 + 3)
6     message("10 mod 8 -> " & 10 mod 8)
7    
8     message("Relation 3 < 4 -> " & 3 < 4)
9     message("Relation 3 > 4 -> " & 3 > 4)
10     message("Relation 3 <= 4 -> " & 3 <= 4)
11     message("Relation 3 >= 4 -> " & 3 >= 4)
12     message("Relation 3 # 4 -> " & 3 # 4)
13     message("Relation 3 = 4 -> " & 3 = 4)
14    
15     message("Bit operation 1 and 2 = " & 1 and 2)
16     message("Bit operation 1 and 3 = " & 1 and 3)
17     message("Bit operation 1 and 0 = " & 1 and 0)
18     message("Bit operation 1 or 2 = " & 1 or 2)
19     message("Bit operation 1 or 1 = " & 1 or 1)
20     message("Bit operation 1 or 0 = " & 1 or 0)
21     message("Bit operation 0 or 0 = " & 0 or 0)
22    
23     message("Bit operation not 1 = " & not 1)
24     message("Bit operation not 2 = " & not 2)
25     message("Bit operation not 0 = " & not 0)
26     end on

  ViewVC Help
Powered by ViewVC