Skip to content

Improved select case parsing#14

Merged
verhas merged 1 commit intoverhas:masterfrom
PetrPytelka:improved_select_case_parsing
Jan 2, 2020
Merged

Improved select case parsing#14
verhas merged 1 commit intoverhas:masterfrom
PetrPytelka:improved_select_case_parsing

Conversation

@PetrPytelka
Copy link
Copy Markdown
Contributor

Improved select case syntax parser.
Check if there are only 'case' statements after 'select case '

Copy link
Copy Markdown
Owner

@verhas verhas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not absolutely sure that the single one new test covers all new code. I have not checked it. If it does, I accept that but my gut feeling is that there are more cases that need a bit more BASIC test programs to cover the extra checks.

The fact that these extra cases are checked and do not just get silently ignored is great and also the style of the implementation is absolutely in-line with the philosophy and style of the project. Some formatting, minimal English grammar modification in error messages is needed and I will be happy to merge this change into the project. Thanks.

Comment thread src/main/java/com/scriptbasic/syntax/AbstractNestedStructureHouseKeeper.java Outdated
Comment thread src/main/java/com/scriptbasic/syntax/AbstractNestedStructureHouseKeeper.java Outdated
Comment thread src/main/java/com/scriptbasic/syntax/BasicSyntaxAnalyzer.java Outdated
Comment thread src/main/java/com/scriptbasic/syntax/BasicSyntaxAnalyzer.java Outdated
Comment thread src/main/java/com/scriptbasic/syntax/commands/CommandAnalyzerSelect.java Outdated
@PetrPytelka PetrPytelka force-pushed the improved_select_case_parsing branch from 832de27 to bf69d35 Compare January 1, 2020 07:08
@PetrPytelka
Copy link
Copy Markdown
Contributor Author

Thank you for your review. I added one more test and did all changes according your recommendations.

@verhas verhas merged commit 2216ab6 into verhas:master Jan 2, 2020
@PetrPytelka PetrPytelka deleted the improved_select_case_parsing branch January 7, 2020 12:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants