BRL-CAD
obj_rules.h File Reference
#include "common.h"
#include "obj_token_type.h"
#include "obj_scanner.h"
Include dependency graph for obj_rules.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  extra_t
 

Macros

#define CONDTYPE   enum YYCONDTYPE
 
#define PERPLEX_LEXER   obj_parser_lex
 
#define PERPLEX_ON_ENTER
 

Typedefs

typedef perplex_t yyscan_t
 

Enumerations

enum  YYCONDTYPE { INITIAL, id_state, toggle_id_state, id_list_state }
 

Functions

void obj_parser_lex_destroy (yyscan_t scanner)
 
void * obj_parser_get_state (yyscan_t scanner)
 
void * obj_parser_get_extra (yyscan_t scanner)
 
void obj_parser_set_extra (yyscan_t scanner, void *extra)
 

Detailed Description

Necessary declarations to use re2c scanner.

Definition in file obj_rules.h.

Macro Definition Documentation

#define CONDTYPE   enum YYCONDTYPE

Definition at line 38 of file obj_rules.h.

#define PERPLEX_LEXER   obj_parser_lex

Definition at line 42 of file obj_rules.h.

#define PERPLEX_ON_ENTER
Value:
struct extra_t *extra = static_cast<struct extra_t*>(yyextra); \
YYSTYPE *yylval = &extra->tokenData; \
objCombinedState *combinedState = static_cast<objCombinedState*>(extra->state);
basic_parser_extra< float, char > objCombinedState
union YYSTYPE YYSTYPE

Definition at line 44 of file obj_rules.h.

Typedef Documentation

typedef perplex_t yyscan_t

Definition at line 52 of file obj_rules.h.

Enumeration Type Documentation

enum YYCONDTYPE
Enumerator
INITIAL 
id_state 
toggle_id_state 
id_list_state 

Definition at line 32 of file obj_rules.h.

Function Documentation

void obj_parser_lex_destroy ( yyscan_t  scanner)

Referenced by lex_sentry::~lex_sentry().

void* obj_parser_get_state ( yyscan_t  scanner)
void* obj_parser_get_extra ( yyscan_t  scanner)
void obj_parser_set_extra ( yyscan_t  scanner,
void *  extra 
)