Skip to content

Commit

Permalink
(Tutorial) Minor typofixes + current error message
Browse files Browse the repository at this point in the history
  • Loading branch information
inariksit authored Aug 31, 2020
1 parent 3de9c66 commit bca0691
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/tutorial/gf-tutorial.t2t
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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//.
Expand All @@ -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
Expand Down

0 comments on commit bca0691

Please sign in to comment.