public class SkipParser extends Parser
| Modifier and Type | Class and Description |
|---|---|
static interface |
SkipParser.SkipHandler
The clients implement this interface to skip symbols and actions.
|
Parser.ActionHandlerpos, stack, symbolHandler| Constructor and Description |
|---|
SkipParser(Symbol root,
Parser.ActionHandler symbolHandler,
SkipParser.SkipHandler skipHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
skipRepeater()
Skips the repeater at the top the stack.
|
void |
skipSymbol(Symbol symToSkip)
Pushes the given symbol on to the skip and skips it.
|
void |
skipTo(int target)
Skips data by calling
skipXyz or readXyz methods on
this, until the parser stack reaches the target level. |
advance, depth, popSymbol, processImplicitActions, processTrailingImplicitActions, pushProduction, pushSymbol, reset, topSymbolpublic SkipParser(Symbol root, Parser.ActionHandler symbolHandler, SkipParser.SkipHandler skipHandler) throws IOException
IOExceptionpublic final void skipTo(int target)
throws IOException
skipXyz or readXyz methods on
this, until the parser stack reaches the target level.IOExceptionpublic final void skipRepeater()
throws IOException
IOExceptionpublic final void skipSymbol(Symbol symToSkip) throws IOException
symToSkip - The symbol that should be skipped.IOExceptionCopyright © 2009–2020 The Apache Software Foundation. All rights reserved.