remove pure-kiss proof of concept project
This commit is contained in:
@@ -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 *`.
|
|
||||||
}
|
|
||||||
```
|
|
@@ -1,5 +0,0 @@
|
|||||||
-lib kiss
|
|
||||||
-cp src
|
|
||||||
--main smooch.Main
|
|
||||||
--interp
|
|
||||||
|
|
@@ -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"
|
|
||||||
}
|
|
@@ -1,15 +0,0 @@
|
|||||||
// solution to: https://leetcode.com/problems/two-sum-ii-input-array-is-sorted/
|
|
||||||
(function :Array<Int> twosum [:Array<Int> numbers target]
|
|
||||||
(let [di (new Map<Int,Int>)]
|
|
||||||
(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")
|
|
@@ -1,10 +0,0 @@
|
|||||||
package smooch;
|
|
||||||
|
|
||||||
import smooch.LeetCode;
|
|
||||||
|
|
||||||
class Main{
|
|
||||||
static public function main(){
|
|
||||||
trace('main');
|
|
||||||
@:privateAccess LeetCode.main();
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,3 +0,0 @@
|
|||||||
#! /bin/bash
|
|
||||||
|
|
||||||
haxe build.hxml
|
|
Reference in New Issue
Block a user