Cthulhu  0.2.10
Cthulhu compiler collection
parse.c File Reference
#include "base/util.h"
#include "common.h"
#include "config/config.h"
#include "core/macros.h"
#include "arena/arena.h"
#include "std/typed/vector.h"
#include "std/vector.h"
#include "std/str.h"
#include "std/map.h"
#include "io/io.h"
#include "interop/compile.h"
#include "ap_bison.h"
#include "ap_flex.h"
Include dependency graph for parse.c:

Go to the source code of this file.

Functions

 CT_CALLBACKS (kCallbacks, ap)
 
int ap_parse_common (ap_t *self, const char *text)
 
int ap_parse_args (ap_t *self, int argc, const char **argv)
 parse a command line More...
 
int ap_parse (ap_t *self, const char *str)
 parse a string More...
 
int ap_get_opt (scan_t *scan, const char *name, ap_field_t *param, char **value)
 

Function Documentation

◆ ap_get_opt()

int ap_get_opt ( scan_t scan,
const char *  name,
ap_field_t param,
char **  value 
)

Definition at line 153 of file parse.c.

◆ ap_parse_common()

int ap_parse_common ( ap_t self,
const char *  text 
)

Definition at line 86 of file parse.c.

◆ CT_CALLBACKS()

CT_CALLBACKS ( kCallbacks  ,
ap   
)