/[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.11, Sat Nov 18 21:53:17 2006 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 31  Line 32 
32  #include <string.h>  #include <string.h>
33  #include <ctype.h>  #include <ctype.h>
34    
35    #include <gd.h>
36    
37  #include "utils.h"  #include "utils.h"
38    #include "cvsgraph.h"
39  #include "readconf.h"  #include "readconf.h"
40  #include "rcs.h"  #include "rcs.h"
41  #include "rcs.tab.h"  #include "rcs.tab.h"
# Line 82  Line 86 
86          /* Other known extensions */          /* Other known extensions */
87  namespace               return tNAMESPACE;  namespace               return tNAMESPACE;
88  dead                    return tDEAD;  dead                    return tDEAD;
89            /* CVSNT extensions */
90    mergepoint1             return tMERGEPOINT;
91    deltatype               return tDELTATYPE;
92    commitid                return tCOMMITID;
93    kopt                    return tKOPT;
94    filename                return tFILENAME;
95    properties              return tPROPERTIES;
96    
97          /* Here come any other 'newphrase' constructs */          /* Here come any other 'newphrase' constructs */
98  {num}?{idchar}({idchar}|{num})*         {  {num}?{idchar}({idchar}|{num})*         {
# Line 129  Line 140 
140  <xSTR>@@        add_str(rcstext, 1);  <xSTR>@@        add_str(rcstext, 1);
141  <xSTR>@         rcslval.str = get_str(); BEGIN(INITIAL); skip_string = 0; return tSTRING;  <xSTR>@         rcslval.str = get_str(); BEGIN(INITIAL); skip_string = 0; return tSTRING;
142    
143    <xAUTHOR>@      reset_str(); BEGIN(xSTR);
144    <xAUTHOR>{ws}+  ;
145    <xAUTHOR>\n     line_number++;
146    <xAUTHOR>{special}      BEGIN(INITIAL); return *rcstext;
147    <xAUTHOR>({idchar}|{num}|{ws})+         {
148                    rcslval.str = xstrdup(rcstext);
149                    BEGIN(INITIAL);
150                    return tID;
151            }
152    <xAUTHOR>.      rcserror("Invalid character in AUTHOR '%s' (0x%02x)", rcstext, rcstext[yyleng-1]);
153    
154  {ws}+           ; /* Ignore whitespace */  {ws}+           ; /* Ignore whitespace */
155  \n              line_number++;  \n              line_number++;
156    
157  .               rcserror("Unknown char/unmatched text '%c' (0x%02x)", isprint(*rcstext) ? *rcstext : ' ', *rcstext);  .               rcserror("Unknown char/unmatched text '%c' (0x%02x)", isprint((int)((unsigned char)*rcstext)) ? *rcstext : ' ', *rcstext);
158    
159  %%  %%
160    
# Line 147  Line 168 
168          BEGIN(xID);          BEGIN(xID);
169  }  }
170    
171    void set_author(void)
172    {
173            BEGIN(xAUTHOR);
174    }
175    
176  void set_sym(void)  void set_sym(void)
177  {  {
178          BEGIN(xSYM);          BEGIN(xSYM);

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

  ViewVC Help
Powered by ViewVC 1.1.0 with CvsGraph 1.7.0