Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
exdata.c
Go to the documentation of this file.
1/*************************************************************************
2 * Copyright (c) 2011 AT&T Intellectual Property
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * https://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors: Details at https://graphviz.org
9 *************************************************************************/
10
11/*
12 * Glenn Fowler
13 * AT&T Research
14 *
15 * expression library readonly tables
16 */
17
18static const char id[] = "\n@(#)$Id: libexpr (AT&T Research) 2011-06-30 $\0\n";
19
20#include <expr/exlib.h>
21
22const char* exversion = id + 10;
23
25{
26
27 /* id_string references the first entry */
28
29 EX_ID("string", DECLARE, STRING, STRING),
30
31 /* order not important after this point (but sorted anyway) */
32
33 EX_ID("break", BREAK, BREAK, 0),
34 EX_ID("case", CASE, CASE, 0),
36 EX_ID("continue",CONTINUE, CONTINUE, 0),
37 EX_ID("default", DEFAULT, DEFAULT, 0),
38 EX_ID("double", DECLARE, FLOATING, FLOATING),
39 EX_ID("else", ELSE, ELSE, 0),
40 EX_ID("exit", EXIT, EXIT, INTEGER),
41 EX_ID("for", FOR, FOR, 0),
42 EX_ID("forr", ITERATOR, ITERATOR, 0),
43 EX_ID("float", DECLARE, FLOATING, FLOATING),
44 EX_ID("gsub", GSUB, GSUB, STRING),
45 EX_ID("if", IF, IF, 0),
46 EX_ID("in", IN_OP, IN_OP, 0),
47 EX_ID("int", DECLARE, INTEGER, INTEGER),
48 EX_ID("long", DECLARE, INTEGER, INTEGER),
49 EX_ID("print", PRINT, PRINT, INTEGER),
50 EX_ID("printf", PRINTF, PRINTF, INTEGER),
51 EX_ID("query", QUERY, QUERY, INTEGER),
52 EX_ID("rand", RAND, RAND, FLOATING),
53 EX_ID("return", RETURN, RETURN, 0),
54 EX_ID("scanf", SCANF, SCANF, INTEGER),
55 EX_ID("sscanf", SSCANF, SSCANF, INTEGER),
56 EX_ID("split", SPLIT, SPLIT, INTEGER),
57 EX_ID("sprintf", SPRINTF, SPRINTF, STRING),
58 EX_ID("srand", SRAND, SRAND, INTEGER),
59 EX_ID("sub", SUB, SUB, STRING),
60 EX_ID("substr", SUBSTR, SUBSTR, STRING),
61 EX_ID("switch", SWITCH, SWITCH, 0),
62 EX_ID("tokens", TOKENS, TOKENS, INTEGER),
63 EX_ID("unset", UNSET, UNSET, 0),
64 EX_ID("unsigned",DECLARE, UNSIGNED, UNSIGNED),
65 EX_ID("void", DECLARE, VOIDTYPE, 0),
66 EX_ID("while", WHILE, WHILE, 0),
67 EX_ID("while", WHILE, WHILE, 0),
68 EX_ID({0}, 0, 0, 0)
69
70};
Exid_t exbuiltin[]
Definition exdata.c:24
const char * exversion
Definition exdata.c:22
#define UNSIGNED
Definition exparse.c:237
#define ELSE
Definition exparse.c:252
#define CHARACTER
Definition exparse.c:238
#define SCANF
Definition exparse.c:273
#define SSCANF
Definition exparse.c:277
#define DEFAULT
Definition exparse.c:250
#define WHILE
Definition exparse.c:283
#define SRAND
Definition exparse.c:276
#define SUB
Definition exparse.c:278
#define FLOATING
Definition exparse.c:239
#define FOR
Definition exparse.c:254
#define IN_OP
Definition exparse.c:307
#define SUBSTR
Definition exparse.c:279
#define TOKENS
Definition exparse.c:281
#define ITERATOR
Definition exparse.c:258
#define VOIDTYPE
Definition exparse.c:241
#define RAND
Definition exparse.c:271
#define PRINT
Definition exparse.c:267
#define SPRINTF
Definition exparse.c:275
#define GSUB
Definition exparse.c:256
#define UNSET
Definition exparse.c:282
#define CONTINUE
Definition exparse.c:248
#define SPLIT
Definition exparse.c:274
#define BREAK
Definition exparse.c:244
#define IF
Definition exparse.c:260
#define SWITCH
Definition exparse.c:280
#define DECLARE
Definition exparse.c:249
#define EXIT
Definition exparse.c:253
#define PRINTF
Definition exparse.c:268
#define QUERY
Definition exparse.c:270
#define CASE
Definition exparse.c:246
#define EX_ID(n, l, i, t)
Definition expr.h:53
#define STRING
Definition gmlparse.c:375
#define INTEGER
Definition gmlparse.c:373
#define RETURN(v)
Definition strmatch.c:144
Definition expr.h:93