-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
40 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/test/java/io/proleap/cobol/ast/tandem/ParagraphWithoutDotTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package io.proleap.cobol.ast.tandem; | ||
|
||
import java.io.File; | ||
|
||
import io.proleap.cobol.preprocessor.CobolPreprocessor.CobolSourceFormatEnum; | ||
import io.proleap.cobol.runner.CobolParseTestRunner; | ||
import io.proleap.cobol.runner.impl.CobolParseTestRunnerImpl; | ||
import org.junit.Test; | ||
|
||
public class ParagraphWithoutDotTest { | ||
|
||
@Test | ||
public void test() throws Exception { | ||
final File inputFile = new File("src/test/resources/io/proleap/cobol/ast/tandem/ParagraphWithoutDot.cbl"); | ||
final CobolParseTestRunner runner = new CobolParseTestRunnerImpl(); | ||
runner.parseFile(inputFile, CobolSourceFormatEnum.TANDEM); | ||
} | ||
} |
5 changes: 5 additions & 0 deletions
5
src/test/resources/io/proleap/cobol/ast/tandem/ParagraphWithoutDot.cbl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
IDENTIFICATION DIVISION. | ||
PROGRAM-ID. PARAGRAPH. | ||
PROCEDURE DIVISION. | ||
INIT | ||
STOP RUN. |
16 changes: 16 additions & 0 deletions
16
src/test/resources/io/proleap/cobol/ast/tandem/ParagraphWithoutDot.cbl.tree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
(startRule | ||
(compilationUnit | ||
(programUnit | ||
(identificationDivision IDENTIFICATION DIVISION .\n | ||
(programIdParagraph PROGRAM-ID . | ||
(programName | ||
(cobolWord PARAGRAPH)) .\n )) | ||
(procedureDivision PROCEDURE DIVISION .\n | ||
(procedureDivisionBody | ||
(paragraphs | ||
(paragraph | ||
(paragraphName | ||
(cobolWord INIT)) | ||
(sentence | ||
(statement | ||
(stopStatement STOP RUN)) .))))))) <EOF>) |