windows下bison安装使用

欢迎转载,转载请标明出处:http://blog.csdn.net/notbaron/article/details/51100524

GNU bison 是属于 GNU 项目的一个语法分析器生成器。Bison 把一个关于“向前查看从左到右 最右”(LALR) 上下文无关文法的描述转化成可以分析该文法的 C 或 C++ 程序。它也可以为二义文法生成 “通用的 从左到右 最右” (GLR)语法分析器。

Bison 基本上与 Yacc 兼容,并且在 Yacc 之上进行了改进。它经常和 Flex (一个自动的词法分析器生成器)一起使用。

下载时候选择“Completepackage exceptsources”,安装路径不要选择默认C:\ProgramFiles\GnuWin32,选择C:\GnuWin32,把C:\Gnuwin32\bin加载到PATH变量。

下载路径:http://gnuwin32.sourceforge.net/packages/bison.htm

GnuWin provides ports of tools with a GNU or similar open source license, to modernMS-Windows (Microsoft Windows 2000 / XP / 2003 / Vista / 2008 / 7)

安装完毕后执行

>bison–help

Usage: bison [OPTION]... FILE

Generate LALR(1) and GLR parsers.

Mandatory arguments to long options are mandatory for short optionstoo.

The same is true for optional arguments.

Operation modes:

-h, --help                 display this help and exit

-V, --version              output version information andexit

--print-localedir      output directory containinglocale-dependent data

--print-datadir        output directory containing skeletonsand XSLT

-y, --yacc                 emulate POSIX Yacc

-W,--warnings=[CATEGORY]  report thewarnings falling in CATEGORY

Parser:

-L, --language=LANGUAGE    specify the output programming language

(this is an experimental feature)

-S, --skeleton=FILE        specify the skeleton to use

-t, --debug                instrument the parser fordebugging

--locations            enable locations computation

-p,--name-prefix=PREFIX   prepend PREFIX tothe external symbols

-l, --no-lines             don't generate `#line' directives

-k, --token-table          include a table of token names

Output:

--defines[=FILE]       also produce a header file

-d                         likewise but cannotspecify FILE (for POSIX Yacc)

-r, --report=THINGS        also produce details on the automaton

--report-file=FILE     write report to FILE

-v, --verbose              same as `--report=state'

-b,--file-prefix=PREFIX   specify a PREFIXfor output files

-o, --output=FILE          leave output to FILE

-g, --graph[=FILE]         also output a graph of the automaton

-x, --xml[=FILE]           also output an XML report of the automaton

(the XML schema is experimental)

Warning categories include:

`midrule-values'  unset or unusedmidrule values

`yacc'            incompatibilities with POSIX YACC

`all'             all the warnings

`no-CATEGORY'     turn off warnings in CATEGORY

`none'            turn off all the warnings

`error'           treat warnings as errors

THINGS is a list of comma separated words that can include:

`state'        describe the states

`itemset'      complete the core item sets with theirclosure

`lookahead'    explicitly associate lookahead tokens toitems

`solved'       describe shift/reduce conflicts solving

`all'          include all the above information

`none'         disable the report

Report bugs to <bug-bison@gnu.org>.

windows下bison安装使用相关推荐

  1. Windows下RabbitMQ安装及注意事项

    Windows下RabbitMQ安装及注意事项 简介 背景 1.      RabbitMQ是一个由erlang开发的AMQP(Advanved Message Queue)的开源实现. Rabbit ...

  2. flume 1.7在windows下的安装与运行

    flume 1.7在windows下的安装与运行 一.安装 安装java,配置环境变量. 安装flume,flume的官网http://flume.apache.org/,下载地址,下载后直接解压即可 ...

  3. Windows下MongoDB安装及创建用户名和密码

    Windows下MongoDB安装及创建用户名和密码 下载MongoDB的安装文件https://www.mongodb.com/download-center#community,选择合适的版本(注 ...

  4. Windows下Wireshark安装版本选择方式

    Windows下Wireshark安装版本选择方式 Wireshark版本分为1.X系列和2.X系列.1.X系列是早期版本,不提供中文版本.2.X系列是新版本,安装后,同时提供中文版和英文版.根据系统 ...

  5. python怎么安装pandas模块-windows下如何安装Python、pandas

    windows下如何安装Python.pandas 本篇主要涵盖以下三部分内容: Python.Pycharm的安装 使用Pycharm创建.运行Python程序 安装pandas 1.Python. ...

  6. 【转帖】Windows下PostgreSQL安装图解

    Windows下PostgreSQL安装图解 这篇文章主要为大家介绍了如果在Windows下安装PostgreSQL数据库的方法,需要的朋友可以参考下 现在谈起免费数据库,大多数人首先想到的可能是My ...

  7. memcache的windows下的安装和简单使用

    原文:memcache的windows下的安装和简单使用 memcache是为了解决网站访问量大,数据库压力倍增的解决方案之一,由于其简单实用,很多站点现在都在使用memcache,但是memcach ...

  8. TensorFlow在windows 下的安装

    前言:从2015年谷歌将tensorflow开源后,这位用于深度学习的强大神器便把Caffe,Keras,Torch7等这一票人全部干掉,github上的star和fork是一路飙升,几乎是它们的总和 ...

  9. 学习笔记:Windows 下Keras安装和配置指南

    目录: 目录: Windows下Keras安装和配置指南 Keras 框架搭建 安装 本系列参考官方文档官方文档 这就是keras可以参考前篇:这就是keras 学习笔记 Keras:一些基本概念 一 ...

最新文章

  1. maven环境快速搭建
  2. C语言经典例69-有n个人围成一圈报数问题
  3. android path 详解
  4. Springboot项目固化依赖的那点事
  5. [冷枫推荐]:数据库操作,内外联查询,分组查询,嵌套查询,交叉查询,多表查询,语句小结。...
  6. 如何解决testng执行用例失败自动重跑问题
  7. POJ2258 ZOJ1947 UVA539 The Settlers of Catan题解
  8. 【SLAM笔记】SLAM概述
  9. cad中直径符号不显示_CAD上明明有图,但是打印的时候不显示怎么办?原来要这样设置...
  10. Exception:must implement OnFragmentInteractionListener
  11. xp系统计算机启动时灰色界面,XP系统任务管理器是灰色的打不开怎么办
  12. Rust中iter()和into_iter()的区别
  13. 30天自制操作系统——第四天使用C语言制作操作系统进度条
  14. DICOM医学影像文件解析
  15. STM32L+BC20 连接电信云控制继电器
  16. 曲终人散,弦断花落,许梦尘埃落定
  17. 工作中MNU010 至 MNU140表的名称及作用
  18. 中国各省人力资本测算就业人员受教育程度构成(2000-2021年)
  19. 喜讯:我国首个火星探测器萤火一号顺利升空
  20. Acrel-5010重点用能单位能耗在线监测系统在湖南三立集团的应用

热门文章

  1. 数据结构(二)----线性表(List)链式存储结构(1)
  2. 编译librtmp for Android
  3. Hadoop原理与技术——hdfs命令行基本操作
  4. 在JSP中连接数据库及使用
  5. JAVA集合面试题52道
  6. 记录《时间进度》(人生进度条)(包含自定义进度、小插件)的开发
  7. Python爬虫---爬取数据(上)
  8. 【大数据面试题】(一)Hadoop 相关面试题总结
  9. Vue源码--解读vue响应式原理
  10. 纵观大数据:建模、分析及应用