ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE/libBASS/BASSlex.l
(Generate patch)

Comparing trunk/OOPSE/libBASS/BASSlex.l (file contents):
Revision 997 by mmeineke, Thu Nov 6 19:24:31 2003 UTC vs.
Revision 998 by gezelter, Thu Jan 29 23:01:17 2004 UTC

# 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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines