[1.43.10]

Fix --compile-debug option.

Add more syntax checks for --compile option.  Detect empty pre-rule.  Detech missing match-rule.


git-svn-id: https://espeak.svn.sourceforge.net/svnroot/espeak/trunk@240 d46cf337-b52f-0410-862d-fd96e6ae7743
This commit is contained in:
jonsd
2010-03-12 12:11:45 +00:00
parent aaa5d61737
commit 9ffdc46fa0
14 changed files with 373 additions and 203 deletions
+7
View File
@@ -1046,7 +1046,14 @@ static char *compile_rule(char *input)
strcpy(rule_match,group_name);
if(rule_match[0]==0)
{
if(rule_post[0] != 0)
{
fprintf(f_log,"%5d: Syntax error\n",linenum);
error_count++;
}
return(NULL);
}
EncodePhonemes(rule_phonemes,buf,bad_phoneme);
for(ix=0;; ix++)