![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
编译原理
yue_luo_
这个作者很懒,什么都没留下…
展开
-
3666 小C语言--词法分析程序
3666 小C语言–词法分析程序#include<stdio.h> #include<string.h> using namespace std; int isDigit(char ch) { if(ch >= '0'&& ch <= '9') return 1; else return 0; } int isCharacter(char ch) { if(原创 2017-12-02 21:10:56 · 413 阅读 · 2 评论 -
2147 表达式语法分析——递归子程序法
2147 表达式语法分析——递归子程序法 #include<bits/stdc++.h> using namespace std; const int maxn = 55; int l,cnt=0,x=0; char s[maxn]; int dfsE(); int dfsG(); int dfsT(); int dfsS(); int dfsF(); int main() { scanf(原创 2017-12-02 21:13:12 · 604 阅读 · 0 评论 -
3515 翻译布尔表达式
3515 翻译布尔表达式#include<bits/stdc++.h> using namespace std; string s; int t,f; vector<string>ans; int main() { int n; scanf("%d\n",&n); while(n--) { getline(cin,s); t=1,f=0;原创 2017-12-02 21:14:56 · 728 阅读 · 0 评论