Cthulhu  0.2.10
Cthulhu compiler collection
flex.h File Reference
#include <ctu_interop_api.h>
#include "base/panic.h"
#include "interop/actions.h"
Include dependency graph for flex.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define YY_USER_ACTION   flex_action(yylloc, yytext);
 track source locations inside flex and bison More...
 
#define YY_INPUT(buffer, result, size)
 read input for flex and bison More...
 
#define YYLLOC_DEFAULT(current, rhs, offset)   flex_update(&(current), rhs, offset)
 default source location update function More...
 
#define YY_USER_INIT   flex_init(yylloc);
 initialize flex and bison More...
 
#define YY_FATAL_ERROR(msg)   CT_NEVER("fatal flex error: %s", msg)
 install our own error handler for nicer error messages More...
 

Macro Definition Documentation

◆ YY_FATAL_ERROR

#define YY_FATAL_ERROR (   msg)    CT_NEVER("fatal flex error: %s", msg)

install our own error handler for nicer error messages

Definition at line 38 of file flex.h.

◆ YY_INPUT

#define YY_INPUT (   buffer,
  result,
  size 
)
Value:
result = flex_input(yyextra, buffer, size); \
if ((result) <= 0) \
{ \
(result) = YY_NULL; \
}
CT_NODISCARD size_t size
Definition: scan.h:128
CT_INTEROP_API int flex_input(INOUT_NOTNULL scan_t *scan, STA_WRITES(size) char *out, int size)
retrevies more input for flex

read input for flex and bison

Definition at line 18 of file flex.h.

◆ YY_USER_ACTION

#define YY_USER_ACTION   flex_action(yylloc, yytext);

track source locations inside flex and bison

Definition at line 13 of file flex.h.

◆ YY_USER_INIT

#define YY_USER_INIT   flex_init(yylloc);

initialize flex and bison

Definition at line 33 of file flex.h.

◆ YYLLOC_DEFAULT

#define YYLLOC_DEFAULT (   current,
  rhs,
  offset 
)    flex_update(&(current), rhs, offset)

default source location update function

Definition at line 28 of file flex.h.