summaryrefslogtreecommitdiff
path: root/tests/examplefiles/test.orc
blob: d113303e4865f2cd2c591f4f1072e90e360d7a16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/*
 * comment
 */
; comment
// comment

instr/**/1,/**/N_a_M_e_,/**/+Name/**///
  iDuration = p3
  outc:a(aSignal)
endin

opcode/**/aUDO,/**/i[],/**/aik//
  aUDO
endop

123 0123456789
0xabcdef0123456789 0XABCDEF
1e2 3e+4 5e-6 7E8 9E+0 1E-2 3. 4.56 .789

"characters$MACRO."
"\\\a\b\n\r\t\012\345\67\""

{{
characters$MACRO.
}}
{{\\\a\b\n\r\t\"\012\345\67}}

+ - ~ ¬ ! * / ^ % << >> < > <= >= == != & # | && || ? : += -= *= /=

0dbfs A4 kr ksmps nchnls nchnls_i sr

do else elseif endif enduntil fi if ithen kthen od then until while
return rireturn

aLabel:
 label2:

goto aLabel
reinit aLabel
cggoto 1==0, aLabel
timout 0, 0, aLabel
loop_ge 0, 0, 0, aLabel

prints "%! %% %n%N %r%R %t%T \\a\\A \\b\\B \\n\\N \\r\\R \\t\\T"
prints Soutput

readscore {{
i 1 0 0
}}
pyrun {{
# Python
}}
lua_exec {{
-- Lua
}}

#include/**/"file.udo"
#include/**/|file.udo|

#ifdef MACRO
#else
#ifndef MACRO
#endif
#undef MACRO

#   define MACRO#macro_body#
#define/**/
MACRO/**/
#\#macro
body\##

#define MACRO(ARG1#ARG2) #macro_body#
#define/**/
MACRO(ARG1'ARG2'ARG3)/**/
#\#macro
body\##

$MACRO $MACRO.
$MACRO(x)
@0
@@ 1