CSC 301 Midterm 4
11 flashcards · Computer Science · by Logan Pollack
syntax
says what programs look like
semantics
says what programs do (behavior and meaning)
language defined by grammar
the set of all derived strings
Production EX
<Noun> ::= <Article> <Noun>
Non-terminal EX
<Noun>
Terminal EX
cat
A grammar consists of a collection of _________
productions
Each production in a grammar defines the "structure" of a ______________
non-terminal
In a grammar there is a unique non-terminal, the ________ symbol, that defines the largest structure in our language
start
Derived String
Terminal symbols