GoConqr has a new look! Let us know what you think.

Notes

Gramaticas EBNF,BNF e Ambiguas

Jonathas Cavalcante Compiladores Graduação Portuguese 4 pages

Content of the notes (4)

Page 1

Gramaticas EBNF,BNF e Ambiguas

Como tirar ambiguidade

Resolve o problema da ordem em que os numeros e suas operações são interpretados pela gramática, ou seja:

Primeiro consome os parenteses (nível 1)

Multiplicação e divisão (Nível 2)

Soma e subtração (Nível 3)

http://www.dcc.ufrj.br/~fabiom/comp20112/03Parsers.pdf

Gramaticas EBNF,BNF e Ambiguas

Page 2

EBNF

Gramaticas EBNF,BNF e Ambiguas

Gramaticas EBNF,BNF e Ambiguas

Fonte: http://www.din.uem.br/~yandre/TC/gramatica-mini.pdf

Page 3

BNF

Gramaticas EBNF,BNF e Ambiguas

Gramaticas EBNF,BNF e Ambiguas

Fonte: http://www.din.uem.br/~yandre/TC/gramatica-mini.pdf

Page 4

Exemplo de conversao EBNF para BNF

Gramaticas EBNF,BNF e Ambiguas

A necessidade de converter a gramatica EBNF para BNF é de aplicar as funções fist e follow para verificar as retrições ll1 r1 e r2

Information

Description
Graduação Compiladores (Tipos de Gramaticas) Note on Gramaticas EBNF,BNF e Ambiguas, created by Jonathas Cavalcante on 07/01/2017.
Created by
Jonathas Cavalcante · Jan 2017
Updated
Jan 10, 2017
Views
387
Rating

Feedback

What is it about?

What do you think of the new look?

How do you like it?