Skip to content
This repository has been archived by the owner on Feb 1, 2020. It is now read-only.

Commit

Permalink
update to release 3.5.1 to add info to README about using Java backen…
Browse files Browse the repository at this point in the history
…d for tutorial
  • Loading branch information
Dwight Guth committed Jan 29, 2015
1 parent 13a2bc4 commit c41270a
Show file tree
Hide file tree
Showing 9 changed files with 28 additions and 10 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ recently changed!
Type `--help` with any of these to see the new options, or see CHANGELOG.md
for more details.

**WARNING**: The K tutorial no longer compiles with the default, Maude backend.
If you see an error similar to the following, please append `--backend java`
to the command you pass to `kompile`:

```
[Error] Critical: Found two modules with the same name: SUBSTITUTION
Source: File:
/home/dwightguth/k/k-distribution/target/release/k/include/modules/substitution.k
Location: (158,1,298,9)
```

New features
------------

Expand Down
2 changes: 1 addition & 1 deletion java-backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.kframework.k</groupId>
<artifactId>parent</artifactId>
<version>3.5</version>
<version>3.5.1</version>
</parent>
<artifactId>java-backend</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion k-distribution/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.kframework.k</groupId>
<artifactId>parent</artifactId>
<version>3.5</version>
<version>3.5.1</version>
</parent>
<artifactId>k-distribution</artifactId>
<packaging>jar</packaging>
Expand Down
11 changes: 9 additions & 2 deletions k-distribution/tutorial/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ point of view, a language syntax is nothing but a finite set of `KLabel`
constants. The `kast` tool can be used to parse a program and see its
KAST form. By running

$ kompile simple-untyped.k
$ kompile simple-untyped.k --backend java
$ kast tests/diverse/factorial.simple

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

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

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

The `--backend java` option tells the `kompile` tool to compile
the definition using the K backend written in Java. This is
the backend for which the tutorial is written, so all tutorial
lessons should be compiled with this argument. If you do
not specify this argument, you use the default Maude backend,
which is more mature and supports more features at this time.

The `--output none` option tells `krun` to not display the
configuration. Instead, it only displays output produced by the
program. Try running it without this option to see the resulting
Expand Down
2 changes: 1 addition & 1 deletion kernel/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.kframework.k</groupId>
<artifactId>parent</artifactId>
<version>3.5</version>
<version>3.5.1</version>
</parent>
<artifactId>kernel</artifactId>
<packaging>jar</packaging>
Expand Down
2 changes: 1 addition & 1 deletion kore/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.kframework.k</groupId>
<artifactId>parent</artifactId>
<version>3.5</version>
<version>3.5.1</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>kore</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion maude-backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.kframework.k</groupId>
<artifactId>parent</artifactId>
<version>3.5</version>
<version>3.5.1</version>
</parent>
<artifactId>maude-backend</artifactId>
<packaging>jar</packaging>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<groupId>org.kframework.k</groupId>
<artifactId>parent</artifactId>
<packaging>pom</packaging>
<version>3.5</version>
<version>3.5.1</version>
<name>K Framework Tool Parent</name>

<modules>
Expand All @@ -19,7 +19,7 @@

<scm>
<connection>scm:git:https://github.com/kframework/k.git</connection>
<tag>v3.5</tag>
<tag>v3.5.1</tag>
</scm>

<repositories>
Expand Down
2 changes: 1 addition & 1 deletion sdf-parser/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.kframework.k</groupId>
<artifactId>parent</artifactId>
<version>3.5</version>
<version>3.5.1</version>
</parent>
<artifactId>sdf-parser</artifactId>
<packaging>jar</packaging>
Expand Down

0 comments on commit c41270a

Please sign in to comment.