Parsing in Python: Tools and Libraries (Part 2)

https://dzone.com/articles/parsing-in-python-tools-and-libraries-part-2?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone

Check out Part 1 here! 
Useful Things to Know About Parsers
Grammar

A grammar is a formal description of a language that can be used to recognize its structure.

In simple terms, a grammar is a list of rules that define how each construct can be composed. For example, a rule for an “if” statement could specify that it must start with the “if” keyword, followed by a left parenthesis, an expression, a right parenthesis, and a statement.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s