04.03.2015 Views

Introducción a Yacc - GIAA

Introducción a Yacc - GIAA

Introducción a Yacc - GIAA

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

<strong>Yacc</strong>. Procesadores de Lenguaje II<br />

Declaraciones de terminales<br />

Ejemplo definición terminales<br />

• Lenguaje de expresiones aritméticas con enteros<br />

%{<br />

#include <br />

%}<br />

%token NUMERO, MAS, MENOS, POR, DIV, PAR_I, PAR_D<br />

%start expr /* simbolo axioma sentencial */<br />

…<br />

Declaración en YACC de terminales<br />

(expresiones.y)

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

Saved successfully!

Ooh no, something went wrong!