chat_commands_parcer

Crates.iochat_commands_parcer
lib.rschat_commands_parcer
version0.1.1
sourcesrc
created_at2024-11-06 18:22:54.853384
updated_at2024-11-11 14:24:31.189139
descriptionThe theme of the parcer is a command like input in the enviroment like chats of different social apps (Discord, Telegram) It parces users input-commands in format: /command_name|identifier (arguments)* I had problems understanding how to work with Makefile This application is a parser built with Rust using the `pest`. It takes command-line input, parses it and displays structured information about the input.
homepage
repository
max_upload_size
id1438664
size54,529
(Kasgor)

documentation

README

Chat commands Parser

The theme of the parcer is a command like input in the enviroment like chats of different social apps (Discord, Telegram) In current state the program parses the text that can be located in the text file for example input.txt and as a result it returns a file output.txt that has the modified text

List of commands that can be parced and apply an effect on the program:

/smile -> return a ":) "

/repeat number "text_in_quotes" -> returns a phrase in the quotes repeatedly number of times

/define "text_in_quotes1" "text_in_quotes" -> return nothing creates a variable "text_in_quotes1" that can be used by other command /use

/use "text_in_quotes" -> returns a defined before value that if it matches any of variable ("text_in_quotes")

Example Input: The world is beautiful /smile I like it /repeat 100 ":" Hello /define "user" "Bob" /use "user"! /use "user" /use "user" /use "user" /use "user"

Example Result Output: The world is beautiful :) I like it :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Hello Bob! Bob Bob Bob Bob

Logic of parsing:

alt text

This application is a parser built with Rust using the pest. It takes command-line input, parses it and displays structured information about the input.

Commit count: 0

cargo fmt