Référence Debian v2.124être nécessaires pour qu’ils fonctionnent sur le système actuel. Référence Debian 240 / 251 /* calculator source for bison */ %{ #includeextern int yylex(void); extern int yyerror(char *); %} yyparse(); } int yyerror(char *s) { fprintf(stderr, ”error: ’%s’\n”, s); } Créons example.l : /* calculator source for flex */ %{ #include ”example.tab.h” %} %% [0-9]+ { printf(”L: NUMBER = %s\n”, yytext); 0 码力 | 279 页 | 1.47 MB | 1 年前3
共 1 条
- 1













