1.0.0 • Published 6 months ago

ris-vsc v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

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

  1. Create a new project:
ris-cpp --init
  1. Start coding in the src directory
  2. Compile your project:
ris-cpp --compile src/main.cpp
  1. 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 declaration
  • PRN: Print statement
  • HLT: Halt execution
  • INT: Hardware interrupt
  • OUT: Port output
  • IN: Port input
  • PROC: Process creation

VS Code Integration

Features

  • Custom syntax highlighting for .ris files
  • Debugging configuration
  • IntelliSense support
  • Format on save
  • Custom snippets

Debugging

  1. Set breakpoints in your code
  2. Press F5 to start debugging
  3. 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

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.