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

📄 parser.mdl

📁 编译器 用C语言对下述文法和单词表定义的语言设计编制一个编译器
💻 MDL
📖 第 1 页 / 共 5 页
字号:
				    justify    	0
				    label      	"1..*"
				    pctDist    	0.815540
				    height     	36
				    orientation 	0))))
		    (object ClassView "Class" "Logical View::QFile" @14
			ShowCompartmentStereotypes 	TRUE
			IncludeAttribute 	TRUE
			IncludeOperation 	TRUE
			location   	(123, 978)
			font       	(object Font
			    size       	12
			    face       	"Arial"
			    bold       	FALSE
			    italics    	FALSE
			    underline  	FALSE
			    strike     	FALSE
			    color      	0
			    default_color 	TRUE)
			label      	(object ItemLabel
			    Parent_View 	@14
			    location   	(27, 921)
			    fill_color 	13434879
			    nlines     	1
			    max_width  	192
			    justify    	0
			    label      	"QFile")
			icon_style 	"Icon"
			line_color 	3342489
			fill_color 	13434879
			quidu      	"481579FB0251"
			width      	210
			height     	142
			annotation 	8
			autoResize 	TRUE)
		    (object UsesView "" @15
			stereotype 	TRUE
			line_color 	3342489
			quidu      	"48157A080271"
			client     	@5
			supplier   	@14
			line_style 	0)
		    (object ClassView "Class" "Logical View::MainWindow" @16
			ShowCompartmentStereotypes 	TRUE
			IncludeAttribute 	TRUE
			IncludeOperation 	TRUE
			location   	(2667, 1719)
			font       	(object Font
			    size       	12
			    face       	"Arial"
			    bold       	FALSE
			    italics    	FALSE
			    underline  	FALSE
			    strike     	FALSE
			    color      	0
			    default_color 	TRUE)
			label      	(object ItemLabel
			    Parent_View 	@16
			    location   	(2361, 1111)
			    fill_color 	13434879
			    nlines     	1
			    max_width  	612
			    justify    	0
			    label      	"MainWindow")
			icon_style 	"Icon"
			line_color 	3342489
			fill_color 	13434879
			quidu      	"48157A4A02CE"
			compartment 	(object Compartment
			    Parent_View 	@16
			    location   	(2361, 1178)
			    font       	(object Font
				size       	10
				face       	"Arial"
				bold       	FALSE
				italics    	FALSE
				underline  	FALSE
				strike     	FALSE
				color      	0
				default_color 	TRUE)
			    icon_style 	"Icon"
			    fill_color 	13434879
			    anchor     	2
			    nlines     	23
			    max_width  	528)
			width      	630
			height     	1244
			annotation 	8
			autoResize 	TRUE)
		    (object ClassView "Class" "Logical View::QMainWindow" @17
			ShowCompartmentStereotypes 	TRUE
			IncludeAttribute 	TRUE
			IncludeOperation 	TRUE
			location   	(2543, 466)
			font       	(object Font
			    size       	12
			    face       	"Arial"
			    bold       	FALSE
			    italics    	FALSE
			    underline  	FALSE
			    strike     	FALSE
			    color      	0
			    default_color 	TRUE)
			label      	(object ItemLabel
			    Parent_View 	@17
			    location   	(2331, 409)
			    fill_color 	13434879
			    nlines     	1
			    max_width  	424
			    justify    	0
			    label      	"QMainWindow")
			icon_style 	"Icon"
			line_color 	3342489
			fill_color 	13434879
			quidu      	"48157A5C0167"
			width      	442
			height     	142
			annotation 	8
			autoResize 	TRUE)
		    (object InheritView "" @18
			stereotype 	TRUE
			line_color 	3342489
			quidu      	"48157A680167"
			client     	@16
			supplier   	@17
			line_style 	0)
		    (object ClassView "Class" "Logical View::QMenu" @19
			ShowCompartmentStereotypes 	TRUE
			IncludeAttribute 	TRUE
			IncludeOperation 	TRUE
			location   	(2473, 2519)
			font       	(object Font
			    size       	12
			    face       	"Arial"
			    bold       	FALSE
			    italics    	FALSE
			    underline  	FALSE
			    strike     	FALSE
			    color      	0
			    default_color 	TRUE)
			label      	(object ItemLabel
			    Parent_View 	@19
			    location   	(2357, 2462)
			    fill_color 	13434879
			    nlines     	1
			    max_width  	232
			    justify    	0
			    label      	"QMenu")
			icon_style 	"Icon"
			line_color 	3342489
			fill_color 	13434879
			quidu      	"48157BC2032C"
			width      	250
			height     	142
			annotation 	8
			autoResize 	TRUE)
		    (object ClassView "Class" "Logical View::QAction" @20
			ShowCompartmentStereotypes 	TRUE
			IncludeAttribute 	TRUE
			IncludeOperation 	TRUE
			location   	(2825, 2516)
			font       	(object Font
			    size       	12
			    face       	"Arial"
			    bold       	FALSE
			    italics    	FALSE
			    underline  	FALSE
			    strike     	FALSE
			    color      	0
			    default_color 	TRUE)
			label      	(object ItemLabel
			    Parent_View 	@20
			    location   	(2694, 2459)
			    fill_color 	13434879
			    nlines     	1
			    max_width  	262
			    justify    	0
			    label      	"QAction")
			icon_style 	"Icon"
			line_color 	3342489
			fill_color 	13434879
			quidu      	"48157BD30109"
			width      	280
			height     	142
			annotation 	8
			autoResize 	TRUE)
		    (object UsesView "" @21
			stereotype 	TRUE
			line_color 	3342489
			quidu      	"48157BDD0399"
			client     	@16
			supplier   	@19
			line_style 	0)
		    (object UsesView "" @22
			stereotype 	TRUE
			line_color 	3342489
			quidu      	"48157BE10000"
			client     	@16
			supplier   	@20
			line_style 	0)
		    (object NoteView @23
			location   	(433, 2457)
			font       	(object Font
			    size       	12
			    face       	"Arial"
			    bold       	FALSE
			    italics    	FALSE
			    underline  	FALSE
			    strike     	FALSE
			    color      	0
			    default_color 	TRUE)
			label      	(object ItemLabel
			    Parent_View 	@23
			    location   	(58, 2313)
			    fill_color 	13434879
			    nlines     	5
			    max_width  	715
			    label      	
|内容:绘图语文解释器之语法分   析器实现框架
|日期:2008-04-18
|版本:0.1
|作者:周鑫
			    )
			line_color 	3342489
			fill_color 	13434879
			width      	775
			height     	300)
		    (object ClassView "Class" "Logical View::Parser" @24
			ShowCompartmentStereotypes 	TRUE
			IncludeAttribute 	TRUE
			IncludeOperation 	TRUE
			location   	(2023, 1831)
			font       	(object Font
			    size       	12
			    face       	"Arial"
			    bold       	FALSE
			    italics    	FALSE
			    underline  	FALSE
			    strike     	FALSE
			    color      	0
			    default_color 	TRUE)
			label      	(object ItemLabel
			    Parent_View 	@24
			    location   	(1749, 1073)
			    fill_color 	13434879
			    nlines     	1
			    max_width  	548
			    justify    	0
			    label      	"Parser")
			icon_style 	"Icon"
			line_color 	3342489
			fill_color 	13434879
			quidu      	"48158492000F"
			compartment 	(object Compartment
			    Parent_View 	@24
			    location   	(1749, 1140)
			    font       	(object Font
				size       	10
				face       	"Arial"
				bold       	FALSE
				italics    	FALSE
				underline  	FALSE
				strike     	FALSE
				color      	0
				default_color 	TRUE)
			    icon_style 	"Icon"
			    fill_color 	13434879
			    anchor     	2
			    nlines     	29
			    max_width  	463)
			width      	566
			height     	1544
			annotation 	8
			autoResize 	TRUE)
		    (object NoteView @25
			location   	(1271, 2106)
			font       	(object Font
			    size       	12
			    face       	"Arial"
			    bold       	FALSE
			    italics    	FALSE
			    underline  	FALSE
			    strike     	FALSE
			    color      	0
			    default_color 	TRUE)
			label      	(object ItemLabel
			    Parent_View 	@25
			    location   	(896, 1591)
			    fill_color 	13434879
			    nlines     	18
			    max_width  	715
			    label      	
|expression,term...的表达式如下:
|expression = term { (PLUS | MINUS) term }
|
|term = factor { (MUL | DIV) factor }
|
|factor = PLUS factor | MINUS factor | component
|
|component = atom POWER component | atom
|
|atom = CONSTANT | T | FUNC LBRACKET expression RBRACKET | LBRACKET expression RBRACKET
			    )
			line_color 	3342489
			fill_color 	13434879
			width      	775
			height     	1043)
		    (object ClassView "Class" "Logical View::CaseOperator" @26
			ShowCompartmentStereotypes 	TRUE
			IncludeAttribute 	TRUE
			IncludeOperation 	TRUE
			location   	(2043, 428)
			font       	(object Font
			    size       	12
			    face       	"Arial"
			    bold       	FALSE
			    italics    	FALSE
			    underline  	FALSE
			    strike     	FALSE
			    color      	0
			    default_color 	TRUE)
			label      	(object ItemLabel
			    Parent_View 	@26
			    location   	(1813, 342)
			    fill_color 	13434879
			    nlines     	1
			    max_width  	460
			    justify    	0
			    label      	"CaseOperator")
			stereotype 	(object ItemLabel
			    Parent_View 	@26
			    location   	(1813, 292)
			    fill_color 	13434879
			    anchor     	10
			    nlines     	1
			    max_width  	460
			    justify    	0
			    label      	"<<struct>>")
			icon_style 	"Icon"
			line_color 	3342489
			fill_color 	13434879
			quidu      	"4815883B0222"
			compartment 	(object Compartment
			    Parent_View 	@26
			    location   	(1813, 409)
			    font       	(object Font
				size       	10
				face       	"Arial"
				bold       	FALSE
				italics    	FALSE
				underline  	FALSE
				strike     	FALSE
				color      	0
				default_color 	TRUE)
			    icon_style 	"Icon"
			    fill_color 	13434879
			    anchor     	2
			    nlines     	3
			    max_width  	388)
			width      	478
			height     	300
			annotation 	8
			autoResize 	TRUE)
		    (object ClassView "Class" "Logical View::CaseFunc" @27
			ShowCompartmentStereotypes 	TRUE
			IncludeAttribute 	TRUE
			IncludeOperation 	TRUE
			location   	(2118, 772)
			font       	(object Font
			    size       	12
			    face       	"Arial"
			    bold       	FALSE
			    italics    	FALSE
			    underline  	FALSE
			    strike     	FALSE
			    color      	0
			    default_color 	TRUE)
			label      	(object ItemLabel
			    Parent_View 	@27
			    location   	(1742, 686)
			    fill_color 	13434879
			    nlines     	1
			    max_width  	752
			    justify    	0
			    label      	"CaseFunc")
			stereotype 	(object ItemLabel
			    Parent_View 	@27
			    location   	(1742, 636)
			    fill_color 	13434879
			    anchor     	10
			    nlines     	1
			    max_width  	752
			    justify    	0
			    label      	"<<struct>>")
			icon_style 	"Icon"
			line_color 	3342489
			fill_color 	13434879
			quidu      	"4815887D035B"
			compartment 	(object Compartment
			    Parent_View 	@27
			    location   	(1742, 753)
			    font       	(object Font
				size       	10
				face       	"Arial"
				bold       	FALSE
				italics    	FALSE
				underline  	FALSE
				strike     	FALSE
				color      	0
				default_color 	TRUE)
			    icon_style 	"Icon"
			    fill_color 	13434879
			    anchor     	2
			    nlines     	3
			    max_width  	638)
			width      	770
			height     	300
			annotation 	8
			autoResize 	TRUE)
		    (object ClassView "Class" "Logical View::ExprNode" @28
			ShowCompartmentStereotypes 	TRUE
			IncludeAttribute 	TRUE
			IncludeOperation 	TRUE
			location   	(1447, 944)
			font       	(object Font
			    size       	12
			    face       	"Arial"
			    bold       	FALSE
			    italics    	FALSE
			    underline  	FALSE
			    strike     	FALSE
			    color      	0
			    default_color 	TRUE)
			label      	(object ItemLabel
			    Parent_View 	@28
			    location   	(1197, 858)
			    fill_color 	13434879
			    nlines     	1
			    max_width  	500
			    justify    	0
			    label      	"ExprNode")
			stereotype 	(object ItemLabel
			    Parent_View 	@28
			    location   	(1197, 808)
			    fill_color 	13434879
			    anchor     	10
			    nlines     	1
			    max_width  	500
			    justify    	0
			    label      	"<<struct>>")
			icon_style 	"Icon"
			line_color 	3342489
			fill_color 	13434879
			quidu      	"481587230177"
			compartment 	(object Compartment
			    Parent_View 	@28
			    location   	(1197, 925)
			    font       	(object Font
				size       	10
				face       	"Arial"
				bold       	FALSE
				italics    	FALSE
				underline  	FALSE
				strike     	FALSE

⌨️ 快捷键说明

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