Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
ast.h File Reference
#include <sfio/sfio.h>
#include <stdlib.h>
#include <string.h>
#include <util/agxbuf.h>
Include dependency graph for ast.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define STR_LEFT   02 /* implicit left anchor */
 
#define STR_RIGHT   04 /* implicit right anchor */
 
#define CC_bel   0007 /* bel character */
 
#define CC_esc   0033 /* esc character */
 
#define CC_vt   0013 /* vt character */
 
#define elementsof(x)   (sizeof(x)/sizeof(x[0]))
 

Functions

int chresc (const char *, char **)
 
int chrtoi (const char *)
 
char * fmtesq (const char *, const char *)
 
char * fmtesc (const char *as)
 
char * fmtquote (const char *, const char *, const char *)
 quote string as with qb...qe
 
int strmatch (char *, char *)
 
int strgrpmatch (char *, char *, size_t *, int, int)
 
void stresc (char *)
 

Macro Definition Documentation

◆ CC_bel

#define CC_bel   0007 /* bel character */

Definition at line 29 of file ast.h.

◆ CC_esc

#define CC_esc   0033 /* esc character */

Definition at line 30 of file ast.h.

◆ CC_vt

#define CC_vt   0013 /* vt character */

Definition at line 31 of file ast.h.

◆ elementsof

#define elementsof (   x)    (sizeof(x)/sizeof(x[0]))

Definition at line 33 of file ast.h.

◆ STR_LEFT

#define STR_LEFT   02 /* implicit left anchor */

Definition at line 26 of file ast.h.

◆ STR_RIGHT

#define STR_RIGHT   04 /* implicit right anchor */

Definition at line 27 of file ast.h.

Function Documentation

◆ chresc()

int chresc ( const char *  s,
char **  p 
)
extern

Definition at line 22 of file chresc.c.

References CC_bel, CC_esc, and CC_vt.

Referenced by chrtoi(), and stresc().

Here is the caller graph for this function:

◆ chrtoi()

int chrtoi ( const char *  s)
extern

Definition at line 22 of file chrtoi.c.

References chresc().

Referenced by extoken_fn().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fmtesc()

char * fmtesc ( const char *  as)
extern

Definition at line 132 of file fmtesc.c.

References fmtquote(), and NULL.

Here is the call graph for this function:

◆ fmtesq()

char * fmtesq ( const char *  as,
const char *  qs 
)
extern

Definition at line 123 of file fmtesc.c.

References fmtquote(), and NULL.

Referenced by gen(), print(), and scan().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fmtquote()

char * fmtquote ( const char *  as,
const char *  qb,
const char *  qe 
)
extern

Definition at line 26 of file fmtesc.c.

References agxbdisown(), agxbput(), CC_bel, CC_esc, CC_vt, free(), gv_iscntrl(), gv_isprint(), gv_isspace(), last, and PUT.

Referenced by fmtesc(), fmtesq(), and prformat().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stresc()

void stresc ( char *  s)
extern

Definition at line 20 of file stresc.c.

References chresc().

Referenced by extoken_fn().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ strgrpmatch()

int strgrpmatch ( char *  b,
char *  p,
size_t *  sub,
int  n,
int  flags 
)
extern

Definition at line 505 of file strmatch.c.

References error, flags, grpmatch(), match(), STR_LEFT, STR_RIGHT, and sub.

Referenced by exsub(), match(), and strmatch().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ strmatch()

int strmatch ( char *  s,
char *  p 
)
extern

Definition at line 554 of file strmatch.c.

References NULL, STR_LEFT, STR_RIGHT, and strgrpmatch().

Referenced by eval().

Here is the call graph for this function:
Here is the caller graph for this function: