This commit is contained in:
Михаил Капелько
2024-04-01 22:59:43 +03:00
parent 110b44030d
commit 4122ffd816
4 changed files with 50 additions and 10 deletions

12
sed.pythonToC++ Normal file
View File

@@ -0,0 +1,12 @@
# #} -> }
s|#}|}|
# # -> //
s|#|//|
# dict[X, Y] -> std::map<X, Y>
s_dict\[(.*), (.*)\]_std::map<\1, \2>_
# def functionName(X) -> Y -> Y functionName(X) {
s|def (.*) -> (.*):|\2 \1 {|