The current version is in the early development stage, and there are a lot of missing functions and unknown errors. If you want to use it stably, please move to CAIE_Code.
- Clone this repository
git clone https://github.com/iewnfod/caie-code-rs.git- Enter the folder
cd caie-code-rs- Compile and install binary
cargo install --path .cpc [file_path] [options]| Mnemonic | Option | Description |
|---|---|---|
-h |
--help |
Show help message |
-v |
--version |
Show version information |
-d |
--debug |
Enable debug mode |
MIT
- Basic Literal Types
INT,REAL,STRING,BOOLEAN. - Array & Multi-Dimensional Array.
-
IFStatement. -
FOR,WHILE,UNTILloop. -
FUNCTIONandPROCEDURE. -
INPUTandOUTPUT. -
CALLandRETURN. -
MATCHandCASE. -
RECORDandPOINTER. -
CLASSfor OOP.
- A new Scope and Object Unified Model.
- Fully implementation in Rust with a better performance and safer memory.
- A new parser to fix syntax detection problems.
- Better error detection and output.
We welcome contributions from the community! Whether it's fixing bugs, improving documentation, or implementing new features from the CAIE syllabus.
While we recognize AI as a powerful productivity tool, we prioritize code quality and long-term maintainability:
- Human-in-the-loop is mandatory: We do not accept "lazy" PRs consisting of raw, unverified AI outputs.
- Responsibility: If you use AI to assist your coding, you are 100% responsible for explaining every line of your code during the review process.
- Quality over Quantity: We value deep understanding of interpreter logic over rapid but shallow feature expansion.
- Issue First: For major changes, please open an issue to discuss your design before implementation.
- Dev Branch: All pull requests should be directed to the dev branch.
- Review: Expect a rigorous code review. We might ask you to refactor or explain your implementation details to ensure it aligns with our Unified Object Model.
- Test: Test case about your implementation would be useful to make sure your codes can work properly without breaking existing function. Github Action will automatically run
cargo testto run all test cases for each commit and PR.