public class ScannerFactory extends Object
An immutable FA. Instances are used for acual scanning. I would call it FA if FA could be called FABuffer. But in this case, FABuilder would become FABufferBuilder ...
TODO o binary search in TableFA? o Java Scanner needs up to 60 comparisons
| Modifier and Type | Field and Description |
|---|---|
static String |
SCANNER_TOO_BIG |
| Constructor and Description |
|---|
ScannerFactory(int start,
int modeCount,
char[] table) |
| Modifier and Type | Method and Description |
|---|---|
static ScannerFactory |
create(FA fa,
int errorSi,
ParserTable parserTable,
net.oneandone.sushi.util.IntBitSet whites,
PrintWriter verbose,
PrintWriter listing) |
static ScannerFactory |
createSimple(FA fa,
int errorSi,
net.oneandone.sushi.util.IntBitSet terminals) |
Scanner |
newInstance(Position pos,
Reader src) |
int |
size() |
public static final String SCANNER_TOO_BIG
public static ScannerFactory create(FA fa, int errorSi, ParserTable parserTable, net.oneandone.sushi.util.IntBitSet whites, PrintWriter verbose, PrintWriter listing) throws GenericException
GenericExceptionpublic static ScannerFactory createSimple(FA fa, int errorSi, net.oneandone.sushi.util.IntBitSet terminals) throws GenericException
GenericExceptionpublic int size()
Copyright © 1998–2017 1&1. All rights reserved.