public class LatexScanner extends CztScannerImpl
A latex scanner for Z specifications.
It scans Z specifications
written in the LaTeX marku-up language as defined by the
international Z standard. Note that the token values, like e.g.
the value of the token DECORWORD
,
are unicode strings, not LaTeX strings.
This is a convenience class that feeds the output of the
latex to unicode converter (LatexToUnicode
)
into the unicode scanner (UnicodeScanner
). The CztReader
in between the two is responsible for preserving
line and column number information.
Constructor and Description |
---|
LatexScanner(net.sourceforge.czt.session.Source source,
net.sourceforge.czt.session.SectionInfo sectInfo,
Properties properties)
Creates a new scanner.
|
Modifier and Type | Method and Description |
---|---|
net.sourceforge.czt.session.Dialect |
getDialect() |
protected Class<?> |
getSymbolClass() |
Symbol |
next_token() |
getSymbolMap, getSymbolMap2, logSymbol
doLog, getDebugLoggingLevel, logDebugInfo, logFormatted, setDebug
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
logDebugInfo, logFormatted
public LatexScanner(net.sourceforge.czt.session.Source source, net.sourceforge.czt.session.SectionInfo sectInfo, Properties properties) throws IOException
reader
- the Reader to read input from.IOException
public net.sourceforge.czt.session.Dialect getDialect()
protected Class<?> getSymbolClass()
getSymbolClass
in class CztScannerImpl
Copyright © 2003–2016 Community Z Tools Project. All rights reserved.