Fixes; Builtins; Testing in the interpreter

This commit is contained in:
dcodeIO
2017-12-03 23:04:33 +01:00
parent 032ae379cd
commit 017efc71b6
33 changed files with 791 additions and 68 deletions

View File

@ -1,4 +1,4 @@
/// <reference path="../assembly.d.ts" />
/// <reference path="../../assembly.d.ts" />
@global()
class Array<T> {

View File

@ -1,4 +1,4 @@
/// <reference path="../assembly.d.ts" />
/// <reference path="../../assembly.d.ts" />
@global()
class Error {

View File

@ -1,4 +1,4 @@
/// <reference path="../assembly.d.ts" />
/// <reference path="../../assembly.d.ts" />
@global()
class Map<K,V> {

5
std/impl/math.ts Normal file
View File

@ -0,0 +1,5 @@
/// <reference path="../../assembly.d.ts" />
@global()
class Math {
}

View File

@ -1,4 +1,4 @@
/// <reference path="../assembly.d.ts" />
/// <reference path="../../assembly.d.ts" />
@global()
class Memory {

5
std/impl/set.ts Normal file
View File

@ -0,0 +1,5 @@
/// <reference path="../../assembly.d.ts" />
@global()
class Set<T> {
}

View File

@ -1,4 +1,4 @@
/// <reference path="../assembly.d.ts" />
/// <reference path="../../assembly.d.ts" />
@global()
@allocates()

15
std/impl/tsconfig.json Normal file
View File

@ -0,0 +1,15 @@
{
"compilerOptions": {
"noLib": true,
"experimentalDecorators": true
},
"files": [
"array.ts",
"error.ts",
"map.ts",
"math.ts",
"memory.ts",
"set.ts",
"string.ts"
]
}

View File

@ -1,5 +0,0 @@
/// <reference path="../assembly.d.ts" />
@global()
class Math {
}

View File

@ -1,5 +0,0 @@
/// <reference path="../assembly.d.ts" />
@global()
class Set<T> {
}

View File

@ -4,12 +4,12 @@
"experimentalDecorators": true
},
"files": [
"array.ts",
"error.ts",
"map.ts",
"math.ts",
"memory.ts",
"set.ts",
"string.ts"
"array.d.ts",
"error.d.ts",
"map.d.ts",
"math.d.ts",
"memory.d.ts",
"set.d.ts",
"string.d.ts"
]
}