12.01.2013 Views

Tutorial Lex/Yacc - capsl

Tutorial Lex/Yacc - capsl

Tutorial Lex/Yacc - capsl

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

• Syntactic Analysis<br />

Parser<br />

– The process of analyzing a sequence of tokens to determine its<br />

grammatical structure.<br />

– Syntax errors are identified during this stage.<br />

<strong>Lex</strong>eme Token Type<br />

foo Variable<br />

= Assignment Operator<br />

1 Number<br />

- Subtraction Operator<br />

3 Number<br />

** Power Operator<br />

2 Number<br />

2/17/2012<br />

foo<br />

=<br />

-<br />

1 **<br />

3 2<br />

CAPSL<br />

5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!