Graphviz  2.29.20120524.0446
lib/graph/trie.c
Go to the documentation of this file.
00001 /* $Id$ $Revision$ */
00002 /* vim:set shiftwidth=4 ts=8: */
00003 
00004 /*************************************************************************
00005  * Copyright (c) 2011 AT&T Intellectual Property 
00006  * All rights reserved. This program and the accompanying materials
00007  * are made available under the terms of the Eclipse Public License v1.0
00008  * which accompanies this distribution, and is available at
00009  * http://www.eclipse.org/legal/epl-v10.html
00010  *
00011  * Contributors: See CVS logs. Details at http://www.graphviz.org/
00012  *************************************************************************/
00013 
00014 
00015 #include "libgraph.h"
00016 #include "parser.h"
00017 #include "triefa.h"
00018 
00019 #ifdef DMALLOC
00020 #include "dmalloc.h"
00021 #endif
00022 
00023 TrieState TrieStateTbl[34] = {
00024     {-1, 0, 0x42058}
00025     ,
00026     {-1, 5, 0x100}
00027     ,
00028     {-1, 6, 0x40}
00029     ,
00030     {-1, 7, 0x20000}
00031     ,
00032     {-1, 8, 0x1}
00033     ,
00034     {-1, 9, 0x8000}
00035     ,
00036     {-1, 10, 0x80}
00037     ,
00038     {T_digraph, 11, 0x0}
00039     ,
00040     {-1, 11, 0x8}
00041     ,
00042     {-1, 12, 0x40}
00043     ,
00044     {-1, 13, 0x10}
00045     ,
00046     {T_edge, 14, 0x0}
00047     ,
00048     {-1, 14, 0x20000}
00049     ,
00050     {-1, 15, 0x1}
00051     ,
00052     {-1, 16, 0x8000}
00053     ,
00054     {-1, 17, 0x80}
00055     ,
00056     {T_graph, 18, 0x0}
00057     ,
00058     {-1, 18, 0x4000}
00059     ,
00060     {-1, 19, 0x8}
00061     ,
00062     {-1, 20, 0x10}
00063     ,
00064     {T_node, 21, 0x0}
00065     ,
00066     {-1, 21, 0x180000}
00067     ,
00068     {-1, 23, 0x20000}
00069     ,
00070     {-1, 24, 0x100}
00071     ,
00072     {-1, 25, 0x4}
00073     ,
00074     {-1, 26, 0x80000}
00075     ,
00076     {T_strict, 27, 0x0}
00077     ,
00078     {-1, 27, 0x2}
00079     ,
00080     {-1, 28, 0x40}
00081     ,
00082     {-1, 29, 0x20000}
00083     ,
00084     {-1, 30, 0x1}
00085     ,
00086     {-1, 31, 0x8000}
00087     ,
00088     {-1, 32, 0x80}
00089     ,
00090     {T_subgraph, 33, 0x0}
00091     ,
00092 };
00093 TrieTrans TrieTransTbl[33] = {
00094     /* State   0 */ {'s', 21}
00095     , {'e', 8}
00096     , {'g', 12}
00097     , {'n', 17}
00098     , {'d', 1}
00099     ,
00100     /* State   1 */ {'i', 2}
00101     ,
00102     /* State   2 */ {'g', 3}
00103     ,
00104     /* State   3 */ {'r', 4}
00105     ,
00106     /* State   4 */ {'a', 5}
00107     ,
00108     /* State   5 */ {'p', 6}
00109     ,
00110     /* State   6 */ {'h', 7}
00111     ,
00112     /* State   8 */ {'d', 9}
00113     ,
00114     /* State   9 */ {'g', 10}
00115     ,
00116     /* State  10 */ {'e', 11}
00117     ,
00118     /* State  12 */ {'r', 13}
00119     ,
00120     /* State  13 */ {'a', 14}
00121     ,
00122     /* State  14 */ {'p', 15}
00123     ,
00124     /* State  15 */ {'h', 16}
00125     ,
00126     /* State  17 */ {'o', 18}
00127     ,
00128     /* State  18 */ {'d', 19}
00129     ,
00130     /* State  19 */ {'e', 20}
00131     ,
00132     /* State  21 */ {'t', 22}
00133     , {'u', 27}
00134     ,
00135     /* State  22 */ {'r', 23}
00136     ,
00137     /* State  23 */ {'i', 24}
00138     ,
00139     /* State  24 */ {'c', 25}
00140     ,
00141     /* State  25 */ {'t', 26}
00142     ,
00143     /* State  27 */ {'b', 28}
00144     ,
00145     /* State  28 */ {'g', 29}
00146     ,
00147     /* State  29 */ {'r', 30}
00148     ,
00149     /* State  30 */ {'a', 31}
00150     ,
00151     /* State  31 */ {'p', 32}
00152     ,
00153     /* State  32 */ {'h', 33}
00154     ,
00155 };