diff options
| author | Inari Listenmaa <inari.listenmaa@gmail.com> | 2020-08-31 15:54:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-31 15:54:33 +0200 |
| commit | bca0691cb028fe33ae1b77e71752d4e937490ff1 (patch) | |
| tree | 4cd57bfe1f7e2bdfb70ce034f936733e057c9f58 /doc/tutorial/gf-tutorial.t2t | |
| parent | 3de9c664fd7e6636a8ebbd81dbaea56f03900dfc (diff) | |
(Tutorial) Minor typofixes + current error message
Diffstat (limited to 'doc/tutorial/gf-tutorial.t2t')
| -rw-r--r-- | doc/tutorial/gf-tutorial.t2t | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/tutorial/gf-tutorial.t2t b/doc/tutorial/gf-tutorial.t2t index a27af74a0..469166090 100644 --- a/doc/tutorial/gf-tutorial.t2t +++ b/doc/tutorial/gf-tutorial.t2t @@ -898,7 +898,7 @@ Parentheses are only needed for grouping. Parsing something that is not in grammar will fail: ``` > parse "hello dad" - Unknown words: dad + The parser failed at token 2: "dad" > parse "world hello" no tree found @@ -2948,7 +2948,7 @@ We need the following combinations: ``` We also need **lexical insertion**, to form phrases from single words: ``` - mkCN : N -> NP ; + mkCN : N -> CN ; mkAP : A -> AP ; ``` Naming convention: to construct a //C//, use a function ``mk``//C//. @@ -2969,7 +2969,7 @@ can be built as follows: ``` mkCl (mkNP these_Det - (mkCN (mkAP very_AdA (mkAP warm_A)) (mkCN pizza_CN))) + (mkCN (mkAP very_AdA (mkAP warm_A)) (mkCN pizza_N))) (mkAP italian_AP) ``` The task now: to define the concrete syntax of ``Foods`` so that |
