Computing

Operations on Symbols


more about Turing = productions to come . . .

grammar = a language about languages

_________________________________________________

A grammar for simple sentences. 

Things in this language are: THE MAN BITES A DOG.    A DOG PETS A DOG

Things not in this language are: MAN BITES DOG

Here is the grammar:


<sentence> ::= <subject> <predicate>

<subject> ::= <article> <noun>

<predicate> ::= <verb> <direct-object>

<direct-object> ::= <article> <noun>

<article> ::= THE | A

<noun> ::= MAN | DOG

<verb> ::= BITES | PETS

_________________________________________________


Back To >>>>> ThinkingTalkingComputing

© Gareth Harris 2019        -         Contact email: GarethHarris@mac.com         -         see also: SentimentalStargazer.com