-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Motivation
To extend Kumir language with new features (structs, OOP, etc.) while maintaining backward compatibility with original Kumir interpreter, we need a pragma system.
Pragmas will be implemented as special comments that Kumir ignores but Qumir parses and processes.
Syntax
|# pragma_name: value #|
Or single-line:
| pragma_name: value
Examples:
|# qumir:feature struct #|
|# qumir:feature class #|
|# qumir:strict types #|
Use Cases
- Enable experimental language features (structs, classes, generics)
- Set compilation modes (strict type checking, optimizations)
- Configure runtime behavior
- Conditional compilation
Implementation
TBD — needs lexer/parser changes to recognize and store pragmas.
Notes
- Must be valid Kumir comments so original Kumir can still run the code
- Pragmas should be opt-in, default behavior matches Kumir
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request