⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 y_output

📁 编译原理实验
💻
📖 第 1 页 / 共 2 页
字号:
state 0
	$accept : .Program 
	Program : .    (1)

	.  reduce 1

	Program  goto 1

Prefix :

state 1
	$accept :  Program.
	Program :  Program.Statement SEMICO 

	$end  accept
	FOR  shift 3
	ORIGIN  shift 4
	SCALE  shift 5
	ROT  shift 6
	. error

	Statement  goto 2

Prefix :Program 
Error could be caught

state 2
	Program :  Program Statement.SEMICO 

	SEMICO  shift 7
	. error


Prefix :Program Statement 
Error could be caught

state 3
	Statement :  FOR.T FROM Expr TO Expr STEP Expr DRAW L_BRACKET Expr COMMA Expr R_BRACKET 

	T  shift 8
	. error


Prefix :Program FOR 
Error could be caught

state 4
	Statement :  ORIGIN.IS L_BRACKET Expr COMMA Expr R_BRACKET 

	IS  shift 9
	. error


Prefix :Program ORIGIN 
Error could be caught

state 5
	Statement :  SCALE.IS L_BRACKET Expr COMMA Expr R_BRACKET 

	IS  shift 10
	. error


Prefix :Program SCALE 
Error could be caught

state 6
	Statement :  ROT.IS Expr 

	IS  shift 11
	. error


Prefix :Program ROT 
Error could be caught

state 7
	Program :  Program Statement SEMICO.    (2)

	.  reduce 2


Prefix :Program Statement SEMICO 

state 8
	Statement :  FOR T.FROM Expr TO Expr STEP Expr DRAW L_BRACKET Expr COMMA Expr R_BRACKET 

	FROM  shift 12
	. error


Prefix :Program FOR T 
Error could be caught

state 9
	Statement :  ORIGIN IS.L_BRACKET Expr COMMA Expr R_BRACKET 

	L_BRACKET  shift 13
	. error


Prefix :Program ORIGIN IS 
Error could be caught

state 10
	Statement :  SCALE IS.L_BRACKET Expr COMMA Expr R_BRACKET 

	L_BRACKET  shift 14
	. error


Prefix :Program SCALE IS 
Error could be caught

state 11
	Statement :  ROT IS.Expr 

	CONST_ID  shift 16
	FUNC  shift 17
	T  shift 18
	ERRTOKEN  shift 19
	L_BRACKET  shift 20
	PLUS  shift 21
	MINUS  shift 22
	. error

	Expr  goto 15

Prefix :Program ROT IS 
Error could be caught

state 12
	Statement :  FOR T FROM.Expr TO Expr STEP Expr DRAW L_BRACKET Expr COMMA Expr R_BRACKET 

	CONST_ID  shift 16
	FUNC  shift 17
	T  shift 18
	ERRTOKEN  shift 19
	L_BRACKET  shift 20
	PLUS  shift 21
	MINUS  shift 22
	. error

	Expr  goto 23

Prefix :Program FOR T FROM 
Error could be caught

state 13
	Statement :  ORIGIN IS L_BRACKET.Expr COMMA Expr R_BRACKET 

	CONST_ID  shift 16
	FUNC  shift 17
	T  shift 18
	ERRTOKEN  shift 19
	L_BRACKET  shift 20
	PLUS  shift 21
	MINUS  shift 22
	. error

	Expr  goto 24

Prefix :Program ORIGIN IS L_BRACKET 
Error could be caught

state 14
	Statement :  SCALE IS L_BRACKET.Expr COMMA Expr R_BRACKET 

	CONST_ID  shift 16
	FUNC  shift 17
	T  shift 18
	ERRTOKEN  shift 19
	L_BRACKET  shift 20
	PLUS  shift 21
	MINUS  shift 22
	. error

	Expr  goto 25

Prefix :Program SCALE IS L_BRACKET 
Error could be caught

state 15
	Statement :  ROT IS Expr.    (6)
	Expr :  Expr.PLUS Expr 
	Expr :  Expr.MINUS Expr 
	Expr :  Expr.MUL Expr 
	Expr :  Expr.DIV Expr 
	Expr :  Expr.POWER Expr 

	PLUS  shift 26
	MINUS  shift 27
	MUL  shift 28
	DIV  shift 29
	POWER  shift 30
	.  reduce 6


Prefix :Program ROT IS Expr 

state 16
	Expr :  CONST_ID.    (8)

	.  reduce 8


Prefix :Program ROT IS CONST_ID 

state 17
	Expr :  FUNC.L_BRACKET Expr R_BRACKET 

	L_BRACKET  shift 31
	. error


Prefix :Program ROT IS FUNC 
Error could be caught

state 18
	Expr :  T.    (7)

	.  reduce 7


Prefix :Program ROT IS T 

state 19
	Expr :  ERRTOKEN.    (18)

	.  reduce 18


Prefix :Program ROT IS ERRTOKEN 

state 20
	Expr :  L_BRACKET.Expr R_BRACKET 

	CONST_ID  shift 16
	FUNC  shift 17
	T  shift 18
	ERRTOKEN  shift 19
	L_BRACKET  shift 20
	PLUS  shift 21
	MINUS  shift 22
	. error

	Expr  goto 32

Prefix :Program ROT IS L_BRACKET 
Error could be caught

state 21
	Expr :  PLUS.Expr 

	CONST_ID  shift 16
	FUNC  shift 17
	T  shift 18
	ERRTOKEN  shift 19
	L_BRACKET  shift 20
	PLUS  shift 21
	MINUS  shift 22
	. error

	Expr  goto 33

Prefix :Program ROT IS PLUS 
Error could be caught

state 22
	Expr :  MINUS.Expr 

	CONST_ID  shift 16
	FUNC  shift 17
	T  shift 18
	ERRTOKEN  shift 19
	L_BRACKET  shift 20
	PLUS  shift 21
	MINUS  shift 22
	. error

	Expr  goto 34

Prefix :Program ROT IS MINUS 
Error could be caught

state 23
	Statement :  FOR T FROM Expr.TO Expr STEP Expr DRAW L_BRACKET Expr COMMA Expr R_BRACKET 
	Expr :  Expr.PLUS Expr 
	Expr :  Expr.MINUS Expr 
	Expr :  Expr.MUL Expr 
	Expr :  Expr.DIV Expr 
	Expr :  Expr.POWER Expr 

	TO  shift 35
	PLUS  shift 26
	MINUS  shift 27
	MUL  shift 28
	DIV  shift 29
	POWER  shift 30
	. error


Prefix :Program FOR T FROM Expr 
Error could be caught

state 24
	Statement :  ORIGIN IS L_BRACKET Expr.COMMA Expr R_BRACKET 
	Expr :  Expr.PLUS Expr 
	Expr :  Expr.MINUS Expr 
	Expr :  Expr.MUL Expr 
	Expr :  Expr.DIV Expr 
	Expr :  Expr.POWER Expr 

	COMMA  shift 36
	PLUS  shift 26
	MINUS  shift 27
	MUL  shift 28
	DIV  shift 29
	POWER  shift 30
	. error


Prefix :Program ORIGIN IS L_BRACKET Expr 
Error could be caught

state 25
	Statement :  SCALE IS L_BRACKET Expr.COMMA Expr R_BRACKET 
	Expr :  Expr.PLUS Expr 
	Expr :  Expr.MINUS Expr 
	Expr :  Expr.MUL Expr 
	Expr :  Expr.DIV Expr 
	Expr :  Expr.POWER Expr 

	COMMA  shift 37
	PLUS  shift 26
	MINUS  shift 27
	MUL  shift 28
	DIV  shift 29
	POWER  shift 30
	. error


Prefix :Program SCALE IS L_BRACKET Expr 
Error could be caught

state 26
	Expr :  Expr PLUS.Expr 

	CONST_ID  shift 16
	FUNC  shift 17
	T  shift 18
	ERRTOKEN  shift 19
	L_BRACKET  shift 20
	PLUS  shift 21
	MINUS  shift 22
	. error

	Expr  goto 38

Prefix :Program ROT IS Expr PLUS 
Error could be caught

state 27
	Expr :  Expr MINUS.Expr 

	CONST_ID  shift 16
	FUNC  shift 17
	T  shift 18
	ERRTOKEN  shift 19
	L_BRACKET  shift 20
	PLUS  shift 21
	MINUS  shift 22
	. error

	Expr  goto 39

Prefix :Program ROT IS Expr MINUS 
Error could be caught

state 28
	Expr :  Expr MUL.Expr 

	CONST_ID  shift 16
	FUNC  shift 17
	T  shift 18
	ERRTOKEN  shift 19
	L_BRACKET  shift 20
	PLUS  shift 21
	MINUS  shift 22
	. error

	Expr  goto 40

Prefix :Program ROT IS Expr MUL 
Error could be caught

state 29
	Expr :  Expr DIV.Expr 

	CONST_ID  shift 16
	FUNC  shift 17
	T  shift 18
	ERRTOKEN  shift 19
	L_BRACKET  shift 20
	PLUS  shift 21
	MINUS  shift 22
	. error

	Expr  goto 41

Prefix :Program ROT IS Expr DIV 
Error could be caught

state 30
	Expr :  Expr POWER.Expr 

	CONST_ID  shift 16
	FUNC  shift 17
	T  shift 18
	ERRTOKEN  shift 19
	L_BRACKET  shift 20
	PLUS  shift 21
	MINUS  shift 22
	. error

	Expr  goto 42

Prefix :Program ROT IS Expr POWER 
Error could be caught

state 31
	Expr :  FUNC L_BRACKET.Expr R_BRACKET 

	CONST_ID  shift 16
	FUNC  shift 17

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -