main.cpp

来自「vc++实现编译原理中的LL(1)文法的编译过程,非常好用.」· C++ 代码 · 共 27 行

CPP
27 行
字号
#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 + =
减小字号Ctrl + -
显示快捷键?