BISON.1 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. .TH BISON 1 local
  2. .SH NAME
  3. bison \- GNU Project parser generator (yacc replacement)
  4. .SH SYNOPSIS
  5. .B bison
  6. [
  7. .B \-dlvty
  8. ] file
  9. .SH DESCRIPTION
  10. .I Bison
  11. is a parser generator in the style of
  12. .IR yacc (1).
  13. It should be upwardly compatible with input files designed
  14. for
  15. .IR yacc .
  16. .PP
  17. Input files should follow the
  18. .I yacc
  19. convention of ending in ``.y''.
  20. Unlike
  21. .IR yacc ,
  22. the generated files do not have fixed names, but instead use the prefix
  23. of the input file.
  24. For instance, a grammar description file named
  25. .B parse.y
  26. would produce the generated parser in a file named
  27. .BR parse.tab.c ,
  28. instead of
  29. .IR yacc 's
  30. .BR y.tab.c .
  31. .PP
  32. .I Bison
  33. takes five optional flags.
  34. .TP
  35. .B \-d
  36. Produce a
  37. .B .tab.h
  38. file, similar to
  39. .IR yacc 's
  40. .B y.tab.h
  41. file.
  42. .TP
  43. .B \-l
  44. Omit
  45. .B #line
  46. lines in the parser output file. Error messages from the C compiler will
  47. then be associated with lines in the parser output file, instead of lines
  48. in the original grammar file.
  49. .TP
  50. .B \-t
  51. Turn on debugging. This option causes the
  52. .I bison
  53. output to have debugging code made available via the C pre-processor.
  54. The external variable
  55. .B yydebug
  56. should be made non-zero to have the debugging code actually
  57. produce output.
  58. .TP
  59. .B \-v
  60. Be verbose. Analogous to the same flag for
  61. .IR yacc .
  62. .TP
  63. .B \-y
  64. Use fixed output file names. I.e., force the output to be in files
  65. .BR y.tab.c ,
  66. .BR y.tab.h ,
  67. and so on. This is for full
  68. .I yacc
  69. compatibility.
  70. .SH FILES
  71. /usr/local/lib/bison.simple simple parser
  72. .br
  73. /usr/local/lib/bison.hairy complicated parser
  74. .SH SEE ALSO
  75. .IR yacc (1)
  76. .br
  77. The
  78. .IR "Bison Reference Manual" ,
  79. included as the file
  80. .B bison.texinfo
  81. in the
  82. .I bison
  83. source distribution.
  84. .SH DIAGNOSTICS
  85. ``Self explanatory.''
  86. ... ha!