02-04-2016, 06:35 PM
Yes yes, i already know that theres already one of this: http://tossha.com/rpl/
But, i think its pretty command-oriented, what i mean, is making a language, that can make computer science, here i have a snippet with the idea:
This code will build an RCA bit. With all its logic.
In fact, it is really simple, using some schematics of already built gates, you can make an rca, like the one ive made above. It is really simple, xa equals to XORing 2 inputs, Cout equals to ANDing the same inputs. You repeat the process, but now with Cin and xa. You should have get it.
It is just a draft, any ideas are collected.
But, i think its pretty command-oriented, what i mean, is making a language, that can make computer science, here i have a snippet with the idea:
Code:
structure xor_gate(in A, in B)
return xor(A,B) # There are predefined gates
fin
structure rca(in A, in B, param in Cin, param out Cout)
xa = xor(A,B)
Cout = and(A,B)
y = xor(Cin,xa)
Cout += and(Cin,xa)
return y, Cout
end
rca(1,0,0)
In fact, it is really simple, using some schematics of already built gates, you can make an rca, like the one ive made above. It is really simple, xa equals to XORing 2 inputs, Cout equals to ANDing the same inputs. You repeat the process, but now with Cin and xa. You should have get it.
It is just a draft, any ideas are collected.