sdf2table — generates a parse table from an SDF syntax definition.


sdf2table [-b] [-h] [-i file.def] [-l] [-m name] [-n] [-o file.tbl] [-s] [-t] [-v] [-V]


The sdf2table utility is used to compute a parse table from a syntax definition. The syntax definition must have been created from a set of .sdf files using the pack-sdf utility, or written manually. The resulting .tbl file is used as input to the sglr parser.


Input/Output Options


Write output in binary ASFix (BAF) format.

-i file.def

Read input from file.def. Multiple files may be specified.

-o file.tbl

Write output to file.tbl. If not speficied, .tbl will be added as a suffix to the input file name.


Check SDF definition and show warnings on stderr.


Normalize grammar.

Help and Debugging Options


Show usage information.


Show statistics information.


Enable verbose mode.


Show version number.

Reporting Bugs

Please report bugs to


Copyright (C) 2002-2005 Eelco Visser

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.