-adc => var Gain g => dac;
+adc ~> var Gain g ~> dac;
g.chan(0);
spork { while(true) { g.gain() == (.2 ? .2 : .1) => g.gain; .15::second => now; }};
for(var int i; i < 5; i++) {
var Object r[2][3][4];
var Object s[2][3][4][5];
var Object t[2][12][3][4][5];
-[1,2,3,4] @=> i;
+[1,2,3,4] => i;
var int k[1][1];
second => now;
var string s;
<<< "test spork exp." >>>;
- } @=> var Shred shred;
+ } => var Shred shred;
}
var C c;
-adc => dac;
+adc ~> dac;
second => now;
-"test" @=> var string s;
+"test" => var string s;
<<< s >>>;
-var Impulse imp => var FullRect fr => dac;
+var Impulse imp ~> var FullRect fr ~> dac;
samp => now;
1 => imp.next;
samp => now;
-var Impulse imp => var HalfRect fr => dac;
+var Impulse imp ~> var HalfRect fr ~> dac;
samp => now;
1 => imp.next;
samp => now;
-var Impulse imp => dac;
+var Impulse imp ~> dac;
1 => imp.next;
<<< imp.next() >>>;
samp => now;
#!! assign object to C.ref
operator void => (Object o, C c) {
- o @=> c.ref_object;
+ o => c.ref_object;
<<< "success" >>>;
}
funcdef void Test();
fun void test1(){};
var Test test0;
- <<< test1 @=> test0 >>>;
+ <<< test1 => test0 >>>;
}
var C c;
var string s;
<<< this, " test spork exp. " , s >>>;
- } @=> var Shred shred;
+ } => var Shred shred;
}
var C c;
-var Step step => dac;
+var Step step ~> dac;
.1 => step.next;
samp => now;
<<<step.next()>>>;
-var Impulse imp => var ZeroX fr => dac;
+var Impulse imp ~> var ZeroX fr ~> dac;
samp => now;
-1 => imp.next;
samp => now;
if(bin->rhs->exp_type == ae_exp_decl) {
if(bin->rhs->d.exp_decl.list->self->array &&
bin->rhs->d.exp_decl.list->self->array->exp)
- ERR_N(exp_self(bin)->pos, _("do not provide array for 'xxx @=> declaration'."))
+ ERR_N(exp_self(bin)->pos, _("do not provide array for 'xxx => declaration'."))
}
exp_setvar(bin->rhs, 1);
return bin->rhs->type;
GWI_BB(gwi_class_end(gwi))
GWI_BB(gwi_oper_ini(gwi, "Array", "Array", NULL))
GWI_BB(gwi_oper_add(gwi, opck_array_at))
- GWI_BB(gwi_oper_end(gwi, "@=>", NULL))
+ GWI_BB(gwi_oper_end(gwi, "=>", NULL))
GWI_BB(gwi_oper_add(gwi, opck_array_implicit))
GWI_BB(gwi_oper_end(gwi, "@implicit", NULL))
GWI_BB(gwi_oper_ini(gwi, "Array", (m_str)OP_ANY_TYPE, NULL))
static OP_CHECK(opck_object_at) {
const Exp_Binary* bin = (Exp_Binary*)data;
+printf("HERE %s\n", env->name);
if(opck_rassign(env, data) == env->gwion->type[et_error])
return env->gwion->type[et_error];
if(bin->rhs->exp_type == ae_exp_decl)
GWI_BB(gwi_oper_ini(gwi, "Object", "Object", NULL))
GWI_BB(gwi_oper_add(gwi, opck_object_at))
GWI_BB(gwi_oper_emi(gwi, opem_object_at))
- GWI_BB(gwi_oper_end(gwi, "@=>", NULL))
+ GWI_BB(gwi_oper_end(gwi, "=>", NULL))
GWI_BB(gwi_oper_ini(gwi, "Object", "Object", "bool"))
GWI_BB(gwi_oper_end(gwi, "==", EqObject))
GWI_BB(gwi_oper_end(gwi, "!=", NeqObject))
GWI_BB(gwi_oper_ini(gwi, "Ptr", "Ptr", "Ptr"))
GWI_BB(gwi_oper_add(gwi, opck_ptr_ref))
// GWI_BB(gwi_oper_emi(gwi, opem_ptr_ref))
- GWI_BB(gwi_oper_end(gwi, "@=>", int_r_assign))
+ GWI_BB(gwi_oper_end(gwi, "=>", int_r_assign))
return GW_OK;
}
GWI_BB(gwi_class_end(gwi))
GWI_BB(gwi_oper_ini(gwi, "UGen", "UGen", "UGen"))
- _CHECK_OP("=>", chuck_ugen, UgenConnect)
- _CHECK_OP("=<", chuck_ugen, UgenDisconnect)
- _CHECK_OP(":=>", chuck_ugen, TrigConnect)
- _CHECK_OP(":=<", chuck_ugen, TrigDisconnect)
+ _CHECK_OP("~>", chuck_ugen, UgenConnect)
+ _CHECK_OP("~<", chuck_ugen, UgenDisconnect)
+ _CHECK_OP(":~>", chuck_ugen, TrigConnect)
+ _CHECK_OP(":~<", chuck_ugen, TrigDisconnect)
GWI_BB(gwi_oper_ini(gwi, "UGen[]", "UGen[]", "UGen[]"))
- _CHECK_OP("=>", chuck_ugen, UgenAAConnect)
- _CHECK_OP("=<", chuck_ugen, UgenAADisconnect)
- _CHECK_OP(":=>", chuck_ugen, TrigAAConnect)
- _CHECK_OP(":=<", chuck_ugen, TrigAADisconnect)
+ _CHECK_OP("~>", chuck_ugen, UgenAAConnect)
+ _CHECK_OP("~<", chuck_ugen, UgenAADisconnect)
+ _CHECK_OP(":~>", chuck_ugen, TrigAAConnect)
+ _CHECK_OP(":~<", chuck_ugen, TrigAADisconnect)
GWI_BB(gwi_oper_ini(gwi, "UGen", "UGen[]", "UGen[]"))
- _CHECK_OP("=>", chuck_ugen, UgenUAConnect)
- _CHECK_OP("=<", chuck_ugen, UgenUADisconnect)
- _CHECK_OP(":=>", chuck_ugen, TrigUAConnect)
- _CHECK_OP(":=<", chuck_ugen, TrigUADisconnect)
+ _CHECK_OP("~>", chuck_ugen, UgenUAConnect)
+ _CHECK_OP("~<", chuck_ugen, UgenUADisconnect)
+ _CHECK_OP(":~>", chuck_ugen, TrigUAConnect)
+ _CHECK_OP(":~<", chuck_ugen, TrigUADisconnect)
GWI_BB(gwi_oper_ini(gwi, "UGen[]", "UGen", "UGen"))
- _CHECK_OP("=>", chuck_ugen, UgenAUConnect)
- _CHECK_OP("=<", chuck_ugen, UgenAUDisconnect)
- _CHECK_OP(":=>", chuck_ugen, TrigAUConnect)
- _CHECK_OP(":=<", chuck_ugen, TrigAUDisconnect)
+ _CHECK_OP("~>", chuck_ugen, UgenAUConnect)
+ _CHECK_OP("~<", chuck_ugen, UgenAUDisconnect)
+ _CHECK_OP(":~>", chuck_ugen, TrigAUConnect)
+ _CHECK_OP(":~<", chuck_ugen, TrigAUDisconnect)
return import_global_ugens(gwi);
}
<<<test ~= this, " ", this>>>;
}
-var C u => dac;
+var C u ~> dac;
<<< u >>>;
#! use default tick
<<<test ~= this, " ", this>>>;
}
-var C u => dac;
+var C u ~> dac;
<<< u >>>;
samp => now;
<<< u.last() >>>;
<<<test ~= this, " ", this>>>;
}
-var C u => dac;
+var C u ~> dac;
<<< u >>>;
samp => now;
<<< u.last() >>>;
<<<test ~= this, " ", this>>>;
}
-var C u => dac;
+var C u ~> dac;
<<< u >>>;
samp => now;
<<< u.last() >>>;
<<<test ~= this, " ", this>>>;
}
-var C u => dac;
+var C u ~> dac;
<<< u >>>;
samp => now;
<<< u.last() >>>;
-"lol" @=> var string s;
+"lol" => var string s;
"test" => s;
<<< "testmem".replace(2, 3, "UKUH") >>>;
-late Gain g => dac;
+late Gain g ~> dac;
#! [contains] do not provide array
-[1,2,3,4] @=> var int loop[1];
+[1,2,3,4] => var int loop[1];
#! [contains] array depths do not match
-[1,2,3,4] @=> var int k[1][1];
+[1,2,3,4] => var int k[1][1];
#! [contains] non-mutable
-[1,2,3,4] @=> [1][1];
+[1,2,3,4] => [1][1];
#! [contains] array types do not match
-[1,2,3,4] @=> var Object k[1];
+[1,2,3,4] => var Object k[1];
#! [contains] no match found for operator
-var int i => var auto ae @=> var auto A;
+var int i => var auto ae :=> var auto A;
#! [contains] invalid array acces expression
var int j[];
-j[1,2,3,4] @=> i;
+j[1,2,3,4] => i;
var C c[1];
var C d[2][4];
-c => d;
+c :=> d;
12::samp => now;
me.test_cancel();
<<< "stop" >>>;
-} @=> var Fork f;
+} => var Fork f;
1 => f.set_cancel;
2::samp => now;
-fork { <<< __func__ >>>; } @=> var Fork f;
+fork { <<< __func__ >>>; } => var Fork f;
second => now;
f.join();
-fork { <<< __func__ >>>; minute => now; } @=> var Fork f;
+fork { <<< __func__ >>>; minute => now; } => var Fork f;
f.join();
#! [contains] Hello, interpolation! 1
1 => var int my;
-"Hello, interpolation! ${ my }" @=> var string s;
+"Hello, interpolation! ${ my }" => var string s;
<<< s >>>;
-new Object @=> var Object? o;
+new Object => var Object? o;
fun void test(...) {
<<< vararg >>>;
- <<< vararg.cpy() @=> var Vararg new_arg >>>;
+ <<< vararg.cpy() => var Vararg new_arg >>>;
}
test(1);
fun int test(int i) { <<< "test with arg ", i >>>; }
var PtrTypeI p;
-test @=> p;
+test => p;
<<< test >>>;
<<< p >>>;
<<< "test" >>>;
<<< u.i >>>;
<<< u.f >>>;
<<< 0 => u.i >>>;
-<<< null @=> u.o >>>;
+<<< null => u.o >>>;
-<<< [1,2,3] @=> var auto i >>>;
+<<< [1,2,3] => var auto i >>>;
<<< i[1:2] >>>;
<<< i[:2] >>>;
<<< i[2: -1] >>>;
-"test" @=> var string s0;
-"_test" @=> var string s1;
+"test" => var string s0;
+"_test" => var string s1;
<<< s0 == s0 >>>;
<<< s0 == s1 >>>;
-<<< new float[3] @=> var auto i >>>;
+<<< new float[3] => var auto i >>>;
<<< i >>>;
-me @=> var auto a;
+me => var auto a;
new Object;
-new Object @=> var Object refref;
+new Object => var Object refref;
new Event;
var Event ev;
-ev @=> var Event e;
-new Event @=> e;
-ev @=> e;
+ev => var Event e;
+new Event => e;
+ev => e;
funcdef void Test();
-fun void t0(){}
+fun void t0(){}
t0 @=> var Test test;
test();
var Event e;
spork { e => now; };
spork { samp => now; 4::samp => now;};
-spork { 5::samp => now;} @=> var Shred s;
-spork { samp => now; 4::samp => now; } @=> var Shred t;
+spork { 5::samp => now;} => var Shred s;
+spork { samp => now; 4::samp => now; } => var Shred t;
spork { 2::samp => now; me.exit(); };
spork { new Object; <<< "garbage collect me" >>>; 3::samp => now; };
2::samp => now;
-adc => dac;
-adc =< dac;
+adc ~> dac;
+adc ~< dac;
fun void test(...) {
var Object o;
varloop vararg {
- vararg $ Object @=> o;
+ vararg $ Object => o;
}
}