/[CvsGraph]/cvsgraph/rcsl.l
ViewVC logotype

Diff of /cvsgraph/rcsl.l

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.3, Mon Mar 10 22:57:21 2003 UTC revision 1.4, Thu Jul 15 15:12:07 2004 UTC
# Line 24  Line 24 
24  %x xSYM  %x xSYM
25  %x xSKIP  %x xSKIP
26  %x xSKIPSTR  %x xSKIPSTR
27    %x xAUTHOR
28    
29  %{  %{
30  #include <stdio.h>  #include <stdio.h>
# Line 129  Line 130 
130  <xSTR>@@        add_str(rcstext, 1);  <xSTR>@@        add_str(rcstext, 1);
131  <xSTR>@         rcslval.str = get_str(); BEGIN(INITIAL); skip_string = 0; return tSTRING;  <xSTR>@         rcslval.str = get_str(); BEGIN(INITIAL); skip_string = 0; return tSTRING;
132    
133    <xAUTHOR>@      reset_str(); BEGIN(xSTR);
134    <xAUTHOR>{ws}+  ;
135    <xAUTHOR>\n     line_number++;
136    <xAUTHOR>{special}      BEGIN(INITIAL); return *rcstext;
137    <xAUTHOR>{num}?{idchar}({idchar}|{num})*                {
138                    rcslval.str = xstrdup(rcstext);
139                    BEGIN(INITIAL);
140                    return tID;
141            }
142    <xAUTHOR>{num}?.        rcserror("Invalid character in ID '%s' (0x%02x)", rcstext, rcstext[yyleng-1]);
143    
144  {ws}+           ; /* Ignore whitespace */  {ws}+           ; /* Ignore whitespace */
145  \n              line_number++;  \n              line_number++;
# Line 147  Line 158 
158          BEGIN(xID);          BEGIN(xID);
159  }  }
160    
161    void set_author(void)
162    {
163            BEGIN(xAUTHOR);
164    }
165    
166  void set_sym(void)  void set_sym(void)
167  {  {
168          BEGIN(xSYM);          BEGIN(xSYM);

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0