Skip to content

Commit

Permalink
* README.md: update readme to reflect last change
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed Jun 14, 2011
1 parent e4c204f commit f5845ba
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions README.md
Expand Up @@ -177,15 +177,15 @@ core.logic has Prolog-type DCG syntax for parsing:

```clj
(def-->e verb [v]
([[:v 'eats]] [eats]))
([[:v 'eats]] '[eats]))

(def-->e noun [n]
([[:n 'bat]] [bat])
([[:n 'cat]] [cat]))
([[:n 'bat]] '[bat])
([[:n 'cat]] '[cat]))

(def-->e det [d]
([[:d 'the]] [the])
([[:d 'a]] [a]))
([[:d 'the]] '[the])
([[:d 'a]] '[a]))

(def-->e noun-phrase [n]
([[:np ?d ?n]] (det ?d) (noun ?n)))
Expand All @@ -199,9 +199,6 @@ core.logic has Prolog-type DCG syntax for parsing:
(run* [parse-tree]
(sentence parse-tree '[the bat eats a cat] []))

(run* [parse-tree]
(sentence parse-tree '[the bat eats a cat] []))

;; ([:s [:np [:d the] [:n bat]] [:vp [:v eats] [:np [:d a] [:n cat]]]])
```

Expand Down

0 comments on commit f5845ba

Please sign in to comment.