?? mgllex.l
字號:
%{#include "mglyac.h"#include <string.h>extern int lineno;%}ws [ \t]+comment #.*qstring \"[^\"\n]*[\"\n]id [a-zA-Z][a-zA-Z0-9]*nl \n%%{ws} ;{comment} ;{qstring} { yylval.string = strdup(yytext+1); /* skip open quote */ if(yylval.string[yyleng-2] != '"') warning("Unterminated character string",(char *)0); else yylval.string[yyleng-2] = '\0'; /* remove close quote */ return QSTRING; }screen { return SCREEN; }title { return TITLE; }item { return ITEM; }command { return COMMAND; }action { return ACTION; }execute { return EXECUTE; }menu { return MENU; }quit { return QUIT; }ignore { return IGNORE; }attribute { return ATTRIBUTE; }visible { return VISIBLE; }invisible { return INVISIBLE; }end { return END; }{id} { yylval.string = strdup(yytext); return ID; }{nl} { lineno++; }. { return yytext[0]; }%%
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -