summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorInari Listenmaa <inari.listenmaa@gmail.com>2020-08-21 13:25:16 +0200
committerGitHub <noreply@github.com>2020-08-21 13:25:16 +0200
commitbf21b4768c70e710ff0d4509ae9165c3480dc048 (patch)
tree02e05085feb911d49bc7338dba37950b49c16a7f /doc
parent90fc1d750ed21e78e10a37c0699b27665bda0c47 (diff)
(Tutorial) Fix to make calculator example compile
In abstract: startcat needs to be defined to run the commands that are shown later in the doc. In concrete: ss and SS are defined in Prelude.
Diffstat (limited to 'doc')
-rw-r--r--doc/tutorial/gf-tutorial.t2t5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/tutorial/gf-tutorial.t2t b/doc/tutorial/gf-tutorial.t2t
index 525749822..a27af74a0 100644
--- a/doc/tutorial/gf-tutorial.t2t
+++ b/doc/tutorial/gf-tutorial.t2t
@@ -4200,7 +4200,8 @@ We construct a calculator with addition, subtraction, multiplication, and
division of integers.
```
abstract Calculator = {
-
+ flags startcat = Exp ;
+
cat Exp ;
fun
@@ -4226,7 +4227,7 @@ We begin with a
concrete syntax that always uses parentheses around binary
operator applications:
```
- concrete CalculatorP of Calculator = {
+ concrete CalculatorP of Calculator = open Prelude in {
lincat
Exp = SS ;