This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM check technblogy.com for details | |
@tree "%~1" /F /A | more /E /S +2 > "%~1\%~nx1.ctre" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import re | |
import sys | |
import os.path | |
# Method 1: As described by saltycrane (https://www.saltycrane.com/blog/2007/11/remove-c-comments-python/): | |
# This regular expression was created by Jeffrey Friedl and later modified by Fred Curtis. | |
# Check the above link for details. | |
def removeComments(text): | |
""" remove c-style comments. |