Read Me
######################################
## Nested C-style comments deletion ##
######################################
Licence :
---------
This program is licenced under CeCILL-B licence, which is BSD-style licence.
A copy of this licence is distributed with this software.
More information : http://www.cecill.info/licences.en.html
Introduction :
--------------
This program is used to remove C-style comments containing a specific pattern from a file.
C-style comments that do not contain at least one of the pattern will not be erased.
C-style comments : /* ... */
Pattern recognized : RFC-[0-9]{3,6} ## RFC-000 to RFC-999999
STD-[0-9]{3,6} ## STD-000 to STD-999999
Compilation :
-------------
> make all
Usage :
-------
On a file :
> ./suppr_RFC input_file.c
From command line (mainly for tests purpose) :
> ./suppr_RFC
If no output file is precised, output will be printed to the standard output
Clean :
-------
Remove all compilation's files, but keep the executable
> make clean
Remove everything but sources and Makefile :
> make cleanall
Known bugs :
------------
If having a line with only spaces and tabs, the line is kept but not the spaces nor the tabs.
Planned enhancements :
----------------------
Script to run the program on all files of a given directory
Script to check the validity of the program on a sample
nested_comments_deletion Code
complex C comments removal
Branches
Tree [13a856] master / History
Read Me
###################################### ## Nested C-style comments deletion ## ###################################### Licence : --------- This program is licenced under CeCILL-B licence, which is BSD-style licence. A copy of this licence is distributed with this software. More information : http://www.cecill.info/licences.en.html Introduction : -------------- This program is used to remove C-style comments containing a specific pattern from a file. C-style comments that do not contain at least one of the pattern will not be erased. C-style comments : /* ... */ Pattern recognized : RFC-[0-9]{3,6} ## RFC-000 to RFC-999999 STD-[0-9]{3,6} ## STD-000 to STD-999999 Compilation : ------------- > make all Usage : ------- On a file : > ./suppr_RFC input_file.c From command line (mainly for tests purpose) : > ./suppr_RFC If no output file is precised, output will be printed to the standard output Clean : ------- Remove all compilation's files, but keep the executable > make clean Remove everything but sources and Makefile : > make cleanall Known bugs : ------------ If having a line with only spaces and tabs, the line is kept but not the spaces nor the tabs. Planned enhancements : ---------------------- Script to run the program on all files of a given directory Script to check the validity of the program on a sample