Skip to content

Commit

Permalink
Update symbolic link to code from thesis
Browse files Browse the repository at this point in the history
  • Loading branch information
Apanatshka committed Sep 13, 2024
1 parent 48346bb commit e1cf665
Showing 1 changed file with 9 additions and 1 deletion.
1 change: 0 additions & 1 deletion stratego.example/calc.str2

This file was deleted.

9 changes: 9 additions & 0 deletions stratego.example/calc.str2
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Calc: Plus(S(m), n) -> S(Plus(m, n)) // (1 + m) + n => 1 + (m + n)

Calc: Minus(n, O()) -> n // n - 0 => n
Calc: Minus(S(m), S(n)) -> Minus(m, n) // (1 + m) - (1 + n) => m - n
Calc: Minus(O(), S(_)) ->
<fatal-err(|"Negative result!")> // 0 - (1 + n) => not a nat

strategies
calculate = innermost(Calc)

0 comments on commit e1cf665

Please sign in to comment.