Git Product home page Git Product logo

ram-cli's Introduction

RAM Emulator CLI

Version 0.1.1 License ic-it Mykhailo Sichkaruk

This CLI is a companion tool for the RAM Emulator library, allowing you to easily check, compile, and run RAM assembly code from the command line.

asciicast

Features

  • Check RAM assembly code for syntax errors
  • Compile and run RAM assembly code
  • Customizable input and output options

Installation

From Source

git clone https://github.com/Ddystopia/ram-cli.git
cd ram-cli
cargo install --path .

For your Operating System

Install binary for your operating system from releases.

Usage

To use the RAM Emulator CLI, you can run the following commands: Help

ram-cli help

Check

ram-cli check <FILE>

Checks the RAM assembly code in the specified file for syntax errors. Run

ram-cli run [OPTIONS] <FILE>

Compiles and runs the RAM assembly code in the specified file. You can also specify input and output options with -i/--input and -o/--output flags.

Generate shell completion

With gen-completion command, you can generate shell completion script for one of the following shells: bash, zsh, fish, elvish and powershell.

ram-cli gen-completion <SHELL>

After you generate the completion script, you should add it to your shell configuration file. On windows powershell, you should run the generated .ps1 file and reload the shell to enable shell completion.

Examples

Check a RAM assembly code file:

ram-cli check example.ram

Run a RAM assembly code file with custom input and output files:

ram-cli run -i input.txt -o output.txt example.ram

Contributing

Contributions to the project are welcome. You can report bugs, request features, or submit pull requests. Before submitting a pull request, make sure your changes are well-tested and documented. License

This project is licensed under the GNU General Public License v3.0. See the LICENSE file for details.

ram-cli's People

Contributors

ic-it avatar ddystopia avatar mykhailo-sichkaruk avatar

Stargazers

Adam Slatinský avatar  avatar Dmytro Dzhuha avatar  avatar  avatar

Watchers

 avatar

ram-cli's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.