Crate rpg_chat_command_parser

Source
Expand description

§RPG Chat Command Parser

This binary provides a command-line interface (CLI) for parsing RPG-style chat commands.

§Usage

You can run the binary with the following subcommands:

§Parse a Single Command

rpg-chat-command-parser parse "<command>"

Example:

rpg-chat-command-parser parse "/cast fireball --power=high"

§Parse Commands from a File

rpg-chat-command-parser file "<file_path>"

Example:

rpg-chat-command-parser file commands.txt

§Display Additional Help Information

rpg-chat-command-parser info

§Installation

  • Clone the repository: git clone https://github.com/Emril44/rpg-chat-command-parser.git
  • Build the project: cargo build --release
  • Run the binary: ./target/release/rpg-chat-command-parser

Re-exports§

pub use errors::CommandError;
pub use parser::parse_command;
pub use parser::ParsedCommand;

Modules§

errors
Error Handling for RPG Chat Command Parser
parser
Command Parser