Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
inox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LARA
inox
Commits
195ea77c
Commit
195ea77c
authored
6 years ago
by
Nicolas Voirol
Browse files
Options
Downloads
Patches
Plain Diff
Bump sbt to 1.2.8
parent
6cdfa722
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
build.sbt
+3
-5
3 additions, 5 deletions
build.sbt
doc/interpolations.md
+22
-22
22 additions, 22 deletions
doc/interpolations.md
project/build.properties
+1
-1
1 addition, 1 deletion
project/build.properties
project/plugins.sbt
+2
-2
2 additions, 2 deletions
project/plugins.sbt
with
28 additions
and
30 deletions
build.sbt
+
3
−
5
View file @
195ea77c
name
:=
"inox"
name
:=
"inox"
enablePlugins
(
GitVersioning
)
enablePlugins
(
GitVersioning
,
TutPlugin
)
git
.
useGitDescribe
:=
true
git
.
useGitDescribe
:=
true
organization
:=
"ch.epfl.lara"
organization
:=
"ch.epfl.lara"
scalaVersion
:=
"2.1
1
.8"
scalaVersion
:=
"2.1
2
.8"
crossScalaVersions
:=
Seq
(
"2.11.8"
,
"2.12.
1
"
)
crossScalaVersions
:=
Seq
(
"2.11.8"
,
"2.12.
8
"
)
scalacOptions
++=
Seq
(
scalacOptions
++=
Seq
(
"-deprecation"
,
"-deprecation"
,
...
@@ -103,8 +103,6 @@ sourceGenerators in Compile += Def.task {
...
@@ -103,8 +103,6 @@ sourceGenerators in Compile += Def.task {
lazy
val
genDoc
=
taskKey
[
Unit
](
"Typecheck and interpret the documentation"
)
lazy
val
genDoc
=
taskKey
[
Unit
](
"Typecheck and interpret the documentation"
)
tutSettings
tutSourceDirectory
:=
sourceDirectory
.
value
/
"main"
/
"doc"
tutSourceDirectory
:=
sourceDirectory
.
value
/
"main"
/
"doc"
tutTargetDirectory
:=
baseDirectory
.
value
/
"doc"
tutTargetDirectory
:=
baseDirectory
.
value
/
"doc"
...
...
This diff is collapsed.
Click to expand it.
doc/interpolations.md
+
22
−
22
View file @
195ea77c
...
@@ -61,7 +61,7 @@ It is also possible to embed types and expressions:
...
@@ -61,7 +61,7 @@ It is also possible to embed types and expressions:
```
scala
```
scala
scala
>
e
"let x: $tpe = $expr in !x"
scala
>
e
"let x: $tpe = $expr in !x"
res
1
:
inox.trees.interpolator.trees.Expr
=
res
0
:
inox.trees.interpolator.trees.Expr
=
val
x
:
Boolean
=
1
+
1
==
2
val
x
:
Boolean
=
1
+
1
==
2
¬
x
¬
x
```
```
...
@@ -77,10 +77,10 @@ val x: Boolean = 1 + 1 == 2
...
@@ -77,10 +77,10 @@ val x: Boolean = 1 + 1 == 2
```
scala
```
scala
scala
>
e
"true"
scala
>
e
"true"
res
2
:
inox.trees.interpolator.trees.Expr
=
true
res
1
:
inox.trees.interpolator.trees.Expr
=
true
scala
>
e
"false"
scala
>
e
"false"
res
3
:
inox.trees.interpolator.trees.Expr
=
false
res
2
:
inox.trees.interpolator.trees.Expr
=
false
```
```
<a
name=
"numeric-literals"
></a>
<a
name=
"numeric-literals"
></a>
...
@@ -88,7 +88,7 @@ res3: inox.trees.interpolator.trees.Expr = false
...
@@ -88,7 +88,7 @@ res3: inox.trees.interpolator.trees.Expr = false
```
scala
```
scala
scala
>
e
"1"
scala
>
e
"1"
res
4
:
inox.trees.interpolator.trees.Expr
=
1
res
3
:
inox.trees.interpolator.trees.Expr
=
1
```
```
Note that the type of numeric expressions is inferred. In case of ambiguity,
`BigInt`
is chosen by default.
Note that the type of numeric expressions is inferred. In case of ambiguity,
`BigInt`
is chosen by default.
...
@@ -98,7 +98,7 @@ scala> val bigIntLit = e"1"
...
@@ -98,7 +98,7 @@ scala> val bigIntLit = e"1"
bigIntLit
:
inox.trees.interpolator.trees.Expr
=
1
bigIntLit
:
inox.trees.interpolator.trees.Expr
=
1
scala
>
bigIntLit
.
getType
scala
>
bigIntLit
.
getType
res
5
:
inox.trees.interpolator.trees.Type
=
BigInt
res
4
:
inox.trees.interpolator.trees.Type
=
BigInt
```
```
It is however possible to annotate the desired type.
It is however possible to annotate the desired type.
...
@@ -108,7 +108,7 @@ scala> val intLit = e"1 : Int"
...
@@ -108,7 +108,7 @@ scala> val intLit = e"1 : Int"
intLit
:
inox.trees.interpolator.trees.Expr
=
1
intLit
:
inox.trees.interpolator.trees.Expr
=
1
scala
>
intLit
.
getType
scala
>
intLit
.
getType
res
6
:
inox.trees.interpolator.trees.Type
=
Int
res
5
:
inox.trees.interpolator.trees.Type
=
Int
```
```
```
scala
```
scala
...
@@ -116,7 +116,7 @@ scala> val realLit = e"1 : Real"
...
@@ -116,7 +116,7 @@ scala> val realLit = e"1 : Real"
realLit
:
inox.trees.interpolator.trees.Expr
=
1
realLit
:
inox.trees.interpolator.trees.Expr
=
1
scala
>
realLit
.
getType
scala
>
realLit
.
getType
res
7
:
inox.trees.interpolator.trees.Type
=
Real
res
6
:
inox.trees.interpolator.trees.Type
=
Real
```
```
<a
name=
"real-literals"
></a>
<a
name=
"real-literals"
></a>
...
@@ -124,7 +124,7 @@ res7: inox.trees.interpolator.trees.Type = Real
...
@@ -124,7 +124,7 @@ res7: inox.trees.interpolator.trees.Type = Real
```
scala
```
scala
scala
>
e
"3.75"
scala
>
e
"3.75"
res
8
:
inox.trees.interpolator.trees.Expr
=
15
/
4
res
7
:
inox.trees.interpolator.trees.Expr
=
15
/
4
```
```
<a
name=
"string-literals"
></a>
<a
name=
"string-literals"
></a>
...
@@ -132,7 +132,7 @@ res8: inox.trees.interpolator.trees.Expr = 15/4
...
@@ -132,7 +132,7 @@ res8: inox.trees.interpolator.trees.Expr = 15/4
```
scala
```
scala
scala
>
e
"'Hello world!'"
scala
>
e
"'Hello world!'"
res
9
:
inox.trees.interpolator.trees.Expr
=
"Hello world!"
res
8
:
inox.trees.interpolator.trees.Expr
=
"Hello world!"
```
```
<a
name=
"character-literals"
></a>
<a
name=
"character-literals"
></a>
...
@@ -140,7 +140,7 @@ res9: inox.trees.interpolator.trees.Expr = "Hello world!"
...
@@ -140,7 +140,7 @@ res9: inox.trees.interpolator.trees.Expr = "Hello world!"
```
scala
```
scala
scala
>
e
"`a`"
scala
>
e
"`a`"
res
10
:
inox.trees.interpolator.trees.Expr
=
'a'
res
9
:
inox.trees.interpolator.trees.Expr
=
'a'
```
```
<a
name=
"arithmetic"
></a>
<a
name=
"arithmetic"
></a>
...
@@ -150,7 +150,7 @@ Arithmetic operators are infix and have there usual associativity and priority.
...
@@ -150,7 +150,7 @@ Arithmetic operators are infix and have there usual associativity and priority.
```
scala
```
scala
scala
>
e
"1 + 2 * 5 + 6 - 7 / 17"
scala
>
e
"1 + 2 * 5 + 6 - 7 / 17"
res1
1
:
inox.trees.interpolator.trees.Expr
=
((
1
+
2
*
5
)
+
6
)
-
7
/
17
res1
0
:
inox.trees.interpolator.trees.Expr
=
((
1
+
2
*
5
)
+
6
)
-
7
/
17
```
```
<a
name=
"conditionals"
></a>
<a
name=
"conditionals"
></a>
...
@@ -158,7 +158,7 @@ res11: inox.trees.interpolator.trees.Expr = ((1 + 2 * 5) + 6) - 7 / 17
...
@@ -158,7 +158,7 @@ res11: inox.trees.interpolator.trees.Expr = ((1 + 2 * 5) + 6) - 7 / 17
```
scala
```
scala
scala
>
e
"if (1 == 2) 'foo' else 'bar'"
scala
>
e
"if (1 == 2) 'foo' else 'bar'"
res1
2
:
inox.trees.interpolator.trees.Expr
=
res1
1
:
inox.trees.interpolator.trees.Expr
=
if
(
1
==
2
)
{
if
(
1
==
2
)
{
"foo"
"foo"
}
else
{
}
else
{
...
@@ -171,7 +171,7 @@ if (1 == 2) {
...
@@ -171,7 +171,7 @@ if (1 == 2) {
```
scala
```
scala
scala
>
e
"let word: String = 'World!' in concatenate('Hello ', word)"
scala
>
e
"let word: String = 'World!' in concatenate('Hello ', word)"
res1
3
:
inox.trees.interpolator.trees.Expr
=
res1
2
:
inox.trees.interpolator.trees.Expr
=
val
word
:
String
=
"World!"
val
word
:
String
=
"World!"
"Hello "
+
word
"Hello "
+
word
```
```
...
@@ -181,21 +181,21 @@ val word: String = "World!"
...
@@ -181,21 +181,21 @@ val word: String = "World!"
```
scala
```
scala
scala
>
e
"lambda x: BigInt, y: BigInt. x + y"
scala
>
e
"lambda x: BigInt, y: BigInt. x + y"
res1
4
:
inox.trees.interpolator.trees.Expr
=
(
x
:
BigInt
,
y
:
BigInt
)
=>
x
+
y
res1
3
:
inox.trees.interpolator.trees.Expr
=
(
x
:
BigInt
,
y
:
BigInt
)
=>
x
+
y
```
```
It is also possible to use the Unicode
`λ`
symbol.
It is also possible to use the Unicode
`λ`
symbol.
```
scala
```
scala
scala
>
e
"λx: BigInt, y: BigInt. x + y"
scala
>
e
"λx: BigInt, y: BigInt. x + y"
res1
5
:
inox.trees.interpolator.trees.Expr
=
(
x
:
BigInt
,
y
:
BigInt
)
=>
x
+
y
res1
4
:
inox.trees.interpolator.trees.Expr
=
(
x
:
BigInt
,
y
:
BigInt
)
=>
x
+
y
```
```
Type annotations can be omitted for any of the parameters if their type can be inferred.
Type annotations can be omitted for any of the parameters if their type can be inferred.
```
scala
```
scala
scala
>
e
"lambda x. x * 0.5"
scala
>
e
"lambda x. x * 0.5"
res1
6
:
inox.trees.interpolator.trees.Expr
=
(
x
:
Real
)
=>
x
*
1
/
2
res1
5
:
inox.trees.interpolator.trees.Expr
=
(
x
:
Real
)
=>
x
*
1
/
2
```
```
<a
name=
"quantifiers"
></a>
<a
name=
"quantifiers"
></a>
...
@@ -206,10 +206,10 @@ res16: inox.trees.interpolator.trees.Expr = (x: Real) => x * 1/2
...
@@ -206,10 +206,10 @@ res16: inox.trees.interpolator.trees.Expr = (x: Real) => x * 1/2
```
scala
```
scala
scala
>
e
"forall x: Int. x > 0"
scala
>
e
"forall x: Int. x > 0"
res1
7
:
inox.trees.interpolator.trees.Expr
=
∀
x
:
Int.
(
x
>
0
)
res1
6
:
inox.trees.interpolator.trees.Expr
=
∀
x
:
Int.
(
x
>
0
)
scala>
e
"
∀x.
x
||
true
"
scala>
e
"
∀x.
x
||
true
"
res1
8
:
inox.trees.interpolator.trees.Expr
=
∀
x
:
Boolean.
(
x
||
true
)
res1
7
:
inox.trees.interpolator.trees.Expr
=
∀
x
:
Boolean.
(
x
||
true
)
```
```
<a
name=
"existential-quantifiers"
></a>
<a
name=
"existential-quantifiers"
></a>
...
@@ -217,10 +217,10 @@ res18: inox.trees.interpolator.trees.Expr = ∀x: Boolean. (x || true)
...
@@ -217,10 +217,10 @@ res18: inox.trees.interpolator.trees.Expr = ∀x: Boolean. (x || true)
```
scala
```
scala
scala
>
e
"exists x: BigInt. x < 0"
scala
>
e
"exists x: BigInt. x < 0"
res1
9
:
inox.trees.interpolator.trees.Expr
=
¬∀
x
:
BigInt.
¬
(
x
<
0
)
res1
8
:
inox.trees.interpolator.trees.Expr
=
¬∀
x
:
BigInt.
¬
(
x
<
0
)
scala>
e
"
∃x
,
y
.
x
+
y
==
0
"
scala>
e
"
∃x
,
y
.
x
+
y
==
0
"
res
20
:
inox.trees.interpolator.trees.Expr
=
¬∀
x
:
BigInt
,
y
:
BigInt.
(
x
+
y
≠
0
)
res
19
:
inox.trees.interpolator.trees.Expr
=
¬∀
x
:
BigInt
,
y
:
BigInt.
(
x
+
y
≠
0
)
```
```
<a
name=
"choose"
></a>
<a
name=
"choose"
></a>
...
@@ -228,10 +228,10 @@ res20: inox.trees.interpolator.trees.Expr = ¬∀x: BigInt, y: BigInt. (x + y
...
@@ -228,10 +228,10 @@ res20: inox.trees.interpolator.trees.Expr = ¬∀x: BigInt, y: BigInt. (x + y
```
scala
```
scala
scala
>
e
"choose x. x * 3 < 17"
scala
>
e
"choose x. x * 3 < 17"
res2
1
:
inox.trees.interpolator.trees.Expr
=
choose
((
x
:
BigInt
)
=>
x
*
3
<
17
)
res2
0
:
inox.trees.interpolator.trees.Expr
=
choose
((
x
:
BigInt
)
=>
x
*
3
<
17
)
scala
>
e
"choose x: String. true"
scala
>
e
"choose x: String. true"
res2
2
:
inox.trees.interpolator.trees.Expr
=
choose
((
x
:
String
)
=>
true
)
res2
1
:
inox.trees.interpolator.trees.Expr
=
choose
((
x
:
String
)
=>
true
)
```
```
<a
name=
"primitives"
></a>
<a
name=
"primitives"
></a>
...
...
This diff is collapsed.
Click to expand it.
project/build.properties
+
1
−
1
View file @
195ea77c
sbt.version
=
0.13.16
sbt.version
=
1.2.8
This diff is collapsed.
Click to expand it.
project/plugins.sbt
+
2
−
2
View file @
195ea77c
addSbtPlugin
(
"org.tpolecat"
%
"tut-plugin"
%
"0.
4.8
"
)
addSbtPlugin
(
"org.tpolecat"
%
"tut-plugin"
%
"0.
6.10
"
)
addSbtPlugin
(
"com.typesafe.sbt"
%
"sbt-git"
%
"
0.8.5
"
)
addSbtPlugin
(
"com.typesafe.sbt"
%
"sbt-git"
%
"
1.0.0
"
)
// avoids warning from sbt-git, see https://github.com/sbt/sbt-git#known-issues
// avoids warning from sbt-git, see https://github.com/sbt/sbt-git#known-issues
libraryDependencies
+=
"org.slf4j"
%
"slf4j-nop"
%
"1.7.21"
libraryDependencies
+=
"org.slf4j"
%
"slf4j-nop"
%
"1.7.21"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment