lang quiz 2 Flashcards
Alogl68
insane orthogonality
Pascal
teaching language
C
originally a sys language. Many operators poor type checking
smalltalk
first OOP plus had built in gui
C++
added OOP to C
syntax
The form or structure oft he expressions, statements, and program units
semantics
The meaning of the expressions, statements, and program units
lexical analysis
converts characters in the source program into lexical units (tokens)
token
syntactic family that forms a class of units (literal key word, operator)
lexeme
the actual sequence of characters in the token, terminal
meta lang
language used to describe other languages
grammar
A meta-language used to define the syntax of a language
recognizer
can verify if a sentence contains valid syntax for the language
generator
generates a random syntactically valid sentence
sentential form vs sentence
sentential form is any line in a derivation but a sentence is the final line with just terminals