Asama 4.1 — Implement CompilerConfig struct and --disable-* flags #49

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

Goal: Create a configuration system that controls language features at compile time.

Files to create/modify:

  • src/core/config.hpp (new)
  • src/cli/args.hpp

Requirements:

  • CompilerConfig struct with bool fields: enableWhile, enableFor, enableDoWhile, enableSwitch, enableClass, enableInterface, enableEnum, enableTernary, enablePostfix, enableUnary, optConstantFolding, optDeadCodeElim.
  • CLI flags: --disable-while, --disable-for, --opt-all, --opt-none.

Success criteria:

  • --disable-while flag is parsed into CompilerConfig.
  • Config is passed through to Tokenizer and Parser.
**Goal:** Create a configuration system that controls language features at compile time. **Files to create/modify:** - src/core/config.hpp (new) - src/cli/args.hpp **Requirements:** - CompilerConfig struct with bool fields: enableWhile, enableFor, enableDoWhile, enableSwitch, enableClass, enableInterface, enableEnum, enableTernary, enablePostfix, enableUnary, optConstantFolding, optDeadCodeElim. - CLI flags: --disable-while, --disable-for, --opt-all, --opt-none. **Success criteria:** - --disable-while flag is parsed into CompilerConfig. - Config is passed through to Tokenizer and Parser.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: saqut/saqut-compiler#49
No description provided.