--- loncom/homework/CAPA-converter/capaLexerDef.flex 2000/11/21 18:43:29 1.6 +++ loncom/homework/CAPA-converter/capaLexerDef.flex 2001/07/09 04:01:53 1.8 @@ -754,7 +754,7 @@ EndLine ([\r][\n]|[\n]) dosend=2; } -[Ss][Tt][Rr] { LLDBUG_PR1("[STR]"); send("\" str="); dosend=1; } +[Ss][Tt][Rr] { LLDBUG_PR1("[STR]"); send("\" str=\""); dosend=1; } [Ee][Vv][Aa][Ll] | [Ee][Vv][Aa][Ll][Uu][Aa][Tt][Ee] { LLDBUG_PR1("[EVAL]");send("\" eval="); dosend=1;} [Uu][Nn][Ii][Tt] | @@ -837,7 +837,7 @@ EndLine ([\r][\n]|[\n]) { [\"] { LLDBUG_PR1("[TF,V,LET,MAP str\" ]"); Current_char_p = String_buf; - send("\""); + send("'"); yy_push_state(S_STRING); } } @@ -870,7 +870,7 @@ EndLine ([\r][\n]|[\n]) end_delayed(); send("&format("); flush_delayed(); - send(",\"%s\")",yytext+1); + send(",'%s')",yytext+1); } [:]{Number}+[EeFf] { if (dosend) send("\" format=\"%s",yytext+1); @@ -931,7 +931,7 @@ EndLine ([\r][\n]|[\n]) [\\][\"] { /**Current_char_p++ = '"';*/ send("\\\""); } [\\]{Space}*[\n] { LLDBUG_PR2("[\\CR continue in S_STRING](%s)",yytext); /* continuation on next line */ } [\"] { /* end of a string constant -- */ - send("\""); + send("'"); yy_pop_state(); } {EndLine} { /* check for termination of string constant */