3 # Convert an expanded praat script into a single string
4 # Output a stand alone Praat main program
7 # perl praatscript2cprogram.pl script.praat > demoapplication.h
10 /* C const char string with Praat script
11 * Generated automatically
12 * For license, see Praat script text
16 static char32_t myDemoScript [] = U""
21 # Remove logging/replay functionality (debugging code)
22 next if /^\s*\'(sgc2.logging\$|replaySGC2Log\$)\'/;
23 next if /index_regex\(replaySGC2Log\$/;
25 # Protect special characters
31 print <<'ENDOFFOOTER';