feat: support bang as not alias - #31
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds support for using the bang prefix operator (!) as a strict Boolean alias for not in the QuickCoffee language, and updates the language contract + manuals/docs accordingly.
Changes:
- Lex standalone
!asToken::Notwhile preserving!=as strict inequality. - Add RFC 0099 documenting the
!alias contract. - Add core tests and update syntax docs + five manuals (and generated HTML) to mention the alias.
Reviewed changes
Copilot reviewed 17 out of 17 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/rfc_core.rs | Adds regression coverage for !/!! behavior, runtime error case, and bytecode emission. |
| src/lexer.rs | Changes ! lexing from a hard error to emitting Token::Not (while keeping !=). |
| RFCs/0099-bang-not-alias.md | New RFC defining the strict ! alias semantics and acceptance criteria. |
| RFCs/0000-project-scope.md | Updates project scope RFC index to include RFC 0099. |
| README.md | Updates RFC range reference to include RFC 0099. |
| manuals/manual.zh-CN.qc | Mentions ! as strict not alias and clarifies !=. |
| manuals/manual.latin.qc | Mentions ! as strict not alias and clarifies !=. |
| manuals/manual.en.qc | Mentions ! as strict not alias and clarifies !=. |
| manuals/manual.devanagari-sa.qc | Mentions ! as strict not alias and clarifies !=. |
| manuals/manual.classical-zh.qc | Mentions ! as strict not alias and clarifies !=. |
| docs/syntax.zh-CN.md | Adds syntax note about ! alias, !=, and non-bool runtime errors. |
| docs/syntax.en.md | Adds syntax note about ! alias, !=, and non-bool runtime errors. |
| docs/manual.zh-CN.html | Regenerated manual HTML reflecting the ! alias note. |
| docs/manual.latin.html | Regenerated manual HTML reflecting the ! alias note. |
| docs/manual.en.html | Regenerated manual HTML reflecting the ! alias note. |
| docs/manual.devanagari-sa.html | Regenerated manual HTML reflecting the ! alias note. |
| docs/manual.classical-zh.html | Regenerated manual HTML reflecting the ! alias note. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
tiye
force-pushed
the
chore/rfc-index-gate
branch
from
August 22, 2026 18:40
7e3cda8 to
332a0f0
Compare
tiye
force-pushed
the
feat/not-bang-alias
branch
from
August 22, 2026 18:41
32b02f0 to
39c7972
Compare
tiye
force-pushed
the
chore/rfc-index-gate
branch
from
August 22, 2026 18:46
332a0f0 to
22cd6e9
Compare
tiye
force-pushed
the
feat/not-bang-alias
branch
from
August 22, 2026 18:47
39c7972 to
0bca4ee
Compare
tiye
force-pushed
the
chore/rfc-index-gate
branch
from
August 23, 2026 04:28
22cd6e9 to
7327504
Compare
Base automatically changed from
chore/rfc-index-gate
to
feat/program-fingerprint
August 23, 2026 04:30
tiye
force-pushed
the
feat/not-bang-alias
branch
from
August 23, 2026 04:32
0bca4ee to
c82f920
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
!alias!asnotwhile preserving!=Notbytecode, syntax docs, and five manualsValidation
make checkmake docsgit diff --check