Skip to content

Commit

Permalink
Updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Arjan van Wieringen authored and Arjan van Wieringen committed Aug 22, 2023
1 parent 679fd4c commit 6c94003
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 35 deletions.
1 change: 0 additions & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/web.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/web.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion kotlin-js-store/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2330,7 +2330,7 @@ source-map-loader@4.0.1:
iconv-lite "^0.6.3"
source-map-js "^1.0.2"

source-map-support@0.5.21, source-map-support@~0.5.20:
source-map-support@~0.5.20:
version "0.5.21"
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f"
integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==
Expand Down
19 changes: 0 additions & 19 deletions node/build.gradle.kts

This file was deleted.

9 changes: 0 additions & 9 deletions node/src/jsMain/kotlin/App.kt

This file was deleted.

1 change: 0 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ include(
":core",
":repl",
":web",
":node"
)
6 changes: 3 additions & 3 deletions web/src/jsMain/kotlin/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ fun main() {
}

fun run(code: String, interpreter: Interpreter): Pair<String, String> {
try {
return try {
val ast = Grammar.parseToEnd(code)
val serialized = serializer.encodeToString(ast)
val result = interpreter.evaluate(ast)
return result.toString() to serialized
result.toString() to serialized
} catch (e: Exception) {
return (e.message ?: "Unknown error") to ""
(e.message ?: "Unknown error") to ""
}
}

0 comments on commit 6c94003

Please sign in to comment.