public class CobolShallowParser extends ShallowParserBase<ECobolParserState>
http://publibfp.boulder.ibm.com/epubs/pdf/igy6lr10.pdf
https://open-cobol.sourceforge.io/guides/OpenCOBOL%20Programmers%20Guide.pdf
http://www.cs.vu.nl/grammarware/cobol We try to make it
compatible with the fixed and free form versions that Cobol code may be
written in.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
PARAGRAPH_SUBTYPE_NAME
Constant subtype name for paragraph
|
static java.lang.String |
SECTION_SUBTYPE_NAME
Constant subtype name for section
|
| Constructor and Description |
|---|
CobolShallowParser()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<ShallowEntity> |
parseTopLevel(java.util.List<IToken> tokens)
Shallow parses the given list of tokens and returns all entities found.
|
createRecognizer, endWithPossibleContinuation, filterTokens, inAnyState, inState, isFilteredToken, parse, parseFragmentpublic static final java.lang.String SECTION_SUBTYPE_NAME
public static final java.lang.String PARAGRAPH_SUBTYPE_NAME
public CobolShallowParser()
public java.util.List<ShallowEntity> parseTopLevel(java.util.List<IToken> tokens)
parseTopLevel in interface IShallowParserparseTopLevel in class ShallowParserBase<ECobolParserState>