Package com.sonarsource.cobol.api
Class CobolGrammar
- java.lang.Object
-
- com.sonar.sslr.api.Grammar
-
- com.sonarsource.cobol.api.CobolGrammar
-
public class CobolGrammar extends Grammar
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description CobolGrammar()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rule
getRootRule()
Each Grammar has always an entry point whose name is usually by convention the "Computation Unit".void
setRootRule(Rule rootRule)
-
Methods inherited from class com.sonar.sslr.api.Grammar
getAllRuleFields, getRuleFields, rule
-
-
-
-
Field Detail
-
rootRule
public Rule rootRule
-
compilationUnit
public Rule compilationUnit
-
programUnit
public Rule programUnit
-
endProgramStatement
public Rule endProgramStatement
-
nestedProgramUnit
public Rule nestedProgramUnit
* Nested Program ****
-
nestedIdentificationDivision
public Rule nestedIdentificationDivision
-
nestedProgramIdParagraph
public Rule nestedProgramIdParagraph
-
identificationDivision
public Rule identificationDivision
* Identification Division ****
-
programIdParagraph
public Rule programIdParagraph
-
identificationDivisionParagraph
public Rule identificationDivisionParagraph
-
authorParagraph
public Rule authorParagraph
-
installationParagraph
public Rule installationParagraph
-
dateWrittenParagraph
public Rule dateWrittenParagraph
-
dateCompiledParagraph
public Rule dateCompiledParagraph
-
securityParagraph
public Rule securityParagraph
-
remarksParagraph
public Rule remarksParagraph
-
environmentDivision
public Rule environmentDivision
* Environment Division ****
-
environmentSection
public Rule environmentSection
-
inputOutputSection
public Rule inputOutputSection
-
inputOutputSectionParagraph
public Rule inputOutputSectionParagraph
-
fileControlParagraph
public Rule fileControlParagraph
-
fileControlEntry
public Rule fileControlEntry
-
selectClause
public Rule selectClause
-
assignClause
public Rule assignClause
-
systemFileName
public Rule systemFileName
-
systemNameQualifier
public Rule systemNameQualifier
-
volumeOrProcessNameQualifier
public Rule volumeOrProcessNameQualifier
-
specialOperatingSystemFileNameQualifier
public Rule specialOperatingSystemFileNameQualifier
-
qualifierRest
public Rule qualifierRest
-
fileControlClause
public Rule fileControlClause
-
reserveClause
public Rule reserveClause
-
organizationClause
public Rule organizationClause
-
paddingCharacterClause
public Rule paddingCharacterClause
-
recordDelimiterClause
public Rule recordDelimiterClause
-
accessModeClause
public Rule accessModeClause
-
sequentialAccessMode
public Rule sequentialAccessMode
-
relativeKeyClause
public Rule relativeKeyClause
-
randomAccessMode
public Rule randomAccessMode
-
dynamicAccessMode
public Rule dynamicAccessMode
-
recordKeyClause
public Rule recordKeyClause
-
alternateRecordKeyClause
public Rule alternateRecordKeyClause
-
fileStatusClause
public Rule fileStatusClause
-
passwordClause
public Rule passwordClause
-
ioControlParagraph
public Rule ioControlParagraph
-
ioControlClause
public Rule ioControlClause
-
rerunClause
public Rule rerunClause
-
rerun2
public Rule rerun2
-
sameAreaClause
public Rule sameAreaClause
-
multipleFileClause
public Rule multipleFileClause
-
applyIoClause
public Rule applyIoClause
-
cobol400CommitmentControlClause
public Rule cobol400CommitmentControlClause
-
configurationSection
public Rule configurationSection
-
configurationSectionParagraph
public Rule configurationSectionParagraph
-
sourceComputerParagraph
public Rule sourceComputerParagraph
-
objectComputerParagraph
public Rule objectComputerParagraph
-
objectComputerClause
public Rule objectComputerClause
-
specialNamesParagraph
public Rule specialNamesParagraph
-
specialNameClause
public Rule specialNameClause
-
alphabetClause
public Rule alphabetClause
-
classClause
public Rule classClause
-
classField
public Rule classField
-
currencySignClause
public Rule currencySignClause
-
decimalPointClause
public Rule decimalPointClause
-
symbolicCharactersClause
public Rule symbolicCharactersClause
-
environmentNameIsMnemonicNameClause
public Rule environmentNameIsMnemonicNameClause
-
formatClause
public Rule formatClause
-
formatClauseSize
public Rule formatClauseSize
-
formatClauseSizeLocale
public Rule formatClauseSizeLocale
-
memorySizeClause
public Rule memorySizeClause
-
collatingSequenceClause
public Rule collatingSequenceClause
-
segmentLimitClause
public Rule segmentLimitClause
-
characterSetClause
public Rule characterSetClause
-
beforeAfterPhrase
public Rule beforeAfterPhrase
-
cobol400ControlAreaClause
public Rule cobol400ControlAreaClause
-
dataDivision
public Rule dataDivision
* Data Division ****
-
dataDivisionSection
public Rule dataDivisionSection
-
fileSection
public Rule fileSection
-
fileAndSortDescriptionEntry
public Rule fileAndSortDescriptionEntry
-
fileAndSortDescriptionEntryPrefix
public Rule fileAndSortDescriptionEntryPrefix
-
fileAndSortDescriptionEntryClause
public Rule fileAndSortDescriptionEntryClause
-
externalClause
public Rule externalClause
-
globalClause
public Rule globalClause
-
blockContainsClause
public Rule blockContainsClause
-
recordContainsClause
public Rule recordContainsClause
-
labelRecordsClause
public Rule labelRecordsClause
-
valueOfClause
public Rule valueOfClause
-
dataRecordClause
public Rule dataRecordClause
-
linageClause
public Rule linageClause
-
codeSetClause
public Rule codeSetClause
-
reportClause
public Rule reportClause
-
recordingModeClause
public Rule recordingModeClause
-
dataDescriptionEntry
public Rule dataDescriptionEntry
-
dataDescriptionEntryClause
public Rule dataDescriptionEntryClause
-
dataPictureClause
public Rule dataPictureClause
-
pictureString
public Rule pictureString
-
dataValueClause
public Rule dataValueClause
-
dataValue
public Rule dataValue
-
dataValueTo
public Rule dataValueTo
-
dataUsageClause
public Rule dataUsageClause
-
dataUsageClauseOptions
public Rule dataUsageClauseOptions
-
dataUsageSqlType
public Rule dataUsageSqlType
-
dataRedefinesClause
public Rule dataRedefinesClause
-
dataExternalClause
public Rule dataExternalClause
-
dataGlobalClause
public Rule dataGlobalClause
-
dataSignClause
public Rule dataSignClause
-
dataOccursClause
public Rule dataOccursClause
-
dataSynchronizedClause
public Rule dataSynchronizedClause
-
dataJustifiedClause
public Rule dataJustifiedClause
-
dataBlankWhenZeroClause
public Rule dataBlankWhenZeroClause
-
dataFalseClause
public Rule dataFalseClause
-
dataCobol400LikeClause
public Rule dataCobol400LikeClause
-
dataCobol400IndicatorClause
public Rule dataCobol400IndicatorClause
-
dataVaryingClause
public Rule dataVaryingClause
-
dateFormatClause
public Rule dateFormatClause
-
groupUsageClause
public Rule groupUsageClause
-
qualifiedDataName
public Rule qualifiedDataName
-
specialRegister
public Rule specialRegister
-
renamesClause
public Rule renamesClause
-
workingStorageSection
public Rule workingStorageSection
-
localStorageSection
public Rule localStorageSection
-
linkageSection
public Rule linkageSection
-
storageSection
public Rule storageSection
-
screenSection
public Rule screenSection
-
screenDescription
public Rule screenDescription
-
screenClause
public Rule screenClause
-
blankScreenClause
public Rule blankScreenClause
-
blankWhenZeroClause
public Rule blankWhenZeroClause
-
bellScreenClause
public Rule bellScreenClause
-
blinkScreenClause
public Rule blinkScreenClause
-
eraseScreenClause
public Rule eraseScreenClause
-
highlightScreenClause
public Rule highlightScreenClause
-
gridScreenClause
public Rule gridScreenClause
-
leftineScreenClause
public Rule leftineScreenClause
-
overlineScreenClause
public Rule overlineScreenClause
-
reverseVideoScreenClause
public Rule reverseVideoScreenClause
-
underlineScreenClause
public Rule underlineScreenClause
-
sizeScreenClause
public Rule sizeScreenClause
-
lineScreenClause
public Rule lineScreenClause
-
columnScreenClause
public Rule columnScreenClause
-
foregroundColorScreenClause
public Rule foregroundColorScreenClause
-
backgroundColorScreenClause
public Rule backgroundColorScreenClause
-
controlScreenClause
public Rule controlScreenClause
-
valueScreenClause
public Rule valueScreenClause
-
fromScreenClause
public Rule fromScreenClause
-
usageScreenClause
public Rule usageScreenClause
-
justifiedScreenClause
public Rule justifiedScreenClause
-
signScreenClause
public Rule signScreenClause
-
autoScreenClause
public Rule autoScreenClause
-
secureScreenClause
public Rule secureScreenClause
-
requiredScreenClause
public Rule requiredScreenClause
-
promptScreenClause
public Rule promptScreenClause
-
occursScreenClause
public Rule occursScreenClause
-
fullScreenClause
public Rule fullScreenClause
-
zeroScreenClause
public Rule zeroScreenClause
-
atScreenClause
public Rule atScreenClause
-
pictureScreenClause
public Rule pictureScreenClause
-
screenName
public Rule screenName
-
addressOfRegisterHead
public Rule addressOfRegisterHead
-
procedureDivision
public Rule procedureDivision
* Procedure Division ****
-
procedureDivisionUsingKeyword
public Rule procedureDivisionUsingKeyword
-
declarativesZone
public Rule declarativesZone
-
declarativeZoneSection
public Rule declarativeZoneSection
-
procedureBody
public Rule procedureBody
-
procedureSection
public Rule procedureSection
-
procedureName
public Rule procedureName
-
sectionHeader
public Rule sectionHeader
-
sentence
public Rule sentence
-
paragraph
public Rule paragraph
-
exitStatement
public Rule exitStatement
-
alteredGoto
public Rule alteredGoto
-
specialNamesParagraphStatusPhrase
public Rule specialNamesParagraphStatusPhrase
-
statementList
public Rule statementList
* Statements ****
-
statement
public Rule statement
-
useStatement
public Rule useStatement
-
allReferencesPhrase
public Rule allReferencesPhrase
-
acceptStatement
public Rule acceptStatement
-
addStatement
public Rule addStatement
-
alterStatement
public Rule alterStatement
-
callStatement
public Rule callStatement
-
callUsingClause
public Rule callUsingClause
-
callByReferenceClause
public Rule callByReferenceClause
-
callByContentClause
public Rule callByContentClause
-
callByValueClause
public Rule callByValueClause
-
cancelStatement
public Rule cancelStatement
-
closeStatement
public Rule closeStatement
-
computeStatement
public Rule computeStatement
-
continueStatement
public Rule continueStatement
-
deleteStatement
public Rule deleteStatement
-
displayStatement
public Rule displayStatement
-
displayOption
public Rule displayOption
-
simpleDisplayFormat
public Rule simpleDisplayFormat
-
advancedDisplayFormat
public Rule advancedDisplayFormat
-
lineNumberPhrase
public Rule lineNumberPhrase
-
columnNumberPhrase
public Rule columnNumberPhrase
-
uponPhrase
public Rule uponPhrase
-
noAdvancingPhrase
public Rule noAdvancingPhrase
-
displayExceptionPhrase
public Rule displayExceptionPhrase
-
divideStatement
public Rule divideStatement
-
entryStatement
public Rule entryStatement
-
evaluateStatement
public Rule evaluateStatement
-
examineStatement
public Rule examineStatement
-
examineStatementTayllingClause
public Rule examineStatementTayllingClause
-
examineStatementReplacingClause
public Rule examineStatementReplacingClause
-
exitProgramStatement
public Rule exitProgramStatement
-
continueRunUnitPhrase
public Rule continueRunUnitPhrase
-
gobackStatement
public Rule gobackStatement
-
gotoStatement
public Rule gotoStatement
-
ifStatement
public Rule ifStatement
-
ifThenClause
public Rule ifThenClause
-
ifElseClause
public Rule ifElseClause
-
nextSentence
public Rule nextSentence
-
initializeStatement
public Rule initializeStatement
-
initializeStatementCategoryName
public Rule initializeStatementCategoryName
-
inspectStatement
public Rule inspectStatement
-
mergeStatement
public Rule mergeStatement
-
moveStatement
public Rule moveStatement
-
multiplyStatement
public Rule multiplyStatement
-
openStatement
public Rule openStatement
-
fileSpecification
public Rule fileSpecification
-
inputFileSpecification
public Rule inputFileSpecification
-
outputFileSpecification
public Rule outputFileSpecification
-
ioFileSpecification
public Rule ioFileSpecification
-
extendFileSpecification
public Rule extendFileSpecification
-
fileDescription
public Rule fileDescription
-
fileDescriptionClause
public Rule fileDescriptionClause
-
reversedClause
public Rule reversedClause
-
noRewindClause
public Rule noRewindClause
-
timeLimitsClause
public Rule timeLimitsClause
-
performStatement
public Rule performStatement
-
readStatement
public Rule readStatement
-
microFocusReadStatementClause
public Rule microFocusReadStatementClause
-
atEndClause
public Rule atEndClause
-
intoClause
public Rule intoClause
-
keyIsClause
public Rule keyIsClause
-
recordClause
public Rule recordClause
-
nextModifiedClause
public Rule nextModifiedClause
-
modifiedClause
public Rule modifiedClause
-
nextClause
public Rule nextClause
-
firstClause
public Rule firstClause
-
lastClause
public Rule lastClause
-
priorClause
public Rule priorClause
-
withTimeLimitClause
public Rule withTimeLimitClause
-
withPromptClause
public Rule withPromptClause
-
releaseStatement
public Rule releaseStatement
-
returnStatement
public Rule returnStatement
-
rewriteStatement
public Rule rewriteStatement
-
fromClause
public Rule fromClause
-
withUnlockClause
public Rule withUnlockClause
-
searchStatement
public Rule searchStatement
-
setStatement
public Rule setStatement
-
sortStatement
public Rule sortStatement
-
sortStatementFormat1
public Rule sortStatementFormat1
-
sortStatementFormat2
public Rule sortStatementFormat2
-
sortAscendingDescendingClause
public Rule sortAscendingDescendingClause
-
sortDuplicatesClause
public Rule sortDuplicatesClause
-
sortSequenceClause
public Rule sortSequenceClause
-
startStatement
public Rule startStatement
-
keyClause
public Rule keyClause
-
stopStatement
public Rule stopStatement
-
stringStatement
public Rule stringStatement
-
subtractStatement
public Rule subtractStatement
-
transformStatement
public Rule transformStatement
-
unstringStatement
public Rule unstringStatement
-
writeStatement
public Rule writeStatement
-
onStatement
public Rule onStatement
-
noteStatement
public Rule noteStatement
-
exhibitStatement
public Rule exhibitStatement
-
unlockStatement
public Rule unlockStatement
-
chainStatement
public Rule chainStatement
-
evaluateValue
public Rule evaluateValue
-
evaluatePhrase
public Rule evaluatePhrase
-
evaluateWhen
public Rule evaluateWhen
-
evaluateWhenOther
public Rule evaluateWhenOther
-
tallyingPhrase
public Rule tallyingPhrase
-
convertingPhrase
public Rule convertingPhrase
-
replacingPhrase
public Rule replacingPhrase
-
performProcedureScopeClause
public Rule performProcedureScopeClause
-
performFlavour
public Rule performFlavour
-
performVaryingClause
public Rule performVaryingClause
-
performAfterClause
public Rule performAfterClause
-
performTestPositionClause
public Rule performTestPositionClause
-
advancingPhrase
public Rule advancingPhrase
-
onExceptionPhrase
public Rule onExceptionPhrase
-
notOnExceptionPhrase
public Rule notOnExceptionPhrase
-
cobol400FormatPhrase
public Rule cobol400FormatPhrase
-
cobol400AcceptForPhrase
public Rule cobol400AcceptForPhrase
-
cobol400StatementIndicatorClause
public Rule cobol400StatementIndicatorClause
-
cobol400WithNoLockClause
public Rule cobol400WithNoLockClause
-
commentLine
public Rule commentLine
* Commons ****
-
identifier
public Rule identifier
-
literal
public Rule literal
-
literalOrIdentifier
public Rule literalOrIdentifier
-
function
public Rule function
-
nonNumericConstant
public Rule nonNumericConstant
-
numericConstant
public Rule numericConstant
-
figurativeConstant
public Rule figurativeConstant
-
initialOrCommon
public Rule initialOrCommon
-
integerConstant
public Rule integerConstant
-
subscript
public Rule subscript
-
referenceModification
public Rule referenceModification
-
arithmeticExpression
public Rule arithmeticExpression
-
timesDiv
public Rule timesDiv
-
power
public Rule power
-
basis
public Rule basis
-
condition
public Rule condition
-
combinableCondition
public Rule combinableCondition
-
simpleCondition
public Rule simpleCondition
-
relationCondition
public Rule relationCondition
-
classCondition
public Rule classCondition
-
conditionNameCondition
public Rule conditionNameCondition
-
abbreviationRest
public Rule abbreviationRest
-
picturePunctuation
public Rule picturePunctuation
-
performTimeClause
public Rule performTimeClause
-
performUntilClause
public Rule performUntilClause
-
performVaryingWithTestClause
public Rule performVaryingWithTestClause
-
signCondition
public Rule signCondition
-
relationalOperator
public Rule relationalOperator
-
dot
public Rule dot
-
comma
public Rule comma
-
mode
public Rule mode
-
alphabetName
public Rule alphabetName
-
className
public Rule className
-
dataName
public Rule dataName
-
fileName
public Rule fileName
-
indexName
public Rule indexName
-
mnemonicName
public Rule mnemonicName
-
recordName
public Rule recordName
-
routineName
public Rule routineName
-
symbolicCharacter
public Rule symbolicCharacter
-
libraryName
public Rule libraryName
-
programName
public Rule programName
-
sectionName
public Rule sectionName
-
paragraphName
public Rule paragraphName
-
systemName
public Rule systemName
-
conditionName
public Rule conditionName
-
invalidKeyClause
public Rule invalidKeyClause
-
notInvalidKeyClause
public Rule notInvalidKeyClause
-
execStatement
public Rule execStatement
* CICS ***
-
execSQLStatement
public Rule execSQLStatement
-
execCicsStatement
public Rule execCicsStatement
-
execDliStatement
public Rule execDliStatement
-
cicsErrorHandlingUtil
public Rule cicsErrorHandlingUtil
-
ibmCompilerOptionsStatement
public Rule ibmCompilerOptionsStatement
IBM Compiler options statement
-
withEncoding
public Rule withEncoding
IBM COBOL statements
-
xmlParseStatement
public Rule xmlParseStatement
-
xmlGenerateStatement
public Rule xmlGenerateStatement
-
xmlGenerateNamePhrase
public Rule xmlGenerateNamePhrase
-
xmlGenerateTypePhrase
public Rule xmlGenerateTypePhrase
-
xmlGenerateSuppressPhrase
public Rule xmlGenerateSuppressPhrase
-
xmlGenerateWhenPhrase
public Rule xmlGenerateWhenPhrase
-
xmlGenerateGenericSuppressionPhrase
public Rule xmlGenerateGenericSuppressionPhrase
-
reportSection
public Rule reportSection
-
reportName
public Rule reportName
-
reportDescriptionEntry
public Rule reportDescriptionEntry
-
reportDescriptionEntryClause
public Rule reportDescriptionEntryClause
-
reportDescriptionEntryAllowSourceClause
public Rule reportDescriptionEntryAllowSourceClause
-
reportDescriptionEntryControlClause
public Rule reportDescriptionEntryControlClause
-
reportDescriptionEntryPageClause
public Rule reportDescriptionEntryPageClause
-
reportDescriptionEntryCodeClause
public Rule reportDescriptionEntryCodeClause
-
reportDescriptionEntryOverflowClause
public Rule reportDescriptionEntryOverflowClause
-
reportDescriptionEntryLineClause
public Rule reportDescriptionEntryLineClause
-
reportGroupDescriptionEntry
public Rule reportGroupDescriptionEntry
-
reportGroupDescriptionEntryName
public Rule reportGroupDescriptionEntryName
-
reportGroupDescriptionEntryClause
public Rule reportGroupDescriptionEntryClause
-
reportClauseFirstWord
public Rule reportClauseFirstWord
-
generateStatement
public Rule generateStatement
-
initiateStatement
public Rule initiateStatement
-
terminateStatement
public Rule terminateStatement
-
cics
public CicsGrammar cics
Grammar extensions
-
sql
public DB2Grammar sql
-
mf
public MicrofocusExtension mf
-
acu
public AcuCobolExtension acu
-
hp
public HpExtension hp
-
gcos
public GcosExtension gcos
-
ile
public IleCobolExtension ile
-
c400
public Cobol400Extension c400
-
enterprise
public EnterpriseExtension enterprise
-
-
Method Detail
-
getRootRule
public Rule getRootRule()
Description copied from class:Grammar
Each Grammar has always an entry point whose name is usually by convention the "Computation Unit".- Specified by:
getRootRule
in classGrammar
- Returns:
- the entry point of this Grammar
-
setRootRule
public void setRootRule(Rule rootRule)
-
-