CSCI 431: Formal Languages Continued---Context-Free Languages

Background (from the last class)

Programming Languages

Context-free grammars

An example

Another example: An expression grammar

Parsing

A top-down table-driven parser

Pushdown automata (PDA)

An Example

Deterministic vs. non-deterministic

Equivalence of context free languages and non-deterministic PDA languages

Regular Expressions Revisited

Regular Expressions and Egrep

The Basics: Wildcards for egrep

The "escape" character

Grouping expressions

Other useful operators

The Start of the Line and End of the Line

Matching one of two strings

Special Characters

Quotes

For another source of information on using egrep see An introduction to UNIX by Dean Brock