-Subproject commit a065796b43b43260ef290667711261058467158d
+Subproject commit c83cc91cd55f2ee3036bfe5a04fc06cd191b6ded
+++ /dev/null
-<<< Machine.check("SinOsc s => dac; second => now;") >>>;
class global TestEvent {
- static var Event e;
+ var static Event e;
}
second => now;
#!second => now;
+++ /dev/null
-var SinOsc s;
+++ /dev/null
-Machine.add("examples/int.gw");
-Machine.compile("int i;<<< 120 >>>;");
-#!Machine.compile("int i[error];");
-
-<<< Machine.check("12 => int i; <<< i >>>") >>>;
-Machine.check("int i[error];");
-Machine.check(null);
+++ /dev/null
-var SinOsc s => var Gain g => var HalfRect h => blackhole;
-s => var ZeroX z => blackhole;
-17 => s.init;
-(1024, .17) => s.init;
-var Impulse i => var FullRect f => blackhole;
-var Step step => blackhole;
-second => now;
-<<< "end" >>>;
-step =< blackhole;
+++ /dev/null
-var SinOsc sinosc => dac;
-1::second => now;
-sinosc.freq(220);
-1::second => now;
+++ /dev/null
-var SinOsc sinosc => dac;
-<<< second >>>;
-5::second => now;
+++ /dev/null
-class Sine extends SinOsc
-{
- fun float freq(float f) { (2 * f) => (this $ SinOsc).freq; }
-}
-
-var Sine s => dac;
-220 => s.freq;
-second => now;
class C
{
- static var int i;
- static var float f;
- static var Object o;
+ var static int i;
+ var static float f;
+ var static Object o;
fun int m_i() { return i; }
fun float m_f() { return f; }
+++ /dev/null
-var SinOsc s :=> var Dtrig dtrig => blackhole;
-second => now;
-s :=< dtrig;
+++ /dev/null
-var Gain a => var SinOsc s => blackhole;
+++ /dev/null
-var Gain a;
-var SinOsc s => blackhole;
-a =< s;
+++ /dev/null
-#! thanks to afl-fuzz
-ref SinOsc s, t;
-var Gain g => dac;
-1 => t.freq;
-s => g;
-t => g;
-g.chan(0);
-spork { while(true) { Math.rand2f(100, 800) => s.freq; .15::second => now; }};
-for(var int i; i < 5; i++) {
- <<< g.op() >>>;
- i => g.op;
- 2::second => now;
-}
-
+++ /dev/null
-Machine.compile(null);
-Machine.check("jgjl.");
class C
{
- static var int i;
- static var float f;
- static var Object o;
+ var static int i;
+ var static float f;
+ var static Object o;
}
<<< C.i >>>;
<<< C.f >>>;
+++ /dev/null
-ref UGen u;
-#!u.last(); #! should fail => fails.
-ref SinOsc s => ref Gain g => dac;
-for(-1 => var int i;i < 6; i++)
- i => g.op;
-samp => now;
-s.last();
-#!s.chan(2);
-#!dac.chan(1);
-samp => now;
-
-
-#! there a bug somewhere.
-#! probably deref 'dac' to many mul ...
-#!dac => blackhole;
-#!dac =< blackhole;
-#!dac =< s;
-#!dac =< s;
-s =< dac;
-s =< dac;
-#!dac =< s;
#! [contains] 'global' can only be used at class scope
class C {
{
- global var int i;
+ var global int i;
}
}
#! [contains] 'global' can only be used at file scope
{
-global var int i;
+var global int i;
}
}
-global var C c;
+var global C c;
#! [contains] can't access private
-class C { private var int i; }
+class C { var private int i; }
var C c;
<<< c.i >>>;
#! [contains] can only be used at class scope
-private var int i;
+var private int i;
#! [contains] can't access private
-class C { private var int i; }
+class C { var private int i; }
class D {
var C c;
#! [contains] can only be used at class scope
-static var int i;
+var static int i;
class C {
fun void test(int i) { <<< "int arg" >>>; }
typedef void PtrType(int i);
- test @=> static var PtrType p;
+ test @=> var static PtrType p;
p(1);
test @=> p;
p(1);
class C {
fun static void test(int i) { <<< "int arg" >>>; }
typedef static void PtrType(int i);
- test @=> static var PtrType p;
+ test @=> var static PtrType p;
p(1);
test @=> p;
p(1);
class C {
fun void test(int i) { <<< "int arg" >>>; }
typedef static void PtrType(int i);
- test @=> static var PtrType p;
+ test @=> var static PtrType p;
p(1);
test @=> p;
p(1);
-123 => global var int global_func_i;
+123 => var global int global_func_i;
class global GlobalFuncClass {
13 => var int i;
}
<<< global_func_i >>>;
-global var GlobalFuncClass g_c;
+var global GlobalFuncClass g_c;
<<< g_c, "->i => ", g_c.i >>>;
fun global void g_test() { <<< global_func_i >>>; <<< g_c >>>; <<< g_c.i >>>; <<< "test" >>>; }
#!fun global void g_test() { <<< "test" >>>; }
-<<< global var int global_var_i >>>;
+<<< var global int global_var_i >>>;
class C {
typedef static void func_t<~A~>(A a);
fun static void myfunc<~A~>(A a) { <<< a >>>; }
- myfunc @=> static var func_t ptr;
+ myfunc @=> var static func_t ptr;
ptr(1);
}
class <~A~>C {
typedef static void func_t<~A~>(A a);
fun static void myfunc<~A~>(A a) { <<< a >>>; }
- myfunc @=> static var func_t ptr;
+ myfunc @=> var static func_t ptr;
ptr(1);
}
var string s;
}
-global var GlobalStruct global_s;
+var global GlobalStruct global_s;
var GlobalStructWithCtor sctor;
13 => var float f;
<<< __func__ >>>;
}
- static var S s;
+ var static S s;
}
var C c;
struct S {
var int i;
var int j;
- 12 => static var int si;
+ 12 => var static int si;
fun static void test() { <<< __func__, si >>>; }
test();
}
+++ /dev/null
-Machine.compile("int i");
+++ /dev/null
-Machine.check("int i");
+++ /dev/null
-var int i[];
-Machine.shreds() @=> i;
+++ /dev/null
-class Sine extends SinOsc
-{
- fun int freq(float f) {
- (2 * f) => (this $ SinOsc).freq;
- }
-}
-
-var Sine s => dac;
-220 => s.freq;
-second => now;
-<<< global var int g_i >>>;
+<<< var global int g_i >>>;
+++ /dev/null
-var <~int, int~>Map pp;
-<<< pp >>>;
-<<< pp.size() >>>;
-<<< pp.set(1, 2) >>>;
-<<< pp.get(1) >>>;
}
-global var C c;
+var global C c;
+++ /dev/null
-var <~float, int~>Pair p;
-<<< p >>>;
-1 => p.key;
-2 => p.val;
-
-<<< p.key, " ", p.val >>>;
-
-(2,3) => p.set;
-<<< p.key, " ", p.val >>>;
class C {
- private var int i;
+ var private int i;
<<< i >>>;
}
class C {
- protect var int i;
+ var protect int i;
<<< ++i >>>;
}
class C {
- static var int i;
+ var static int i;
typedef static void Test();
- static var Test test;
+ var static Test test;
}
var C c;
}
class D {
- static var <~int~>C c;
+ var static <~int~>C c;
}
var D d;
+++ /dev/null
-var <~int, int~>Pair p;
-typedef <~int, int~>Pair lol;
-var lol t;
-<<< t >>>;
-<<< t.key >>>;
-class C extends lol { var int i;}
-var C c;
-<<< c.i >>>;
-class<~A~> D {
- <<< "lol" >>>;
- var int i;
-}
-typedef <~int~>D Lol;
-class E extends Lol {
- var float f;
-}
-var E d;
-<<< d >>>;
-<<< d.i >>>;
-<<< d.f >>>;