词法分析器(简陋版)

#include <stdio.h> #include <ctype.h> #include <string.h> #include <stdlib.h> char ch=' ',strToken[20]={'\0'}; int k=0,flag;//该词法器可识别:字母数字串、数字串、基本符号(+-/*=<>;,) void GetChar() { ch=getchar(); } void
相关文章
相关标签/搜索