ktxt2 lix fix
This commit is contained in:
4
projects/_standalone/ktxt2/.haxerc
Normal file
4
projects/_standalone/ktxt2/.haxerc
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
{
|
||||||
|
"version": "4.3.1",
|
||||||
|
"resolveLibs": "scoped"
|
||||||
|
}
|
7
projects/_standalone/ktxt2/haxe_libraries/bad-nlp.hxml
Normal file
7
projects/_standalone/ktxt2/haxe_libraries/bad-nlp.hxml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# @install: lix --silent download "gh://github.com/kiss-lang/bad-nlp#109301d23c4f1e9df34cd570f4249d6b9120b561" into bad-nlp/0.0.0/github/109301d23c4f1e9df34cd570f4249d6b9120b561
|
||||||
|
# @run: haxelib run-dir bad-nlp "${HAXE_LIBCACHE}/bad-nlp/0.0.0/github/109301d23c4f1e9df34cd570f4249d6b9120b561"
|
||||||
|
-lib haxe-strings
|
||||||
|
-lib kiss
|
||||||
|
-lib yaml
|
||||||
|
-cp ${HAXE_LIBCACHE}/bad-nlp/0.0.0/github/109301d23c4f1e9df34cd570f4249d6b9120b561/src/
|
||||||
|
-D bad-nlp=0.0.0
|
@@ -0,0 +1,5 @@
|
|||||||
|
# @install: lix --silent download "haxelib:/haxe-strings#7.0.2" into haxe-strings/7.0.2/haxelib
|
||||||
|
-cp ${HAXE_LIBCACHE}/haxe-strings/7.0.2/haxelib/src/
|
||||||
|
-D haxe-strings=7.0.2
|
||||||
|
--macro hx.strings.internal.Macros.addDefines()
|
||||||
|
--macro hx.strings.internal.Macros.configureNullSafety()
|
5
projects/_standalone/ktxt2/haxe_libraries/hscript.hxml
Normal file
5
projects/_standalone/ktxt2/haxe_libraries/hscript.hxml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# @install: lix --silent download "haxelib:/hscript#2.5.0" into hscript/2.5.0/haxelib
|
||||||
|
# @run: haxelib run-dir hscript "${HAXE_LIBCACHE}/hscript/2.5.0/haxelib"
|
||||||
|
-cp ${HAXE_LIBCACHE}/hscript/2.5.0/haxelib/
|
||||||
|
-D hscript=2.5.0
|
||||||
|
--macro keep('IntIterator')
|
7
projects/_standalone/ktxt2/haxe_libraries/hxnodejs.hxml
Normal file
7
projects/_standalone/ktxt2/haxe_libraries/hxnodejs.hxml
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
# @install: lix --silent download "haxelib:/hxnodejs#12.1.0" into hxnodejs/12.1.0/haxelib
|
||||||
|
-cp ${HAXE_LIBCACHE}/hxnodejs/12.1.0/haxelib/src
|
||||||
|
-D hxnodejs=12.1.0
|
||||||
|
--macro allowPackage('sys')
|
||||||
|
# should behave like other target defines and not be defined in macro context
|
||||||
|
--macro define('nodejs')
|
||||||
|
--macro _internal.SuppressDeprecated.run()
|
@@ -0,0 +1,8 @@
|
|||||||
|
# @install: lix --silent download "gh://github.com/kiss-lang/kiss-vscode-api#1540b8f5024d51994234b1d812e74db774f5cd94" into kiss-vscode-api/0.0.0/github/1540b8f5024d51994234b1d812e74db774f5cd94
|
||||||
|
# @run: haxelib run-dir kiss-vscode-api "${HAXE_LIBCACHE}/kiss-vscode-api/0.0.0/github/1540b8f5024d51994234b1d812e74db774f5cd94"
|
||||||
|
-lib hxnodejs
|
||||||
|
-lib kiss
|
||||||
|
-lib re-flex
|
||||||
|
-lib vscode
|
||||||
|
-cp ${HAXE_LIBCACHE}/kiss-vscode-api/0.0.0/github/1540b8f5024d51994234b1d812e74db774f5cd94/src/
|
||||||
|
-D kiss-vscode-api=0.0.0
|
12
projects/_standalone/ktxt2/haxe_libraries/kiss.hxml
Normal file
12
projects/_standalone/ktxt2/haxe_libraries/kiss.hxml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
# @install: lix --silent download "gh://github.com/kiss-lang/kiss#63576057ac6acada5580ec223e8886ad85f5416f" into kiss/0.0.1/github/63576057ac6acada5580ec223e8886ad85f5416f
|
||||||
|
# @run: haxelib run-dir kiss "${HAXE_LIBCACHE}/kiss/0.0.1/github/63576057ac6acada5580ec223e8886ad85f5416f"
|
||||||
|
-lib haxe-strings
|
||||||
|
-lib hscript
|
||||||
|
-lib tink_json
|
||||||
|
-lib tink_macro
|
||||||
|
-lib tink_syntaxhub
|
||||||
|
-lib uuid
|
||||||
|
-cp ${HAXE_LIBCACHE}/kiss/0.0.1/github/63576057ac6acada5580ec223e8886ad85f5416f/src/
|
||||||
|
-D kiss=0.0.1
|
||||||
|
-w -WUnusedPattern
|
||||||
|
--macro kiss.KissFrontend.use()
|
5
projects/_standalone/ktxt2/haxe_libraries/re-flex.hxml
Normal file
5
projects/_standalone/ktxt2/haxe_libraries/re-flex.hxml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
# @install: lix --silent download "gh://github.com/kiss-lang/re-flex#af60a7f889511361c10f34b93679637ff43cfa09" into re-flex/0.0.0/github/af60a7f889511361c10f34b93679637ff43cfa09
|
||||||
|
# @run: haxelib run-dir re-flex "${HAXE_LIBCACHE}/re-flex/0.0.0/github/af60a7f889511361c10f34b93679637ff43cfa09"
|
||||||
|
-lib kiss
|
||||||
|
-cp ${HAXE_LIBCACHE}/re-flex/0.0.0/github/af60a7f889511361c10f34b93679637ff43cfa09/src/
|
||||||
|
-D re-flex=0.0.0
|
3
projects/_standalone/ktxt2/haxe_libraries/tink_core.hxml
Normal file
3
projects/_standalone/ktxt2/haxe_libraries/tink_core.hxml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# @install: lix --silent download "haxelib:/tink_core#2.1.0" into tink_core/2.1.0/haxelib
|
||||||
|
-cp ${HAXE_LIBCACHE}/tink_core/2.1.0/haxelib/src
|
||||||
|
-D tink_core=2.1.0
|
4
projects/_standalone/ktxt2/haxe_libraries/tink_json.hxml
Normal file
4
projects/_standalone/ktxt2/haxe_libraries/tink_json.hxml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# @install: lix --silent download "haxelib:/tink_json#0.11.0" into tink_json/0.11.0/haxelib
|
||||||
|
-lib tink_typecrawler
|
||||||
|
-cp ${HAXE_LIBCACHE}/tink_json/0.11.0/haxelib/src
|
||||||
|
-D tink_json=0.11.0
|
@@ -0,0 +1,4 @@
|
|||||||
|
# @install: lix --silent download "haxelib:/tink_macro#1.0.1" into tink_macro/1.0.1/haxelib
|
||||||
|
-lib tink_core
|
||||||
|
-cp ${HAXE_LIBCACHE}/tink_macro/1.0.1/haxelib/src
|
||||||
|
-D tink_macro=1.0.1
|
@@ -0,0 +1,3 @@
|
|||||||
|
-D tink_priority=0.1.3
|
||||||
|
# @install: lix --silent download "gh://github.com/haxetink/tink_priority#ea736d31dc788aae703a2aa415c25d5b80d0e7d1" into tink_priority/0.1.3/github/ea736d31dc788aae703a2aa415c25d5b80d0e7d1
|
||||||
|
-cp ${HAXE_LIBCACHE}/tink_priority/0.1.3/github/ea736d31dc788aae703a2aa415c25d5b80d0e7d1/src
|
@@ -0,0 +1,6 @@
|
|||||||
|
# @install: lix --silent download "gh://github.com/haxetink/tink_syntaxhub#b6ea4966bbdee4d176ac8dd5d2d8ae3b362b2f86" into tink_syntaxhub/0.6.0/github/b6ea4966bbdee4d176ac8dd5d2d8ae3b362b2f86
|
||||||
|
-lib tink_macro
|
||||||
|
-lib tink_priority
|
||||||
|
-cp ${HAXE_LIBCACHE}/tink_syntaxhub/0.6.0/github/b6ea4966bbdee4d176ac8dd5d2d8ae3b362b2f86/src
|
||||||
|
-D tink_syntaxhub=0.6.0
|
||||||
|
--macro tink.SyntaxHub.use()
|
@@ -0,0 +1,4 @@
|
|||||||
|
# @install: lix --silent download "haxelib:/tink_typecrawler#0.7.0" into tink_typecrawler/0.7.0/haxelib
|
||||||
|
-lib tink_macro
|
||||||
|
-cp ${HAXE_LIBCACHE}/tink_typecrawler/0.7.0/haxelib/src
|
||||||
|
-D tink_typecrawler=0.7.0
|
3
projects/_standalone/ktxt2/haxe_libraries/uuid.hxml
Normal file
3
projects/_standalone/ktxt2/haxe_libraries/uuid.hxml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# @install: lix --silent download "haxelib:/uuid#2.4.1" into uuid/2.4.1/haxelib
|
||||||
|
-cp ${HAXE_LIBCACHE}/uuid/2.4.1/haxelib/src
|
||||||
|
-D uuid=2.4.1
|
4
projects/_standalone/ktxt2/haxe_libraries/vscode.hxml
Normal file
4
projects/_standalone/ktxt2/haxe_libraries/vscode.hxml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
# @install: lix --silent download "haxelib:/vscode#1.60.0" into vscode/1.60.0/haxelib
|
||||||
|
-lib hxnodejs
|
||||||
|
-cp ${HAXE_LIBCACHE}/vscode/1.60.0/haxelib/src
|
||||||
|
-D vscode=1.60.0
|
3
projects/_standalone/ktxt2/haxe_libraries/yaml.hxml
Normal file
3
projects/_standalone/ktxt2/haxe_libraries/yaml.hxml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# @install: lix --silent download "haxelib:/yaml#2.0.1" into yaml/2.0.1/haxelib
|
||||||
|
-cp ${HAXE_LIBCACHE}/yaml/2.0.1/haxelib/
|
||||||
|
-D yaml=2.0.1
|
@@ -41,4 +41,8 @@ typedef Disposable = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
@:build(kiss.Kiss.build())
|
@:build(kiss.Kiss.build())
|
||||||
class KTxt2Editor {}
|
class KTxt2Editor {
|
||||||
|
static function main() {
|
||||||
|
_main();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@@ -37,7 +37,7 @@
|
|||||||
,@b
|
,@b
|
||||||
(setState ,s)))
|
(setState ,s)))
|
||||||
|
|
||||||
(function main []
|
(function _main []
|
||||||
(set _vscode (EditorExterns.acquireVsCodeApi))
|
(set _vscode (EditorExterns.acquireVsCodeApi))
|
||||||
(set window EditorExterns.window)
|
(set window EditorExterns.window)
|
||||||
(set document window.document)
|
(set document window.document)
|
||||||
|
@@ -35,13 +35,14 @@
|
|||||||
(and (isUpperCase name) {(stream.dropWhitespace) !(stream.isEmpty)}))
|
(and (isUpperCase name) {(stream.dropWhitespace) !(stream.isEmpty)}))
|
||||||
->stream
|
->stream
|
||||||
(let [name (whenLet [(Some name) (stream.takeLine)] (.trim (name.replace "(CONT'D)" "")))
|
(let [name (whenLet [(Some name) (stream.takeLine)] (.trim (name.replace "(CONT'D)" "")))
|
||||||
&mut output ""]
|
&mut output []]
|
||||||
(loop
|
(loop
|
||||||
(let [wryly (ifLet [(Some w) (stream.takeBetween "(" ")\n")] w "")
|
(let [wryly (ifLet [(Some w) (stream.takeBetween "(" ")\n")] w "")
|
||||||
line (ifLet [(Some l) (stream.takeLine)] (l.trim) (break))]
|
line (ifLet [(Some l) (stream.takeLine)] (l.trim) (break))]
|
||||||
(when line
|
(when line
|
||||||
(+= output "NORMALSPEECH \"${name}\" \"${wryly}\" ##\"${line}\"##\n"))))
|
(output.push "NORMALSPEECH \"${name}\" \"${wryly}\" ##\"${line}\"##"))))
|
||||||
output)))
|
(output.push "")
|
||||||
|
(output.join "\n"))))
|
||||||
|
|
||||||
(registerConversion
|
(registerConversion
|
||||||
(new ktxt2.StreamConversion "Label" "fountain" "hollywoo"
|
(new ktxt2.StreamConversion "Label" "fountain" "hollywoo"
|
||||||
|
Reference in New Issue
Block a user