diff options
| author | Inari Listenmaa <inari.listenmaa@gmail.com> | 2020-08-21 13:25:16 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-21 13:25:16 +0200 |
| commit | bf21b4768c70e710ff0d4509ae9165c3480dc048 (patch) | |
| tree | 02e05085feb911d49bc7338dba37950b49c16a7f /doc/tutorial/gf-tutorial.t2t | |
| parent | 90fc1d750ed21e78e10a37c0699b27665bda0c47 (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/tutorial/gf-tutorial.t2t')
| -rw-r--r-- | doc/tutorial/gf-tutorial.t2t | 5 |
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 ; |
