june / Multi-bit-stack VM

1 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 8 months ago
A sketch of a small virtual machine that operates on multiple stacks of bits.
1 ||:: dispatch
2
3 |:: dispatch| :: evaluate :text: "
4 initial state
5 01 11 11 11
6 rules
7 rule
8 and if
9 1 match
10 else

june / Simplest Nova (C++)

0 лайк(-ов)
0 форк(-ов)
1 файл(-ов)
Последняя активность 8 months ago
The simplest Nova implementation I've got (so far) in C++.
1 enum snv_state {
2 // Primary states.
3 INSERT, MATCH, REMOVE,
4 // Secondary states.
5 FETCH, LITERAL, VARIABLE
6 };
7
8 template<uint32_t size>
9 struct snv_stack {
10 uint32_t data[size] = {};