pfor/scripts/red_expr
2021-05-10 18:11:23 +02:00

15 lines
355 B
Bash
Executable File

#!/bin/bash
cat|sed -r \
-e 's/.*Ts = \{[A-Za-z0-9_]+<(.*)>\};.*/\1/g' \
-e 's/Expression/E/g' \
-e 's/op::Comma/#/g' \
-e 's/op::Assign/=/g' \
-e 's/op::Addition/+/g' \
-e 's/op::Multiplication/*/g' \
-e 's/IntToType<(.)ul>/\1/g' \
-e 's/IteratorImpl<>/IT/g' \
-e 's/IteratorImpl<(.) >/\1/g' \
-e 's/int\*, //g' \
-e 's/, IteratorImpl<> //g'