21#define GRAPH_EOF_TOKEN '@'
37#define YY_INPUT(buf,result,max_size) \
38 if ((result = fread(buf, 1, max_size, Ifile)) < 0) \
39 YY_FATAL_ERROR( "input in flex scanner failed" )
46 assert(
Sbuf ==
NULL &&
"leaking memory");
51 assert(
Sbuf !=
NULL &&
"missing beginstr()");
55 size_t old_size = strlen(
Sbuf) + 1;
56 size_t new_size = old_size + strlen(src);
64 assert(
Sbuf !=
NULL &&
"missing beginstr()");
Memory allocation wrappers that exit on failure.
static char * gv_strdup(const char *original)
static void * gv_realloc(void *ptr, size_t old_size, size_t new_size)
static void addstr(const char *src)
void initgmlscan(FILE *ifile)
static void beginstr(void)
77L_REAL [-+]?{DIGIT}*\.{DIGIT}*{MANTISSA}?
78L_ID [a-zA-Z_][_a-zA-Z0-9]*
81{GRAPH_EOF_TOKEN} return(EOF);
86"graph" return (
GRAPH);
97"label" return (
LABEL);
105"width" return (
WIDTH);
106"style" return (
STYLE);
108"point" return (
POINT);
112"color" return (
COLOR);
140#ifndef YY_CALL_ONLY_ARG
141# define YY_CALL_ONLY_ARG void
void gmlerror(const char *str)
void agwarningf(const char *fmt,...)
textitem scanner parser str