Skip navigation links

Package net.sourceforge.czt.print.z

Provides classes for printing standard Z specifications in Unicode or in the LaTeX mark-up language.

See: Description

Package net.sourceforge.czt.print.z Description

Provides classes for printing standard Z specifications in Unicode or in the LaTeX mark-up language.

The Unicode2Latex parser together with the UnicodeScanner can be used to transform a Z specification written in unicode into a specification in LaTex without building an intermediate AST. The class UnicodeToLatex provides convenience methods and a command line tool for doing this.

An existing AST can be printed using the ZPrintVisitor together with the ZmlScanner. The ZPrintVisitor returns a list of Symbols which is tokenized by the ZmlScanner. The UnicodePrinter can be used to print the tokenized specification in unicode, whereas the Unicode2Latex parser can be used to print the tokenized specification in LaTex.

However, in most cases the AST must be preprocessed to get good, or even useful, results. The EqualPredVisitor transforms the default representation of equality to a representation via a relational operator that can be processed by the ZPrintVisitor.

Skip navigation links

Copyright © 2003–2016 Community Z Tools Project. All rights reserved.