Description: Syntax analysis
The experiment was C2.1
Recursive analysis of a decline in the preparation of procedures, procedures for the realization of the lexical analysis provided by the grammar checker word sequence and structure analysis.
C2.2 Experimental requirements
The use of C language procedures for the preparation of analysis of recursive descent, and a simple analysis of language syntax.
C2.2.1 to be analyzed in a simple language syntax
With the expansion of the BNF as follows:
(1) <program>:: = begin <statement string> end
(2) <statement string >::=< statement> ( <statement>)
(3) <>::=< assignment statement>
(4) <assignment statement>:: = ID: = <expression>
(5) <>::=< expression of> (+ <item> |- item>)
(6) <>::=< factor of> (* <factor> |/<factor>)
(7) <factor>:: = ID | NUM | (<expression>)
C2. 2. 2 Experimental requested clarification
Enter t
To Search:
- [yyfx] - The experiment was on the plane, through
File list (Check if you may need any files):
语法分析
........\2_1
........\...\2.1
........\...\2.1.cpp
........\...\2.1.dsp
........\...\2.1.dsw
........\...\2.1.ncb
........\...\2.1.opt
........\...\2.1.plg
........\...\2_1.dsp
........\...\2_1.dsw
........\...\2_1.ncb
........\...\2_1.opt
........\...\2_1.plg
........\...\Debug
........\...\.....\2.1.exe
........\...\.....\2.1.ilk
........\...\.....\2.1.obj
........\...\.....\2.1.pdb
........\...\.....\2_1.exe
........\...\.....\2_1.ilk
........\...\.....\2_1.pch
........\...\.....\2_1.pdb
........\...\.....\vc60.idb
........\...\.....\vc60.pdb
........\...\wordscan.h
........\语法分析.doc
........\语法分析实验报告.doc