O'Reilly logo

Modern Compiler Implementation in C by Maia Ginsburg, Andrew W. Appel

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

image

3

Parsing

image

syn-tax: the way in which words are put together to form phrases, clauses, or sentences.

Webster’s Dictionary

The abbreviation mechanism in Lex, whereby a symbol stands for some regular expression, is convenient enough that it is tempting to use it in interesting ways:

image

These regular expressions define sums of the form 28+301+9.

But now consider

This is meant to define expressions of the form:

(109+23)

61

(1+(250+3))

in which all the parentheses ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required