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.ActionHandler
pos, 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, topSymbol
public SkipParser(Symbol root, Parser.ActionHandler symbolHandler, SkipParser.SkipHandler skipHandler) throws IOException
IOException
public final void skipTo(int target) throws IOException
skipXyz
or
readXyz
methods on this
, until the
parser stack reaches the target level.IOException
public final void skipRepeater() throws IOException
IOException
public final void skipSymbol(Symbol symToSkip) throws IOException
symToSkip
- The symbol that should be skipped.IOException
Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.