bison - GNU Project parser generator (yacc replacement)
bison [TÙY_CHỌN]… TẬP_TIN
Bison is a parser generator in the style of yacc(1). It should be upwardly compatible with input files designed for yacc.
Input files should follow the yacc convention of ending in .y. Unlike yacc, the generated files do not have fixed names, but instead use the prefix of the input file. Moreover, if you need to put C++ code in the input file, you can end his name by a C++-like extension (.ypp or .y++), then bison will follow your extension to name the output file (.cpp or .c++). For instance, a grammar description file named parse.yxx would produce the generated parser in a file named parse.tab.cxx, instead of yacc's y.tab.c or old Bison version's parse.tab.c.
This description of the options that can be given to bison is adapted from the node Invocation in the bison.texi manual, which should be taken as authoritative.
Bison supports both traditional single-letter options and mnemonic long option names. Long option names are indicated with -- instead of -. Abbreviations for option names are allowed as long as they are unique. When a long option takes an argument, like --file-prefix, connect the option name and the argument with =.
Tạo ra một bộ phân tích tất định LR hay RL được khái quát hóa dùng bảng phân tích LALR(1), IELR(1), hay canonical LR(1).
Mọi đối số bắt buộc phải sử dụng với tùy chọn dài cũng bắt buộc với tùy chọn ngắn. Cũng yêu cầu như thế đối với đối số tùy chọn.
- states
- diễn tả các tình trạng
- itemsets
- tập hợp mục dùng để tự điền với kết thúc nó
- lookaheads
- liên quan rõ ràng mỗi thẻ bài nhìn trước đến mục
- solved
- diễn tả việc phân giải sự xung đột kiểu dịch/giảm
- counterexamples, cex
- generate conflict counterexamples
- all
- bao gồm tất cả thông tin trên
- none
- tắt báo cáo
Tác giả: Robert Corbett và Richard Stallman.
Hãy thông báo lỗi cho <bug-bison@gnu.org>.
Trang chủ GNU Bison: <https://www.gnu.org/software/bison/>.
Hướng dẫn chung về phần mềm GNU: <https://www.gnu.org/gethelp/>.
Hãy thông báo lỗi dịch cho <https://translationproject.org/team/vi.html>.
Để xem toàn bộ tài liệu về phần mềm này, hãy chạy lệnh: info bison.
Bản quyền © 2021 Tổ chức Phần mềm Tự do.
Chương trình này là phần mềm tự do; xem mã nguồn để tìm điều kiện sao chép. KHÔNG CÓ BẢO HÀNH GÌ CẢ, NGAY CẢ KHI NÓ ĐƯỢC BÁN HAY PHÙ HỢP CẢ VỚI MỤC ĐÍCH ĐẶC BIỆT.
lex(1), flex(1), yacc(1).
Tài liệu hướng dẫn đầy đủ về bison được bảo trì dưới dạng một sổ tay Texinfo. Nếu chương trình info và bison được cài đặt đúng ở địa chỉ của bạn thì câu lệnh
- info bison
nên cho phép bạn truy cập đến toàn bộ sổ tay.
Bản dịch tiếng Việt của trang hướng dẫn này do
thực hiện.
Bản dịch này là Tài liệu Miễn phí; đọc Giấy phép Công cộng GNU Phiên bản 3 hoặc mới hơn để biết các điều khoản bản quyền. Chúng tôi cho rằng KHÔNG CÓ TRÁCH NHIỆM PHÁP LÝ.
Nếu bạn tìm thấy một số sai sót trong bản dịch của trang hướng dẫn này, vui lòng gửi thư đến TODO.