-
Notifications
You must be signed in to change notification settings - Fork 36
Allow inspect with or conditions
#262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: gnucobol-3.x-mf-aix
Are you sure you want to change the base?
Allow inspect with or conditions
#262
Conversation
GitMensch
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
commenting as it isn't a draft...
Please always start with the testcases Here you want a syntax/extension one for the dialect option (seems like that is really only mf-strict.conf allowing it, default and lax would with a warning as it does not conflict with anything) - and of course for each place where after-before-ohrase is applicable also a test case compiling with -finspect-or=ok.
as soon as doing the first change create a Changelog entry - this way you've documented what you did already and don't need to think about it later (which is especially useful when coming back to a change later or if someone takes over),
cobc/parser.y
Outdated
| } | ||
| | BEFORE _initial inspect_or_list | ||
| { | ||
| cb_verify(cb_inspect_or, _("INSPECT or")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that string does not need a translation as both INSPECT and OR reference keywords; you possibly can improve that string in any case
|
Hi Simon! |
|
What would be the better workaround to do in standard GnuCOBOL to do the same thing without INSPECT OR ? Because for me, if there is no better workaround, it should be enabled by default so that everybody can use it, no ? |
Allow inspect with
orconditions in inspect region, wheninspect-with-ordialect support is enabled