| # | Line 119 | Line 119 | int escape_stack_ptr = 0; //keeps track of the escape | |
|---|---|---|
| 119 | return QUOTED_STRING; | |
| 120 | } | |
| 121 | ||
| 122 | + | \(.*\) { |
| 123 | + | /* little routine to pass a list string */ |
| 124 | + | |
| 125 | + | my_short i; |
| 126 | + | i = 0; // index |
| 127 | + | while( yytext[i+1] != ')' ){ |
| 128 | + | |
| 129 | + | yytext[i] = yytext[i+1]; |
| 130 | + | i++; |
| 131 | + | } |
| 132 | + | yytext[i] = '\0'; |
| 133 | + | yylval.s_ptr = strdup( yytext ); |
| 134 | + | return LIST_STRING; |
| 135 | + | } |
| 136 | + | |
| 137 | \[{natural}\] { | |
| 138 | int index; | |
| 139 | sscanf(yytext, "[%d]", &index); | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |