aboutsummaryrefslogtreecommitdiff
path: root/src/hyper/token.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/hyper/token.h')
-rw-r--r--src/hyper/token.h110
1 files changed, 3 insertions, 107 deletions
diff --git a/src/hyper/token.h b/src/hyper/token.h
index a4dadac8..24a3c3f3 100644
--- a/src/hyper/token.h
+++ b/src/hyper/token.h
@@ -49,9 +49,9 @@
/* HyperDoc parser tokens */
-typedef struct toke {
- int type; /* token type. One of those listed below */
- char *id; /* string value if type == Identifier */
+typedef struct Token {
+ int type; /* token type. One of those listed below */
+ char *id; /* string value if type == Identifier */
} Token;
/*
@@ -162,110 +162,6 @@ typedef struct toke {
extern char *token_table[];
-#ifdef PARSER
-char *token_table[] = {
- "", /* Dummy token name */
- "word",
- "page",
- "lispcommandquit",
- "bf",
- "link",
- "downlink",
- "beginscroll",
- "spadcommand",
- "nolines",
- "env",
- "par",
- "centerline",
- "begin",
- "beginitems",
- "item",
- "table",
- "fbox",
- "tab",
- "space",
- "indent",
- "horizontalline",
- "newline",
- "enditems",
- "returnbutton",
- "memolink",
- "upbutton",
- "endscroll",
- "thispage",
- "returnto",
- "free",
- "bound",
- "lisplink",
- "unixlink",
- "mbox",
- "inputstring",
- "stringvalue",
- "spadlink",
- "inputbitmap",
- "inputpixmap",
- "unixcommand",
- "em",
- "lispcommand",
- "lispmemolink",
- "lispdownlink",
- "spadcall",
- "spadcallquit",
- "spaddownlink",
- "spadmemolink",
- "qspadcall",
- "qspadcallquit",
- "inputbox",
- "radioboxes",
- "boxvalue",
- "vspace",
- "hspace",
- "newcommand",
- "windowid",
- "beep",
- "quitbutton",
- "begintitems",
- "titem",
- "end",
- "it",
- "sl",
- "tt",
- "rm",
- "ifcond",
- "else",
- "fi",
- "newcond",
- "setcond" ,
- "button",
- "windowlink",
- "haslisp",
- "hasup",
- "hasreturn",
- "hasreturnto",
- "lastwindow",
- "endtitems",
- "lispwindowlink",
- "beginpile",
- "endpile",
- "nextline",
- "pastebutton",
- "color",
- "helppage",
- "patch",
- "radiobox",
- "ifrecond",
- "math",
- "mitem",
- "pagename",
- "examplenumber",
- "replacepage",
- "inputimage",
- "spadgraph",
- "indentrel",
- "controlbitmap"
- };
-#endif
-
/* places from which input may be read */
#define FromFile 1