1.0.0 ⢠Published 6 months ago
ris-vsc v1.0.0
RIS-CPP
A comprehensive development environment for the Reverse Instruction System (RIS) in C++.
Features
- š Complete project scaffolding
- š VS Code integration with syntax highlighting
- š Language server with autocompletion
- š Integrated debugging support
- š Test framework integration
- š File watching and live reload
- š ļø CMake-based build system
Installation
npm install -g ris-cpp
Quick Start
- Create a new project:
ris-cpp --init
- Start coding in the
src
directory - Compile your project:
ris-cpp --compile src/main.cpp
- Run with file watching:
ris-cpp --watch
Project Structure
./
āāā src/ # Source files
ā āāā main.cpp # Main interpreter
ā āāā example.ris # Example RIS file
āāā .vscode/ # VS Code configuration
ā āāā settings.json # Editor settings
ā āāā launch.json # Debug configuration
āāā server/ # Language server
ā āāā server.js # Server implementation
āāā tests/ # Test directory
ā āāā interpreter.test.js
āāā CMakeLists.txt # Build configuration
RIS Language Support
The package provides full language support for RIS files including:
- Syntax highlighting
- Code completion
- Error detection
- Symbol navigation
Supported Commands
VAR
: Variable declarationPRN
: Print statementHLT
: Halt executionINT
: Hardware interruptOUT
: Port outputIN
: Port inputPROC
: Process creation
VS Code Integration
Features
- Custom syntax highlighting for .ris files
- Debugging configuration
- IntelliSense support
- Format on save
- Custom snippets
Debugging
- Set breakpoints in your code
- Press F5 to start debugging
- Use the debug toolbar to step through code
Build System
The project uses CMake for building. To build your project:
# In the project root
mkdir build && cd build
cmake ..
make
Testing
Run the test suite:
npm test
Contributing
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
1.0.0
6 months ago