y2l man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

y2l(1)									y2l(1)

NAME
       y2l - Yacc to LaTeX grammar pretty printer

SYNOPSIS
       y2l [-- options] file
       Options:
       [-d] [-h] [-O] [-O{0,1,2}] [-p] [-t{regexp,file}] [-v]

DESCRIPTION
       This  utility takes a yacc(1) grammar description file and generates an
       EBNF (Extended Backus-Naur Form) grammar from it.  By default, the out‐
       put will be a LaTeX(1) longtable environment, that can be \input{} into
       any LaTeX document.  Automatic substitution of symbolic	terminals  can
       also be taken care of.  Options control whether any optimization should
       be done on the grammar, and whether plain ASCII output should be gener‐
       ated instead.

OPTIONS
       -d     Write out debugging information to standard error.

       -h     Display a short usage summary on standard output and exit.

       -O     Optimize	the  yacc  grammar.  This basic optimization will look
	      for empty rules to make non-terminals optional.  It also	recur‐
	      sively  generates choice groups and optional groups and elements
	      based on common prefix and suffix token lists.

       -O0    Turn off optimization.

       -O1    This gives the same optimization as the regular -O option.

       -O2    Do basic optimization.  In addition, multiple rules for the same
	      non-terminal  are	 combined  as a choice group.  Rules that were
	      optimized by the first phase as optional non-terminals are  con‐
	      verted into repetitive rules if possible.

       -p     Generate plain ASCII output rather than LaTeX output.

       -tregexp
	      Use  the provided regular expression to determine whether a ter‐
	      minal is a lexical token rather than a literal.  This is	useful
	      for grammars where literal tokens represent string literals that
	      differ only in that the string literals are all  lowercase  ver‐
	      sions  of	 the token.  Since this is a fairly common practise in
	      yacc grammars, this option ha sbeen provided.

       -tfile Use the provided file as a mapping between  literal  tokens  and
	      the  literal  strings  they  represent.	Each  line in the file
	      should contain two identifiers: the first	 one  is  the  lexical
	      token, and the second one is the literal string it represents.

       -v     Display  the program version information on standard error prior
	      to doing any processing.

BUGS
       While no known bugs seem to exist,  there  are  probably	 quite	a  few
       unknown bugs.

AUTHOR
       Kris Van Hees <aedil@alchar.org>

ASI			       Aedil's Utilities			y2l(1)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net