タグ

bisonに関するsnaka72のブックマーク (6)

  • c++ - What parser generator do you recommend - Stack Overflow

    snaka72
    snaka72 2011/12/31
    【質問】C++向けのパーサ・ジェネレータですすめは?
  • Writing Your Own Toy Compiler Using Flex, Bison and LLVM

    Writing Your Own Toy Compiler Using Flex, Bison and LLVM Update (March 19 2010): this article was updated for LLVM 2.6 thanks to a great patch by John Harrison. He rocks! I’ve always been interested in compilers and languages, but interest only gets you so far. A lot of the concepts of compiler design can easily go way over most programmers’ heads, even the intelligent ones. Needless to say, I’ve

    snaka72
    snaka72 2011/11/28
    Flex/Bison/LLVM でオレオレ言語のコンパイラを作る
  • Bison 3.8.1

    Bison This manual (10 September 2021) is for GNU Bison (version 3.8.1), the GNU parser generator. Copyright © 1988–1993, 1995, 1998–2015, 2018–2021 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Se

    snaka72
    snaka72 2011/11/28
    Bison 2.5 Documentation - 10.1 C++ Parsers
  • How to use C++ with Bison

    Introduction This is a mini-tutorial that describes how to use C++ with Bison. It was done in reply to a thread in comp.compilers that questioned how %union declarations would interfere with C++ strong type checking. I assume that you already know C++ and how to use Bison, so I will talk just about the important parts. Grammar For the example lets use the following BNF grammar. It's too simple and

  • Bison 1.28 - Table of Contents

    Bison入門 YACC互換構文解析器生成ツール 14 January 1999, Bison Version 1.28 by Charles Donnelly and Richard Stallman まえがき 日語訳にあたって Bisonの利用条件 GNU GENERAL PUBLIC LICENSE Preamble TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION How to Apply These Terms to Your New Programs Bisonの概念 言語と文脈自由文法 形式規則からBisonの入力へ 意味値 意味アクション Bisonの出力――構文解析器ファイル Bisonを使う手順 Bison文法の全体像 例 逆ポーランド記法電卓 rpcalcのための宣言 rpcalcのための

    snaka72
    snaka72 2011/11/28
    Bison入門日本語訳
  • プログラマの友 第十ニ報:bison を使ってみる

    何年か前に単純な興味からコンパイラ(A.V.エイホ、R.セシィ、J.D.ウルマン著、原田賢一訳。麻宮騎亜の漫画の方ではない)というを読んだことがあるのですが、途中から yacc, lex といった解析プログラム作成プログラムの話になって「プログラム持っとらんけん実践できんやないの」とやるせなくなったことがあります。 で、Cygwin に yacc, lex の上位バージョンである bison, flex が入ってることが分かったので、その bison を使ってみることにしました。折角タダで用意してくれているので、info bison を読んでやってみることにしました。 今回のプログラマの友はその覚書のようなものです。bison を使おうと思ってるけど尻込みしている人の参考資料にでもなれば幸いです。 (註:用語には無頓着なので不正確なことがあります) bison とは? 構文解析の基知識

  • 1