编译原理
wodexiaoyuzhou
code for fun
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
简单词法分析c语言实现
/*单词编码方式*/ /* 标识符: token.class=1 */ /* 正整数: token.class=2 */ /* 加号: token.class=3 */ /* 分号: token.class=4 */ /* 冒号: token.class=5 */ /* 赋值号: token.class=6 */ /* 小于号: token.class=7 */ /*小于等于号: token.class=8 */ /*文件结束符'#': token.class=9*/ #inclu原创 2021-11-01 16:35:55 · 270 阅读 · 1 评论 -
实现一个给定文法的递归下降程序c语言实现
#include <stdio.h> #include <stdlib.h> #include <syspes.h> #include <unistd.h> /* 要求实现文法 S->aSe S->B B->bBe B->C C->cCc C->d */ char s[1000];//字符串 int index;//下标 bool ok; void C(char c){ if(c=='d') { .原创 2021-11-01 16:32:35 · 992 阅读 · 3 评论
分享