我想在Scala
上安装REPL
windows10
。我在互联网上四处张望,但似乎找不到如何获得scala
二进制文件和REPL
的方法。这些链接似乎表明我使用了Intellij
或sbt
。如果我得到sbt,创建项目的方法是例如sbt new hello
,它似乎正在做很多事情(见下文)!
问题1-如何获得REPL
。我不想创建项目,我只需要一个命令行工具即可练习编写表达式。
问题2-安装sbt
之后,我做了sbt new hello
,不知所措在命令行中看到了结果。 sbt
在下面做什么以及为什么仍未创建项目(请参见最后的错误Template not found for: hello
?我已将输出截断以保持字数限制
C:\Users\manuc\Documents\manu>mkdir scala_programs
C:\Users\manuc\Documents\manu>cd scala_programs
C:\Users\manuc\Documents\manu\scala_programs>sbt new hello
"about to robocopy"
-------------------------------------------------------------------------------
ROBOCOPY :: Robust File Copy for Windows
-------------------------------------------------------------------------------
Started : 14 September 2018 09:43:43
Source : C:\Program Files (x86)\sbt\lib\local-preloaded\
Dest : C:\Users\manuc\.sbt\preloaded\
Files : *.*
Options : *.* /S /E /DCOPY:DA /COPY:DAT /R:1000000 /W:30
------------------------------------------------------------------------------
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.eed3si9n\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.eed3si9n\gigahorse-core_2.12\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.eed3si9n\gigahorse-core_2.12\0.3.0\
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.eed3si9n\gigahorse-core_2.12\0.3.0\ivys\
100% New File 3160 ivy.xml
100% New File 32 ivy.xml.md5
100% New File 40 ivy.xml.sha1
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.eed3si9n\gigahorse-core_2.12\0.3.0\jars\
100% New File 166989 gigahorse-core_2.12.jar
100% New File 32 gigahorse-core_2.12.jar.md5
100% New File 40 gigahorse-core_2.12.jar.sha1
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.eed3si9n\gigahorse-okhttp_2.12\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.eed3si9n\gigahorse-okhttp_2.12\0.3.0\
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.eed3si9n\gigahorse-okhttp_2.12\0.3.0\ivys\
100% New File 3021 ivy.xml
100% New File 32 ivy.xml.md5
100% New File 40 ivy.xml.sha1
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.eed3si9n\gigahorse-okhttp_2.12\0.3.0\jars\
100% New File 40267 gigahorse-okhttp_2.12.jar
100% New File 32 gigahorse-okhttp_2.12.jar.md5
100% New File 40 gigahorse-okhttp_2.12.jar.sha1
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.eed3si9n\shaded-scalajson_2.12\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.eed3si9n\shaded-scalajson_2.12\1.0.0-M4\
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.eed3si9n\shaded-scalajson_2.12\1.0.0-M4\ivys\
100% New File 2943 ivy.xml
100% New File 32 ivy.xml.md5
100% New File 40 ivy.xml.sha1
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.eed3si9n\shaded-scalajson_2.12\1.0.0-M4\jars\
100% New File 66051 shaded-scalajson_2.12.jar
100% New File 32 shaded-scalajson_2.12.jar.md5
100% New File 40 shaded-scalajson_2.12.jar.sha1
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.eed3si9n\sjson-new-core_2.12\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.eed3si9n\sjson-new-core_2.12\0.8.2\
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.eed3si9n\sjson-new-core_2.12\0.8.2\ivys\
100% New File 3076 ivy.xml
100% New File 32 ivy.xml.md5
100% New File 40 ivy.xml.sha1
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.eed3si9n\sjson-new-core_2.12\0.8.2\jars\
100% New File 786619 sjson-new-core_2.12.jar
100% New File 32 sjson-new-core_2.12.jar.md5
100% New File 40 sjson-new-core_2.12.jar.sha1
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.eed3si9n\sjson-new-murmurhash_2.12\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.eed3si9n\sjson-new-murmurhash_2.12\0.8.2\
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.eed3si9n\sjson-new-murmurhash_2.12\0.8.2\ivys\
100% New File 3233 ivy.xml
100% New File 32 ivy.xml.md5
100% New File 40 ivy.xml.sha1
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.eed3si9n\sjson-new-murmurhash_2.12\0.8.2\jars\
100% New File 5265 sjson-new-murmurhash_2.12.jar
100% New File 32 sjson-new-murmurhash_2.12.jar.md5
100% New File 40 sjson-new-murmurhash_2.12.jar.sha1
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.eed3si9n\sjson-new-scalajson_2.12\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.eed3si9n\sjson-new-scalajson_2.12\0.8.2\
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.eed3si9n\sjson-new-scalajson_2.12\0.8.2\ivys\
100% New File 3526 ivy.xml
100% New File 32 ivy.xml.md5
100% New File 40 ivy.xml.sha1
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.eed3si9n\sjson-new-scalajson_2.12\0.8.2\jars\
100% New File 37200 sjson-new-scalajson_2.12.jar
100% New File 32 sjson-new-scalajson_2.12.jar.md5
100% New File 40 sjson-new-scalajson_2.12.jar.sha1
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.github.ben-manes.caffeine\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.github.ben-manes.caffeine\caffeine\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.github.ben-manes.caffeine\caffeine\2.5.6\
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.github.ben-manes.caffeine\caffeine\2.5.6\ivys\
100% New File 5654 ivy.xml
100% New File 32 ivy.xml.md5
100% New File 40 ivy.xml.sha1
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.github.ben-manes.caffeine\caffeine\2.5.6\jars\
100% New File 1007139 caffeine.jar
100% New File 32 caffeine.jar.md5
100% New File 40 caffeine.jar.sha1
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.github.cb372\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.github.cb372\scalacache-caffeine_2.12\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.github.cb372\scalacache-caffeine_2.12\0.20.0\
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.github.cb372\scalacache-caffeine_2.12\0.20.0\ivys\
100% New File 3460 ivy.xml
100% New File 32 ivy.xml.md5
100% New File 40 ivy.xml.sha1
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.github.cb372\scalacache-caffeine_2.12\0.20.0\jars\
100% New File 7023 scalacache-caffeine_2.12.jar
100% New File 32 scalacache-caffeine_2.12.jar.md5
100% New File 40 scalacache-caffeine_2.12.jar.sha1
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.github.cb372\scalacache-core_2.12\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.github.cb372\scalacache-core_2.12\0.20.0\
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.github.cb372\scalacache-core_2.12\0.20.0\ivys\
100% New File 3255 ivy.xml
100% New File 32 ivy.xml.md5
100% New File 40 ivy.xml.sha1
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.github.cb372\scalacache-core_2.12\0.20.0\jars\
100% New File 124718 scalacache-core_2.12.jar
100% New File 32 scalacache-core_2.12.jar.md5
100% New File 40 scalacache-core_2.12.jar.sha1
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.google.protobuf\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.google.protobuf\protobuf-java\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.google.protobuf\protobuf-java\3.3.1\
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.google.protobuf\protobuf-java\3.3.1\bundles\
100% New File 1.2 m protobuf-java.jar
100% New File 32 protobuf-java.jar.md5
100% New File 40 protobuf-java.jar.sha1
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.google.protobuf\protobuf-java\3.3.1\ivys\
100% New File 5219 ivy.xml
100% New File 32 ivy.xml.md5
100% New File 40 ivy.xml.sha1
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.jcraft\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.jcraft\jsch\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.jcraft\jsch\0.1.54\
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.jcraft\jsch\0.1.54\ivys\
100% New File 3271 ivy.xml
100% New File 32 ivy.xml.md5
100% New File 40 ivy.xml.sha1
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.jcraft\jsch\0.1.54\jars\
100% New File 280515 jsch.jar
100% New File 32 jsch.jar.md5
100% New File 40 jsch.jar.sha1
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.lihaoyi\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.lihaoyi\fastparse-utils_2.12\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.lihaoyi\fastparse-utils_2.12\0.4.2\
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.lihaoyi\fastparse-utils_2.12\0.4.2\ivys\
100% New File 3266 ivy.xml
100% New File 32 ivy.xml.md5
100% New File 40 ivy.xml.sha1
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.lihaoyi\fastparse-utils_2.12\0.4.2\jars\
100% New File 62230 fastparse-utils_2.12.jar
100% New File 32 fastparse-utils_2.12.jar.md5
100% New File 40 fastparse-utils_2.12.jar.sha1
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.lihaoyi\fastparse_2.12\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.lihaoyi\fastparse_2.12\0.4.2\
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.lihaoyi\fastparse_2.12\0.4.2\ivys\
100% New File 3393 ivy.xml
100% New File 32 ivy.xml.md5
100% New File 40 ivy.xml.sha1
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.lihaoyi\fastparse_2.12\0.4.2\jars\
100% New File 306991 fastparse_2.12.jar
100% New File 32 fastparse_2.12.jar.md5
100% New File 40 fastparse_2.12.jar.sha1
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.lihaoyi\sourcecode_2.12\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.lihaoyi\sourcecode_2.12\0.1.3\
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.lihaoyi\sourcecode_2.12\0.1.3\ivys\
100% New File 2856 ivy.xml
100% New File 32 ivy.xml.md5
100% New File 40 ivy.xml.sha1
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.lihaoyi\sourcecode_2.12\0.1.3\jars\
100% New File 110534 sourcecode_2.12.jar
100% New File 32 sourcecode_2.12.jar.md5
100% New File 40 sourcecode_2.12.jar.sha1
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.lmax\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.lmax\disruptor\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.lmax\disruptor\3.3.6\
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.lmax\disruptor\3.3.6\ivys\
100% New File 2792 ivy.xml
100% New File 32 ivy.xml.md5
100% New File 40 ivy.xml.sha1
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.lmax\disruptor\3.3.6\jars\
100% New File 84123 disruptor.jar
100% New File 32 disruptor.jar.md5
100% New File 40 disruptor.jar.sha1
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.squareup.okhttp3\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.squareup.okhttp3\okhttp\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.squareup.okhttp3\okhttp\3.7.0\
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.squareup.okhttp3\okhttp\3.7.0\ivys\
100% New File 6067 ivy.xml
100% New File 32 ivy.xml.md5
100% New File 40 ivy.xml.sha1
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.squareup.okhttp3\okhttp\3.7.0\jars\
100% New File 394987 okhttp.jar
100% New File 32 okhttp.jar.md5
100% New File 40 okhttp.jar.sha1
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.squareup.okhttp3\okhttp-urlconnection\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.squareup.okhttp3\okhttp-urlconnection\3.7.0\
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.squareup.okhttp3\okhttp-urlconnection\3.7.0\ivys\
100% New File 6392 ivy.xml
100% New File 32 ivy.xml.md5
100% New File 40 ivy.xml.sha1
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.squareup.okhttp3\okhttp-urlconnection\3.7.0\jars\
100% New File 32607 okhttp-urlconnection.jar
100% New File 32 okhttp-urlconnection.jar.md5
100% New File 40 okhttp-urlconnection.jar.sha1
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.squareup.okio\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.squareup.okio\okio\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.squareup.okio\okio\1.12.0\
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.squareup.okio\okio\1.12.0\ivys\
100% New File 4513 ivy.xml
100% New File 32 ivy.xml.md5
100% New File 40 ivy.xml.sha1
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.squareup.okio\okio\1.12.0\jars\
100% New File 81088 okio.jar
100% New File 32 okio.jar.md5
100% New File 40 okio.jar.sha1
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.swoval\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.swoval\apple-file-events\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.swoval\apple-file-events\1.3.2\
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.swoval\apple-file-events\1.3.2\ivys\
100% New File 3089 ivy.xml
100% New File 32 ivy.xml.md5
100% New File 40 ivy.xml.sha1
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.swoval\apple-file-events\1.3.2\jars\
100% New File 23033 apple-file-events.jar
100% New File 32 apple-file-events.jar.md5
100% New File 40 apple-file-events.jar.sha1
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.trueaccord.lenses\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.trueaccord.lenses\lenses_2.12\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.trueaccord.lenses\lenses_2.12\0.4.12\
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.trueaccord.lenses\lenses_2.12\0.4.12\ivys\
100% New File 2793 ivy.xml
100% New File 32 ivy.xml.md5
100% New File 40 ivy.xml.sha1
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.trueaccord.lenses\lenses_2.12\0.4.12\jars\
100% New File 33920 lenses_2.12.jar
100% New File 32 lenses_2.12.jar.md5
100% New File 40 lenses_2.12.jar.sha1
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.trueaccord.scalapb\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.trueaccord.scalapb\scalapb-runtime_2.12\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\com.trueaccord.scalapb\scalapb-runtime_2.12\0.6.0\
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\com.trueaccord.scalapb\scalapb-runtime_2.12\0.6.0\ivys\
100% New File 1.0 m ivy.jar
100% New File 32 ivy.jar.md5
100% New File 40 ivy.jar.sha1
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\org.slf4j\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\org.slf4j\slf4j-api\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\org.slf4j\slf4j-api\1.7.25\
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\org.slf4j\slf4j-api\1.7.25\ivys\
100% New File 5340 ivy.xml
100% New File 32 ivy.xml.md5
100% New File 40 ivy.xml.sha1
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\org.slf4j\slf4j-api\1.7.25\jars\
100% New File 41203 slf4j-api.jar
100% New File 32 slf4j-api.jar.md5
100% New File 40 slf4j-api.jar.sha1
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\org.spire-math\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\org.spire-math\jawn-parser_2.12\
New Dir 0 C:\Program Files (x86)\sbt\lib\local-preloaded\org.spire-math\jawn-parser_2.12\0.10.4\
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\org.spire-math\jawn-parser_2.12\0.10.4\ivys\
100% New File 2769 ivy.xml
100% New File 32 ivy.xml.md5
100% New File 40 ivy.xml.sha1
New Dir 3 C:\Program Files (x86)\sbt\lib\local-preloaded\org.spire-math\jawn-parser_2.12\0.10.4\jars\
100% New File 74239 jawn-parser_2.12.jar
100% New File 32 jawn-parser_2.12.jar.md5
100% New File 40 jawn-parser_2.12.jar.sha1
------------------------------------------------------------------------------
Total Copied Skipped Mismatch FAILED Extras
Dirs : 364 364 0 0 0 0
Files : 507 507 0 0 0 0
Bytes : 49.48 m 49.48 m 0 0 0 0
Times : 0:00:06 0:00:02 0:00:00 0:00:04
Speed : 18593244 Bytes/sec.
Speed : 1063.913 MegaBytes/min.
Ended : 14 September 2018 09:43:50
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
Getting org.scala-sbt sbt 1.2.1 (this may take some time)...
downloading file:/C:/Users/manuc/.sbt/preloaded/org.scala-sbt/sbt/1.2.1/jars/sbt.jar ...
[SUCCESSFUL ] org.scala-sbt#sbt;1.2.1!sbt.jar (57ms)
downloading file:/C:/Users/manuc/.sbt/preloaded/org.scala-lang/scala-library/2.12.6/jars/scala-library.jar ...
[SUCCESSFUL ] org.scala-lang#scala-library;2.12.6!scala-library.jar (140ms)
... 找不到以下模板:您好
C:\Users\manuc\Documents\manu\scala_programs>dir
Volume in drive C is OS
Volume Serial Number is 62A2-7F68
Directory of C:\Users\manuc\Documents\manu\scala_programs
14/09/2018 09:43 <DIR> .
14/09/2018 09:43 <DIR> ..
0 File(s) 0 bytes
2 Dir(s) 118,741,135,360 bytes free
C:\Users\manuc\Documents\manu\scala_programs>
C:\Users\manuc\Documents\manu\scala_programs>
C:\Users\manuc\Documents\manu\scala_programs>dir
Volume in drive C is OS
Volume Serial Number is 62A2-7F68
Directory of C:\Users\manuc\Documents\manu\scala_programs
14/09/2018 09:43 <DIR> .
14/09/2018 09:43 <DIR> ..
0 File(s) 0 bytes
2 Dir(s) 118,743,207,936 bytes free
C:\Users\manuc\Documents\manu\scala_programs>
答案 0 :(得分:1)
接受的答案是错误的
在官方页面https://www.scala-lang.org/download/上,有3种开始使用Scala的方法:下载Intellij 或下载SBT 。
这些选项下面是:其他安装Scala的方式。第一个选项是下载适用于Windows的Scala二进制文件。您可以下载,安装并将其添加到PATH,然后
在命令行中输入scala
以启动REPL。
答案 1 :(得分:0)
在以下地址,请参阅我的Windows上的runnig Dotty文档: https://github.com/michelou/dotty-examples/blob/master/README.md