OnWorks favicon

jtb - Online in the Cloud

Run jtb in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command jtb that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator



jtb - syntax tree builder for JavaCC


jtb [options] inputfile


This manual page documents briefly the jtb command.

JTB (Java Tree Builder) is a syntax tree builder and visitors generator to be used in
front of JavaCC (Java Compiler Compiler). It takes a JavaCC grammar file as input
(usually a ".jtb" file) and automatically generates the following:

- a set of syntax tree classes based on the productions in the grammar, utilizing
the Visitor design pattern;

- four interfaces: IVoidVisitor, IVoidArguVisitor, IRetVisitor, IRetArguVisitor;

- four depth-first visitors: DepthFirstVoidVisitor, DepthFirstVoidArguVisitor,
DepthFirstRetVisitor, DepthFirstREtArguVisitor, whose default methods simply visit
the children of the current node; a JavaCC grammar ".jj" file (jtb.out.jj by
default), with the proper annotations to build the syntax tree during parsing
(which then must be compiled with JavaCC).

New visitors, which subclass any generated one, can then override the default methods and
perform various operations on and manipulate the generated syntax tree.


-cl Print a list of the classes generated to standard out.

-d dir "-d dir" is short for (and overwrites) "-nd dir/syntaxtree -vd dir/visitor".

-dl Generate depth level info.

-e Suppress JTB semantic error checking.

-f Use descriptive node class field names.

-h Display this help message and quit.

-ia Inline visitors accept methods on base classes.

-jd Generate JavaDoc-friendly comments in the nodes and visitor.

-nd NAME
Use NAME as the package for the syntax tree nodes.

-np NAME
Use NAME as the package for the syntax tree nodes.

-ns NAME
Use NAME as the class which all node classes will extend.

Use NAME as the filename for the annotated output grammar.

"-p pkg" is short for (and overwrites) "-np pkg.syntaxtree -vp pkg.visitor".

-pp Generate parent pointers in all node classes.

Generate a syntax tree dumping visitor.

-si Read from standard input rather than a file.

Generate Scheme records representing the grammar and a Scheme tree building

-tk Generate special tokens into the tree.

-vd NAME
Use NAME as the package for the default visitor classes.

-vp NAME
Use NAME as the package for the default visitor classes.

-w Do not overwrite existing files.

Use jtb online using onworks.net services

Free Servers & Workstations

Download Windows & Linux apps

  • 1
    KompoZer is a wysiwyg HTML editor using
    the Mozilla Composer codebase. As
    Nvu's development has been stopped
    in 2005, KompoZer fixes many bugs and
    adds a f...
    Download KompoZer
  • 2
    Free Manga Downloader
    Free Manga Downloader
    The Free Manga Downloader (FMD) is an
    open source application written in
    Object-Pascal for managing and
    downloading manga from various websites.
    This is a mirr...
    Download Free Manga Downloader
  • 3
    UNetbootin allows you to create bootable
    Live USB drives for Ubuntu, Fedora, and
    other Linux distributions without
    burning a CD. It runs on Windows, Linux,
    and ...
    Download UNetbootin
  • 4
    Dolibarr ERP - CRM
    Dolibarr ERP - CRM
    Dolibarr ERP - CRM is an easy to use
    ERP and CRM open source software package
    (run with a web php server or as
    standalone software) for businesses,
    Download Dolibarr ERP - CRM
  • 5
    SQuirreL SQL Client
    SQuirreL SQL Client
    SQuirreL SQL Client is a graphical SQL
    client written in Java that will allow
    you to view the structure of a JDBC
    compliant database, browse the data in
    Download SQuirreL SQL Client
  • 6
    Brackets is a free, modern open-source
    text editor made especially for Web
    Development. Written in HTML, CSS, and
    JavaScript with focused visual tools and
    Download Brackets
  • 7
    Free Pascal Compiler
    Free Pascal Compiler
    A 32/64/16-bit Pascal compiler for
    Win32/64/CE, Linux, Mac OS X/iOS,
    Android, FreeBSD, OS/2, Game Boy
    Advance, Nintendo NDS and DOS;
    semantically compatible wi...
    Download Free Pascal Compiler
  • More »

Linux commands