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

📄 parser.y

📁 qADSL is an auto-login & keep-alive daemon for Internet connections. It was created to automate the
💻 Y
字号:
/* Hey Emacs, this is code for yacc to eat, treat it as -*-C-*- code */%{#include <stdio.h>#include "conf.h"#include "config.h"extern int yylineno;#define conf_set(key,value)				\   if (conf_set_value (key, value))			\     fprintf (stderr,					\	      "Error on line %d in config file, "	\	      "%s is not a valid identifier.\n",	\	      yylineno, key)%}%union {	char *str;}%token ID ARG EQU SET%type  <str> ID ARG%start line%%line   : line tuples       | tuples       ;tuples : tuple       | SET tuple       ;tuple  : ID EQU ARG             {/* printf ("\nBison(ID:%s)(ARG:%s)", $1, $3); */                                 conf_set ($1, $3);}       | ID ARG                 {/* printf ("%s(%s)\n", $1, $2); */                                 conf_set ($1, $2);}       ; %%int yyerror (char *s){  fprintf (stderr, "ERR銸R: %s\n", s);  return -1;}

⌨️ 快捷键说明

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