Asama 4.2 — Disable keywords based on CompilerConfig #51

Closed
opened 2026-05-26 19:52:28 +03:00 by saqut · 0 comments
Owner

Goal: When a keyword is disabled in config, the Tokenizer treats it as an identifier.

Files to modify:

  • src/tokenizer/tokenizer.hpp

Requirements:

  • Tokenizer receives a CompilerConfig reference.
  • Before matching keywords, check config flags.
  • Disabled keywords are skipped and fall through to identifier.
  • Example: --disable-while means while becomes a regular identifier.

Success criteria:

  • With --disable-while, while (true) {} tokenizes while as identifier.
  • Parser does not parse it as a while statement.
**Goal:** When a keyword is disabled in config, the Tokenizer treats it as an identifier. **Files to modify:** - src/tokenizer/tokenizer.hpp **Requirements:** - Tokenizer receives a CompilerConfig reference. - Before matching keywords, check config flags. - Disabled keywords are skipped and fall through to identifier. - Example: --disable-while means while becomes a regular identifier. **Success criteria:** - With --disable-while, while (true) {} tokenizes while as identifier. - Parser does not parse it as a while statement.
saqut closed this issue 2026-06-14 21:53:19 +03:00
Sign in to join this conversation.
No description provided.