Skip to content

Repeated NOT in conditions, with abaplint 2.120.117-abap2go.3 - #23

Merged
arcanist123 merged 1 commit into
mainfrom
not-not
Nov 25, 2026
Merged

arcanist123 merged 1 commit into
mainfrom
not-not

Conversation

@arcanist123

Copy link
Copy Markdown
Owner

NOT can be repeated in front of a logical expression (ABAP keyword documentation, log_exp - Boolean Operator NOT). abaplint did not parse it (abaplint#4714). The fix is offered upstream in abaplint#4716 and is on the fork's abap2go branch, vendored here as 2.120.117-abap2go.3.

  • src/lower_cond.ts: counts the NOT in front of a comparison or a parenthesis; an even number cancels out
  • test/comparison_expr.test.ts: the NOT NOT exclusion is gone, its 8 cells run end to end (338 of the 404)
  • test/control_flow.test.ts: two and three NOT, with OR and before parentheses
  • docs/roadmap.md: #4714 moves to "in flight"

🤖 Generated with Claude Code

The vendored abaplint now parses any number of NOT in front of a
comparison or a parenthesis (#4714, PR abaplint#4716). The compiler counts
them, an even number cancels out, and the 8 NOT NOT cells of
comparison_expr.tsv run end to end: 338 of the 404.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@arcanist123
arcanist123 merged commit 7efa5e0 into main Nov 25, 2026
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.

1 participant