Skip to content

Commit c41270a

Browse files
author
Dwight Guth
committed
update to release 3.5.1 to add info to README about using Java backend for tutorial
1 parent 13a2bc4 commit c41270a

File tree

9 files changed

+28
-10
lines changed

9 files changed

+28
-10
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,17 @@ recently changed!
3232
Type `--help` with any of these to see the new options, or see CHANGELOG.md
3333
for more details.
3434

35+
**WARNING**: The K tutorial no longer compiles with the default, Maude backend.
36+
If you see an error similar to the following, please append `--backend java`
37+
to the command you pass to `kompile`:
38+
39+
```
40+
[Error] Critical: Found two modules with the same name: SUBSTITUTION
41+
Source: File:
42+
/home/dwightguth/k/k-distribution/target/release/k/include/modules/substitution.k
43+
Location: (158,1,298,9)
44+
```
45+
3546
New features
3647
------------
3748

java-backend/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.kframework.k</groupId>
88
<artifactId>parent</artifactId>
9-
<version>3.5</version>
9+
<version>3.5.1</version>
1010
</parent>
1111
<artifactId>java-backend</artifactId>
1212
<packaging>jar</packaging>

k-distribution/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.kframework.k</groupId>
88
<artifactId>parent</artifactId>
9-
<version>3.5</version>
9+
<version>3.5.1</version>
1010
</parent>
1111
<artifactId>k-distribution</artifactId>
1212
<packaging>jar</packaging>

k-distribution/tutorial/README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ point of view, a language syntax is nothing but a finite set of `KLabel`
141141
constants. The `kast` tool can be used to parse a program and see its
142142
KAST form. By running
143143

144-
$ kompile simple-untyped.k
144+
$ kompile simple-untyped.k --backend java
145145
$ kast tests/diverse/factorial.simple
146146

147147
from the [tutorial/2_languages/1_simple/1_untyped](/tutorial/2_languages/1_simple/1_untyped)
@@ -169,11 +169,18 @@ behaviors. What the `krun` tool basically does is:
169169

170170
To run our sample program `factorial`, all we need to do is:
171171

172-
$ kompile simple-untyped.k
172+
$ kompile simple-untyped.k --backend java
173173
$ krun tests/diverse/factorial.simple --output none
174174
Input a natural number: 5
175175
Factorial of 5 is: 120
176176

177+
The `--backend java` option tells the `kompile` tool to compile
178+
the definition using the K backend written in Java. This is
179+
the backend for which the tutorial is written, so all tutorial
180+
lessons should be compiled with this argument. If you do
181+
not specify this argument, you use the default Maude backend,
182+
which is more mature and supports more features at this time.
183+
177184
The `--output none` option tells `krun` to not display the
178185
configuration. Instead, it only displays output produced by the
179186
program. Try running it without this option to see the resulting

kernel/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.kframework.k</groupId>
88
<artifactId>parent</artifactId>
9-
<version>3.5</version>
9+
<version>3.5.1</version>
1010
</parent>
1111
<artifactId>kernel</artifactId>
1212
<packaging>jar</packaging>

kore/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.kframework.k</groupId>
88
<artifactId>parent</artifactId>
9-
<version>3.5</version>
9+
<version>3.5.1</version>
1010
<relativePath>../pom.xml</relativePath>
1111
</parent>
1212
<artifactId>kore</artifactId>

maude-backend/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.kframework.k</groupId>
88
<artifactId>parent</artifactId>
9-
<version>3.5</version>
9+
<version>3.5.1</version>
1010
</parent>
1111
<artifactId>maude-backend</artifactId>
1212
<packaging>jar</packaging>

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<groupId>org.kframework.k</groupId>
66
<artifactId>parent</artifactId>
77
<packaging>pom</packaging>
8-
<version>3.5</version>
8+
<version>3.5.1</version>
99
<name>K Framework Tool Parent</name>
1010

1111
<modules>
@@ -19,7 +19,7 @@
1919

2020
<scm>
2121
<connection>scm:git:https://github.com/kframework/k.git</connection>
22-
<tag>v3.5</tag>
22+
<tag>v3.5.1</tag>
2323
</scm>
2424

2525
<repositories>

sdf-parser/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<groupId>org.kframework.k</groupId>
88
<artifactId>parent</artifactId>
9-
<version>3.5</version>
9+
<version>3.5.1</version>
1010
</parent>
1111
<artifactId>sdf-parser</artifactId>
1212
<packaging>jar</packaging>

0 commit comments

Comments
 (0)