當前位置:編程學習大全網 - 編程軟體 - 有人知道postgresql開源數據庫中repl_gram.c文件是做什麽的麽?

有人知道postgresql開源數據庫中repl_gram.c文件是做什麽的麽?

是Bison解析器的C語言實現,用於自左至右類語法內容解析生成器。

A Bison parser, made by GNU Bison 2.4.1.

Bison is a general-purpose parser generator that converts an annotated context-free grammar into a deterministic LR or generalized LR (GLR) parser employing LALR(1) parser tables. As an experimental feature, Bison can also generate IELR(1) or canonical LR(1) parser tables. Once you are proficient with Bison, you can use it to develop a wide range of language parsers, from those used in simple desk calculators to complex programming languages.

Bison is upward compatible with Yacc: all properly-written Yacc grammars ought to work with Bison with no change. Anyone familiar with Yacc should be able to use Bison with little trouble. You need to be fluent in C or C++ programming in order to use Bison. Java is also supported as an experimental feature.

  • 上一篇:金華海亮數科班好不好
  • 下一篇:簡述銀行存款的審計方法有哪些
  • copyright 2024編程學習大全網