资源简介
如果没有编译安装此文件,在编译安装libpcap时,就会出现 "configure: WARNING: don't have both flex and bison; reverting to lex/yacc checking for capable lex... insufficient" 的错误提示。
代码片段和文件信息
-*- C -*-
# GLR skeleton for Bison
# Copyright (C) 2002 2003 2004 2005 2006 2007 2008 Free Software
# Foundation Inc.
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation either version 3 of the License or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not see .
m4_include(b4_pkgdatadir/[c.m4])
## ---------------- ##
## Default values. ##
## ---------------- ##
# Stack parameters.
m4_define_default([b4_stack_depth_max] [10000])
m4_define_default([b4_stack_depth_init] [200])
## ------------------------ ##
## Pure/impure interfaces. ##
## ------------------------ ##
b4_define_flag_if([pure])
# If glr.cc is including this file and thus has already set b4_pure_flag don‘t
# change the value of b4_pure_flag and don‘t record a use of api.pure.
m4_ifndef([b4_pure_flag]
[b4_percent_define_default([[api.pure]] [[false]])
m4_define([b4_pure_flag]
[b4_percent_define_flag_if([[api.pure]] [[1]] [[0]])])])
# b4_user_formals
# ---------------
# The possible parse-params formal arguments preceded by a comma.
#
# This is not shared with yacc.c in c.m4 because GLR relies on ISO C
# formal argument declarations.
m4_define([b4_user_formals]
[m4_ifset([b4_parse_param] [ b4_c_ansi_formals(b4_parse_param)])])
# b4_lex_param
# ------------
# Accumule in b4_lex_param all the yylex arguments.
# Yes this is quite ugly...
m4_define([b4_lex_param]
m4_dquote(b4_pure_if([[[[YYSTYPE *]] [[&yylval]]][]dnl
b4_locations_if([ [[YYLTYPE *] [&yylloc]]])])dnl
m4_ifdef([b4_lex_param] [ ]b4_lex_param)))
# b4_yyerror_args
# ---------------
# Optional effective arguments passed to yyerror: user args plus yylloc and
# a trailing comma.
m4_define([b4_yyerror_args]
[b4_pure_if([b4_locations_if([yylocp ])])dnl
m4_ifset([b4_parse_param] [b4_c_args(b4_parse_param) ])])
# b4_lyyerror_args
# ----------------
# Same as above but on the lookahead hence &yylloc instead of yylocp.
m4_define([b4_lyyerror_args]
[b4_pure_if([b4_locations_if([&yylloc ])])dnl
m4_ifset([b4_parse_param] [b4_c_args(b4_parse_param) ])])
# b4_pure_args
# ------------
# Same as b4_yyerror_args but with a leading comma.
m4_define([b4_pure_args]
[b4_pure_if([b4_locations_if([ yylocp])])[]b4_user_args])
# b4_lpure_args
# -------------
# Same as above but on the lookahead hence &yylloc instead of yylocp.
m4_define([b4_lpure_args]
[b4_pure_if([b4_locations_if([ &yylloc])])[]b4_user_args])
# b4_pure_formals
- 上一篇:在线考试系统 数据流图 层次图
- 下一篇:yolo论文理论梳理总结
相关资源
- lex yacc for windows
- LEX和YACC在Windows下的环境安装,即fl
- flex-2.5.4a-1.exe和Bison-2.4.1-setup.exe
- 中国矿业大学计算机系统软件开发实
- bison-2.4.1-setup.exe
- flex&bison英文版+源码
- flex&bison;英文版中文版PDF及随书代码
- flex与bison(中文版).pdf
- flex与bison(中文版)
- flex&bison.pdf中文版本
- windows下的bison.exe和flex.exe
- lex和yacc工具
- 编译原理实验MiniPascal编译器设计 Fl
- Flex And Bison For Windows
- 科学计算器flex和bison
- flex bison 简单c结构体解析
- flex与Bison小手册包含一个编译器的实
- bison官方文档
- bison-devel
- LEX/YACC环境安装
- c语法分析器 采用bison(yacc)
- bison.simple文件
- 计算器语法分析器
- 编译原理实验四、用FlexBison;进行语法
- 词法分析实验Flex和bison包含实验报告
- flex和bison实现小型编译器生成中间代
评论
共有 条评论