语法分析实验

语法分析实验

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 实实实实实实 YACC 实实实实实实实实实实 实实实实实实实 YACC 实实实实实实实实实 实实实实实 实实实实实实实实实实实实实实实实实实 exp->exp + exp | exp – exp | exp * exp |exp / exp |exp ^ exp | - exp |(exp) |NUM 实实实实实实实实实实实实实实实实实实 3 +实4 * 5实实实实实 23实实实实实实实实实实实实实实实实实实实实实实实实实实实实实 实实实实实实 YACC 实实实实实实实实实实实实实实实实 实实实实实实实 YACC 实实实实实实实实实实 实实实实实 实实实实实实实实实实实实实实实实实实 exp->exp + exp | exp – exp | exp * exp |exp / exp |exp ^ exp | - exp |(exp) |NUM 实实实实实实实实实实实实实实实实实实实实实实 3 + (4 * 5) = 23 3+ (4.2 * 2) = 11.4 3.2+ (1/2) = 3.7 3+(1/2) = 3 实实实实实实实实实实实实实实实实实实实实实实实实实实实实 ...
View Full Document

This note was uploaded on 10/20/2011 for the course COMPUTER S 10586 taught by Professor Jilinwang during the Spring '09 term at Zhejiang University.

Ask a homework question - tutors are online