10 STEXI*|ETEXI*|SQMP*|EQMP*) flag=$(($flag^1))
13 test $flag -eq 1 && printf "%s\n" "$str"
28 if test $flag -eq 1 ; then
29 echo "line $line: syntax error: expected ETEXI, found $str" >&2
35 if test $flag -ne 1 ; then
36 echo "line $line: syntax error: expected STEXI, found $str" >&2
42 if test $flag -eq 1 ; then
43 echo "line $line: syntax error: expected ETEXI, found $str" >&2
48 echo "$(expr "$str" : "DEFHEADING(\(.*\))")"
51 echo "$(expr "$str" : "ARCHHEADING(\(.*\),.*)")"
54 test $flag -eq 1 && echo "$str"
71 if test $flag -eq 1 ; then
72 echo "line $line: syntax error: expected EQMP, found $str" >&2
78 if test $flag -ne 1 ; then
79 echo "line $line: syntax error: expected SQMP, found $str" >&2
85 if test $flag -eq 1 ; then
86 echo "line $line: syntax error: expected EQMP, found $str" >&2
91 test $flag -eq 1 && echo "$str"