Regular and Context Free Grammar