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

📄 main.cpp

📁 vc++实现编译原理中的LL(1)文法的编译过程,非常好用.
💻 CPP
字号:
#include<iostream>
#include"LL1_judge.h"
using namespace std;


void main()
{
	cout<<"a->A|@"<<endl;
	LL1_judge test;
	test.in_terminal_sign("i()+*");
	test.in_non_terminal_sign("ATF");
	test.in_type("A->A+T|T");
	test.in_type("T->T*F|F");
	test.in_type("F->(A)|i");
	test.display_all();
	test.cancel_directly();
	bool a;
	a=test.judge_indirectly();
	cout<<"*******************    "<<a<<endl;
	test.cancel_indirectly();
	test.find_first();
	test.display_all();

	
    

}

⌨️ 快捷键说明

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