pfor/scripts/red_expr

15 lines
355 B
Plaintext
Raw Permalink Normal View History

2021-05-10 16:11:23 +00:00
#!/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'