![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
编译原理
si_en_hao
Write the code.Change the world.
展开
-
【编译原理】C++实现LL(1)文法
采用C++实现LL(1)文法步骤:1、输入测试文法2、编译程序并运行3、观察分析结果#include<iostream>#include<stdio.h>#include<vector>#include<string>#include<stack>#include<map>#include<cstring>#include<cstdlib>#include <bits/ios_原创 2021-05-24 15:08:47 · 1749 阅读 · 7 评论 -
【编译原理】C++实现First和Follow集合
使用软件:Dev-Cpp使用语言:C++#include<iostream>#include<vector>#include<string>#include<fstream>using namespace std;struct exp{ char ter; //终结符 bool e; //是否能产生空转(用@表示) vector<string> nonter; //非终结符 };vector<exp> v;转载 2021-04-26 15:58:53 · 2819 阅读 · 3 评论