173duprot / remove_comments_py

Remove Comments Python Wrapper

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rcmpy

This is a wrapper around my rcm library.

This is a tiny elegant rust program that takes advantage of extremely compact functional syntax to remove C-like comments with very specifically defined behavior. Replacing the comment text with spaces, and leaving in newlines. It supports C, C++, C#, and Java.

Usage

#
# install rust    on your system
# install python  on your system
# install pip     on your system
# install maturin on your system using pip
#
# read the pyo3 guide: https://pyo3.rs/v0.15.1/
#
# AND
#
# read example.sh
#
# to understand how this works
#

chmod +x example.sh
./example.sh

About

Remove Comments Python Wrapper


Languages

Language:Makefile 98.1%Language:Rust 1.4%Language:LLVM 0.3%Language:Shell 0.2%