LR(1) Parser Example
Author: 咳嗽di小鱼 Date: April 18, 2011 Category: Sum Up No Comments
Terminal Symbols: 6个
BOF, EOF, id, -, (, )
Nonterminal Symbols: 3个
S, expr, term
Start Symbol:
S
Production Rules: 5个
0 S BOF expr EOF 1 expr term 2 expr expr - term 3 term id 4 term ( expr )