BISON(1) Cac cau lnh BISON(1) TEN bison - GNU Project parser generator (yacc replacement) TOM TT bison [TUY_CHN] TP_TIN MO T 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 =. To ra mt b phan tich tt dnh LR hay RL duc khai quat hoa dung bng phan tich LALR(1), IELR(1), hay canonical LR(1). Mi di s bt buc phi s dng vi tuy chn dai cung bt buc vi tuy chn ngn. Cung yeu cu nhu th di vi di s tuy chn. Ch d thao tac: -h, --help hin th tr giup nay ri thoat -V, --version dua ra thong tin phien bn ri thoat --print-localedir xut thu mc cha d liu ph thuc vao min da phuong --print-datadir output directory containing skeletons and XSLT and exit -u, --update apply fixes to the source grammar file and exit -f, --feature[=TINH-NANG] kich hot cac TINH-NANG TINH-NANG la mt danh sach cac t cach nhau bng du phy, bao gm: caret, diagnostics-show-caret hin th li bng du ^ fixit, diagnostics-parseable-fixits show machine-readable fixes syntax-only do not generate any file all tt c cac th tren none tt tt c cac th tren Diagnostics: -W, --warnings[=CATEGORY] report the warnings falling in CATEGORY --color[=KHI] whether to colorize the diagnostics --style=TP_TIN specify the CSS FILE for colorizer diagnostics Cac kiu cnh bao bao gm: conflicts-sr xung dt S/R (bt theo mc dnh) conflicts-rr xung dt R/R (bt theo mc dnh) counterexamples, cex generate conflict counterexamples dangling-alias string aliases not attached to a symbol deprecated cac ch lnh cu empty-rule quy tc rng khong cn %empty midrule-values unset or unused midrule values precedence quyn uu tien va tinh kt hp vo ich yacc incompatibilities with POSIX Yacc khac mi cnh bao khac (bt theo mc dnh) all tt c cac cnh bao ngoi tr "yacc", "dangling-alias", "yacc" no-LOI tt cnh bao vi LOI none tt mi cnh bao error[=LOI] x ly cnh bao dui dng li WHEN can be one of the following: always, yes colorize the output never, no don't colorize the output auto, tty colorize if the output device is a tty Tuning the Parser: -L, --language=NGON_NG ch dnh ngon ng lp trinh kt xut -S, --skeleton=TP_TIN ch dnh khung sun cn dung -t, --debug instrument the parser for tracing same as '-Dparse.trace' --locations cho phep h tr v v tri -D, --define=TEN[=GIA_TR] tuong t nhu "%define TEN "GIA_TR" -F, --force-define=TEN[=GIA_TR] de len "%define TEN "GIA_TR"" -p, --name-prefix=TIN_T dt tin t nao vao truc ky hiu ngoai b phn di bi "-Dapi.prefix=TIN_T" -l, --no-lines khong to ch th kiu "#line" -k, --token-table bao gm bng cac ten th bai -y, --yacc mo phng POSIX Yacc Output Files: -H, --header=[TP_TIN] also produce a header file -d cung vy nhung khong th ch dnh TP_TIN (cho POSIX Yacc) -r, --report=CAI cung hin chi tit v ham t dng --report-file=TP_TIN ghi bao cao vao tp tin nay -v, --verbose tuong duong vi --report=state -b, --file-prefix=TIN_T ch dnh tin t cho cac tp tin kt xut -o, --output=TP_TIN xut vao tp tin nay -g, --graph[=TP_TIN] cung xut mt d th v ham t dng --html[=TP_TIN] cung xut mt bao cao HTML v ham t dng -x, --xml[=TP_TIN] cung xut mt bao cao XML v ham t dng -M, --file-prefix-map=OLD=NEW replace prefix OLD with NEW when writing file paths in output files CAI la danh sach nhng t duc ngan cach bng du phy, bao gm: states din t cac tinh trng itemsets tp hp mc dung d t din vi kt thuc no lookaheads lien quan ro rang mi th bai nhin truc dn mc solved din t vic phan gii s xung dt kiu dch/gim counterexamples, cex generate conflict counterexamples all bao gm tt c thong tin tren none tt bao cao TAC GI Tac gi: Robert Corbett va Richard Stallman. THONG BAO LI Hay thong bao li cho . Trang ch GNU Bison: . Hung dn chung v phn mm GNU: . D xem toan b tai liu v phn mm nay, hay chy lnh: info bison. BN QUYN Bn quyn (C) 2021 T chc Phn mm T do. Chuong trinh nay la phn mm t do; xem ma ngun d tim diu kin sao chep. KHONG CO BO HANH GI C, NGAY C KHI NO DUC BAN HAY PHU HP C VI MC DICH DC BIT. XEM THEM lex(1), flex(1), yacc(1). Tai liu hung dn dy d v bison duc bo tri dui dng mt s tay Texinfo. Nu chuong trinh info va bison duc cai dt dung da ch ca bn thi cau lnh info bison nen cho phep bn truy cp dn toan b s tay. DCH Bn dch ting Vit ca trang hung dn nay do thc hin. Bn dch nay la Tai liu Min phi; dc Giy phep Cong cng GNU Phien bn 3 hoc mi hon d bit cac diu khon bn quyn. Chung toi cho rng KHONG CO TRACH NHIM PHAP LY. Nu bn tim thy mt s sai sot trong bn dch ca trang hung dn nay, vui long gi thu dn TODO <>. GNU Bison 3.8.2 Thang 9 nam 2021 BISON(1)