⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ch1-02.l

📁 YACC与LEX教程 英文原版(中文书附代码与答案)
💻 L
字号:
%{/* * this sample demonstrates (very) simple recognition: * a verb/not a verb. */%}%%[\t ]+		/* ignore white space */ ;is |am |are |were |was |be |being |been |do |does |did |will |would |should |can |could |has |have |had |go		{ printf("%s: is a verb\n", yytext); }[a-zA-Z]+ 	{ printf("%s: is not a verb\n", yytext); }.|\n		{ ECHO; /* normal default anyway */ }%%main(){	yylex();}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -