public class UnicodeScanner extends CztScannerImpl
A scanner for lexing specifications in unicode format.
This is a convenience class that assembles theContextFreeScanner
, KeywordScanner
, and
SmartScanner
; providing an implementation of chapters
7.2 till 7.4.4 of the ISO Standard for Z.
Note that the token stream provided by this scanner does not yet
have operator names resolved to operator tokens and still contains soft
newlines. This is handled by the OperatorScanner
, which is created
by the parser.
net.sourceforge.czt.parser.z
Constructor and Description |
---|
UnicodeScanner(CztReader in,
Properties properties) |
UnicodeScanner(Source source,
Properties properties) |
Modifier and Type | Method and Description |
---|---|
Dialect |
getDialect() |
protected Class<?> |
getSymbolClass() |
static void |
main(String[] argv)
Lexes a given file.
|
Symbol |
next_token() |
void |
reset(Reader in) |
getSymbolMap, getSymbolMap2, logSymbol
doLog, getDebugLoggingLevel, logDebugInfo, logFormatted, setDebug
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
logDebugInfo, logFormatted
public UnicodeScanner(Source source, Properties properties) throws IOException
IOException
public UnicodeScanner(CztReader in, Properties properties)
public Dialect getDialect()
public static void main(String[] argv)
protected Class<?> getSymbolClass()
getSymbolClass
in class CztScannerImpl
public void reset(Reader in)
Copyright © 2003–2016 Community Z Tools Project. All rights reserved.