Command-Line Syntax

The general syntax of JetPAG's command line invokation is:

Jetpag [ argument ... ] [ grammar-file-name ]

Grammar file name

If no grammar file name is specified, JetPAG would use the standard input stream. This is useful when you want to pipe a command's output as the input grammar of JetPAG, such as:

my-command | ./jetpag


JetPAG accepts argument in Unix-like syntax. Each argument must be prefix with --, followed immediately by the argument's name, and finally if there is a value for the argument it must be separated from the name with one or more spaces. This is a typical example of a command-lien argument passed to JetPAG:

./jetpag --debug file.jg

JetPAG accepts the following arguments:

Argument name Description
--debug This option enables generating a debugging info file. The file will be 'debug.html', an HTML structured document that contains extensive information about the input grammar and the analysis.
--help Display help.
--tab-width This option informs JetPAG about the desired width of tabs in the input. Specify this option when you use a text editor with a different tab width than the standard 8 for correct citation of errors and warnings.