Description:
A.Curricular experiment (before the examination of reports submitted)
Modify the expansion of the PL/0 to make the following:
(1) increasing word: reserved word ELSE, FOR, STEP, the RETURN
Operator+ =,- =,++,-, &, |,!
(2) modify the words: inequality# changed <>
(3) increase in the conditional statement ELSE clause: Write the related grammar, syntax diagrams, semantic rules.
Two. Curriculum design
The basic content (score range: "", "pass" or "fail")
(1) expansion of the assignment operator:+ = and- =
(2) expansion of the statement (Pascal FOR statement):
① The the FOR <variable>: = <expression> the STEP <expression> DO <statement>
② the FOR <variable>: = <expression> the STEP <expression> DO <statement>
Among them, the loop variable of the statement (1) step 1,
Statement ② loop variable step size to-1.
(3) increase the operator:++ and-.
Optional content (Grading extended to: "excellent" and "good")
(1) incr
To Search:
File list (Check if you may need any files):
PL0_C语言版09级课设\09级编译原理课内PL0上机作业和课程设计题目和要求.DOC
...................\源程序\FOR.PL0
...................\......\pl0.cpp
...................\......\pl0.exe
...................\......\pl0.h
...................\......\ppmm.pl0
...................\源程序
PL0_C语言版09级课设