Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tada A big pull Request. * new VM, 3x faster * fix dinamicity and other fixes... smile
- Loading branch information
Showing
123 changed files
with
2,344 additions
and
1,721 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule ast
updated
from 8fe7b1 to 787c28
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ class C | |
samp => now; | ||
<<<"and now">>>; | ||
} | ||
spork test(); | ||
spork this.test(); | ||
} | ||
|
||
C c; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
3 => const int i; | ||
2 => const int y; | ||
switch(i) { | ||
case 1: <<<1>>>;break; | ||
case 3: <<<3>>>;break; | ||
case y: <<<2>>>;break; | ||
default: | ||
<<<"0">>>; | ||
} | ||
<<<y>>>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
class C | ||
{ | ||
function void test() { | ||
<<<"here">>>; | ||
function void test(int i) { | ||
<<<"here => ", i>>>; | ||
samp => now; | ||
<<<"and now">>>; | ||
} | ||
} | ||
|
||
C c; | ||
spork c.test(); | ||
spork c.test(2); | ||
me.yield(); | ||
4::samp => now; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
fun void test(C cc) { <<< cc.test(2) >>>; } | ||
|
||
fun void test(C cc, int i) { <<<1>>>; <<<cc.test(i, i)>>>; } | ||
|
||
|
||
class C { | ||
template<~A~> | ||
fun int test(A a) { <<<" A ", a>>>; } | ||
template<~A~> | ||
fun int test(A a, int i) { <<<" ", a >>>; } | ||
template<~A~> | ||
fun int test(A a, int i, int j) { <<<a>>>; } | ||
} | ||
class D extends C { | ||
template<~A~> | ||
fun int test(A a, int i) { <<<this, " extent ", a, __func__>>>; } | ||
} | ||
class E extends D { | ||
template<~A~> | ||
fun int test(A a, int i) { <<<this, " Extent ", a, __func__>>>; } | ||
} | ||
|
||
|
||
<<<C c>>>; | ||
<<<D d>>>; | ||
<<<E e>>>; | ||
|
||
test(c); | ||
test(d); | ||
test(e); | ||
test(c,1); | ||
test(d,2); | ||
test(e,3); | ||
<<<test>>>; | ||
|
||
|
||
c.test(1); | ||
c.test(123,1); | ||
c.test(1, 2, 3); | ||
|
||
d.test(2); | ||
d.test(123,3); | ||
d.test(2, 2, 3); | ||
|
||
e.test(3); | ||
e.test(123,3); | ||
e.test(3, 2, 3); | ||
|
||
fun void _test() {<<<"test">>>; } | ||
fun void test() { _test(); } | ||
test(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,4 @@ w-10.; | |
w/10.; | ||
10.*w; | ||
w*10.; | ||
<<<@(23).x>>>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
echo "#ifndef __GWION_OPCODES__" | ||
echo "#define __GWION_OPCODES__" | ||
|
||
list=$(grep -v "#" opcode.txt) | ||
COUNT=0 | ||
echo "enum {" | ||
for a in ${list} | ||
do | ||
[ -z "$a" ] || { | ||
echo " $a," | ||
COUNT=$((COUNT+1)) | ||
} | ||
done | ||
echo "};" | ||
echo "" | ||
|
||
for a in ${list} | ||
do | ||
[ -z "$a" ] || echo "#define $a (f_instr)$a" | ||
done | column -t | ||
|
||
echo "#endif" | ||
|
||
echo "generated" "$COUNT" "opcodes" >&2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#ifndef __GACK | ||
#define __GACK | ||
ANN void gack(const m_bit*, const Instr); | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.