You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+46-51
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ for a interpreted language.
29
29
30
30
See [FeatureTest](src/test/kotlin/org/lice/FeatureTest.kt) to learn more about the language's features.
31
31
32
-
# It looks like:
32
+
##It looks like
33
33
34
34
```lisp
35
35
; print a string
@@ -51,6 +51,13 @@ See [FeatureTest](src/test/kotlin/org/lice/FeatureTest.kt) to learn more about t
51
51
52
52
; to define a call-by-need lambda, use `lazy`.
53
53
```
54
+
55
+
# Building
56
+
57
+
To use Lice with build tools, see [JitPack instruction](https://jitpack.io/#lice-lang/lice).
58
+
59
+
Alternatively, you can download the nightly jar for the newest commit on [AppVeyor](https://ci.appveyor.com/project/ice1000/lice/branch/master/artifacts).
60
+
54
61
# Script API
55
62
56
63
```java
@@ -65,67 +72,55 @@ public class LiceScriptEngineTest {
65
72
}
66
73
```
67
74
68
-
# Building
69
-
70
-
You can use `lice-lang` with Gradle by simply adding Jitpack into your repository; then add the lice-lang dependency
75
+
## Lice performance
71
76
72
-
```groovy
73
-
allprojects {
74
-
repositories {
75
-
// ...
76
-
maven { url 'https://jitpack.io' }
77
-
}
78
-
}
77
+
Code to run:
79
78
80
-
dependencies {
81
-
compile 'com.github.lice-lang:lice:v3.2.0'
82
-
}
79
+
```lisp
80
+
; loops
81
+
(def loop count block (|>
82
+
(-> i 0)
83
+
(while (< i count) (|> (block i)
84
+
(-> i (+ i 1))))))
85
+
86
+
; invoking the function
87
+
(loop 200000 (lambda i (|>
88
+
(defexpr let x y block (|>
89
+
(-> x y) ; this is actually an issue of lice.
90
+
(block)
91
+
(undef x)))
92
+
(let reimu 100 (lambda (|> x))))))
93
+
94
+
(print "loop count: " i)
83
95
```
84
96
85
-
If you use Scala, you can add it to your sbt dependency, by adding the lines below:
0 commit comments