| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| suppr_RFC.y | 2013-10-22 | 2.8 kB | |
| suppr_RFC.l | 2013-10-22 | 761 Bytes | |
| Makefile | 2013-10-22 | 531 Bytes | |
| README | 2013-10-22 | 1.1 kB | |
| Totals: 4 Items | 5.2 kB | 0 |
######################################
## Nested C-style comments deletion ##
######################################
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 :
-------
> ./suppr_RFC input_file.c > output_file.c
If no output file is precised, output will be printed in the execution window
Clean :
-------
Remove all compilation's files, but keep the executable
> make clean
Remove everything but sources and Makefile :
> make cleanall
Known bugs :
------------
If a line only contains a comment with a pattern, or with only spaces before/after, the comment will be removed but
not the line, resulting in an empty line.
Planned enhancements :
----------------------
Script to run the program on all files of a given directory