diff --git a/projects/smooch/README.md b/projects/smooch/README.md deleted file mode 100644 index 0bdb04e4..00000000 --- a/projects/smooch/README.md +++ /dev/null @@ -1,15 +0,0 @@ -`Context` doesn't have a local type building this way, so you'll have to pass the name from the `FrontendContext` instance to the `defaultKissState` function. - -the `--macro KissFrontend.use()` declaration should be in a file called `extraParams.hxml` in the folder with `haxelib.json` and is automatically loaded by haxelib with `-lib kiss`. Seeing as you're not using it, `--macro kiss.Kiss.setup()` should probably go in there.` - -This should be enough to build a `*.kiss` file anytime the compiler goes looking for an unknown type. - -Imports are handled in the Frontend via `context.addImport`, where the `ImportMode` is - -```haxe -enum ImportMode { - INormal;//Represents a default import `import c`. - IAsName(alias:String);//Represents the alias import `import c as alias`. - IAll;//Represents the wildcard import `import *`. -} -``` diff --git a/projects/smooch/build.hxml b/projects/smooch/build.hxml deleted file mode 100644 index d2f6ac3c..00000000 --- a/projects/smooch/build.hxml +++ /dev/null @@ -1,5 +0,0 @@ --lib kiss --cp src ---main smooch.Main ---interp - diff --git a/projects/smooch/haxelib.json b/projects/smooch/haxelib.json deleted file mode 100644 index 2220fc29..00000000 --- a/projects/smooch/haxelib.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "main": "smooch.Main", - "name": "smooch", - "description": "auto build kiss scripts", - "classPath": "src/", - "dependencies": { - "kiss": "" - }, - "url": "https://github.com/NQNStudios/kisslang", - "contributors": [ - "NQNStudios" - ], - "version": "0.0.0", - "releasenote": "", - "tags": [], - "license": "LGPL" -} \ No newline at end of file diff --git a/projects/smooch/src/smooch/LeetCode.kiss b/projects/smooch/src/smooch/LeetCode.kiss deleted file mode 100644 index 2c133640..00000000 --- a/projects/smooch/src/smooch/LeetCode.kiss +++ /dev/null @@ -1,15 +0,0 @@ -// solution to: https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/ - (function :Array twosum [:Array numbers target] - (let [di (new Map)] - (doFor [i num] (enumerate numbers 1) - // (print "$i $num") - (if (di.exists (- target num)) - (return [(dictGet di (- target num)) i])) - (dictSet di num i))) - (return null)) - -(assert (= (.toString [2 3]) (.toString (twosum [1 2 3 4 5 6] 5)))) -(assert (= (.toString [1 2]) (.toString (twosum [2 7 11 15] 9)))) -(assert (= (.toString [1 3]) (.toString (twosum [2 3 4] 6)))) -(assert (= (.toString [1 2]) (.toString (twosum [-1 0] -1)))) -(trace "here") \ No newline at end of file diff --git a/projects/smooch/src/smooch/Main.hx b/projects/smooch/src/smooch/Main.hx deleted file mode 100644 index 273dafad..00000000 --- a/projects/smooch/src/smooch/Main.hx +++ /dev/null @@ -1,10 +0,0 @@ -package smooch; - -import smooch.LeetCode; - -class Main{ - static public function main(){ - trace('main'); - @:privateAccess LeetCode.main(); - } -} \ No newline at end of file diff --git a/projects/smooch/test.sh b/projects/smooch/test.sh deleted file mode 100755 index 0ee8ae95..00000000 --- a/projects/smooch/test.sh +++ /dev/null @@ -1,3 +0,0 @@ -#! /bin/bash - -haxe build.hxml \ No newline at end of file