X-Git-Url: https://git.distorted.org.uk/~mdw/fwd/blobdiff_plain/77d0e3dc66ecd3028914496e4c0084bcb1f8f7af..c36e735af553de4bc1776977341bd95b64483f72:/scan.h diff --git a/scan.h b/scan.h index eee6f61..07300d5 100644 --- a/scan.h +++ b/scan.h @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: scan.h,v 1.2 1999/07/26 23:24:33 mdw Exp $ + * $Id: scan.h,v 1.3 2002/01/13 14:50:07 mdw Exp $ * * Character scanners * @@ -29,6 +29,9 @@ /*----- Revision history --------------------------------------------------* * * $Log: scan.h,v $ + * Revision 1.3 2002/01/13 14:50:07 mdw + * Make delimiters be a property of a scanner. + * * Revision 1.2 1999/07/26 23:24:33 mdw * Complete rewrite. Allow a list of character sources to enable changes * during parsing of syntactic constructs. @@ -78,6 +81,7 @@ typedef struct scanner { scansrc *head, **tail; /* Scanner list head and tail */ int t; /* Token type */ dstr d; /* Current token value */ + const char *wbegin, *wcont; /* Parsing exception strings */ } scanner; /*----- Particular scanner types ------------------------------------------*/