编译原理课程设计是用Microsoft Visual C++ 6.0编写。实现了语法词法及代码优化

源代码在线查看: 测试gotogosubrem.bas

软件大小: 132 K
上传用户: renyumeng
关键词: Microsoft Visual 6.0 编译原理
下载地址: 免注册下载 普通下载 VIP

相关代码

				rem  tttttttttttttttttttttttttt
				a=4   rem print a;2
				if a				if a>3 then print "noelse"  else print "^^$$**" 
				print a
				if a				print "NO"
				else
				print "ELSE"  
				endif
				if a>3 then 
				print "YES"
				else
				print "IF"
				endif
				if a=4 then
				print "%%%%%"
				endif
				for i=1 to 5
				print i
				next
				while a				b=a+1
				a=b
				print a
				wend
				gosub 100
				print 1234
				end
				100 print "gosub"
				return			

相关资源