
编译原理
文章平均质量分 75
kuai2361425
这个作者很懒,什么都没留下…
展开
-
编译器之预处理程序 (去除注释符)
///beforeBegin.cpp// 预处理源程序,去除文件中的注释字符 // 和 /* lllll */#include #include #include #include #include using namespace std;//删除字符串中的 // 注释符string& deleteNote1(string& ss){ size_t lookHere = 0 ; size_t原创 2010-03-19 09:05:00 · 2109 阅读 · 1 评论 -
关于简单c的词法分析器
这段源码能在linux下运行!!! 能识别小数 #include#include#include#include/*#define NULL 0*//* 自定义变量 */#define sy_if 0#define sy_then 1#define sy_else 2#define sy_while原创 2010-05-24 09:50:00 · 888 阅读 · 0 评论