实现python版本的c语言词法分析

This commit is contained in:
ranchuan
2024-11-29 19:11:43 +08:00
commit c736ef5b1b
4 changed files with 300 additions and 0 deletions

25
main.c Normal file
View File

@@ -0,0 +1,25 @@
const char* get_type(int s) {
const char* ret;
switch (s)
{
case 1:
case 2:
case 3:
case 4:
case 5:
case 6:
case 7:
ret = "yes";
break;
default:
ret = "no";
break;
}
return ret;
}