public interface Parser
| Modifier and Type | Method and Description |
|---|---|
Parse |
parse(Parse tokens)
Returns a parse for the specified parse of tokens.
|
Parse[] |
parse(Parse tokens,
int numParses)
Returns the specified number of parses or fewer for the specified tokens.
|
Parse[] parse(Parse tokens, int numParses)
Parse.setParent(Parse) can be used to make the parents consistent
with a particular parse, but subsequent calls to setParents can invalidate the results of earlier
calls.tokens - A parse containing the tokens with a single parent node.numParses - The number of parses desired.Copyright © 2016 The Apache Software Foundation. All rights reserved.