chiark
/
gitweb
/
~mdw
/
fwd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1a03913
)
Make delimiters be a property of a scanner.
author
mdw
<mdw>
Sun, 13 Jan 2002 14:50:07 +0000
(14:50 +0000)
committer
mdw
<mdw>
Sun, 13 Jan 2002 14:50:07 +0000
(14:50 +0000)
scan.h
patch
|
blob
|
blame
|
history
diff --git
a/scan.h
b/scan.h
index eee6f61211d4c168cfaed4f53eeb2bb1c5f679cd..07300d50bb243c32f3d1960899b0ef06343a19ca 100644
(file)
--- a/
scan.h
+++ b/
scan.h
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-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
*
*
* Character scanners
*
@@
-29,6
+29,9
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: scan.h,v $
/*----- 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.
* 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 */
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 ------------------------------------------*/
} scanner;
/*----- Particular scanner types ------------------------------------------*/