Open Broadcaster Software
Free, open source software for live streaming and recording
cf-lexer.h File Reference

Go to the source code of this file.

Data Structures

struct  cf_token
 
struct  cf_lexer
 
struct  cf_def
 
struct  cf_preprocessor
 

Enumerations

enum  cf_token_type {
  CFTOKEN_NONE, CFTOKEN_NAME, CFTOKEN_NUM, CFTOKEN_SPACETAB,
  CFTOKEN_NEWLINE, CFTOKEN_STRING, CFTOKEN_OTHER
}
 

Functions

EXPORT char * cf_literal_to_str (const char *literal, size_t count)
 
EXPORT void cf_lexer_init (struct cf_lexer *lex)
 
EXPORT void cf_lexer_free (struct cf_lexer *lex)
 
EXPORT bool cf_lexer_lex (struct cf_lexer *lex, const char *str, const char *file)
 
EXPORT void cf_preprocessor_init (struct cf_preprocessor *pp)
 
EXPORT void cf_preprocessor_free (struct cf_preprocessor *pp)
 
EXPORT bool cf_preprocess (struct cf_preprocessor *pp, struct cf_lexer *lex, struct error_data *ed)
 
EXPORT void cf_preprocessor_add_def (struct cf_preprocessor *pp, struct cf_def *def)
 
EXPORT void cf_preprocessor_remove_def (struct cf_preprocessor *pp, const char *def_name)
 

Enumeration Type Documentation

◆ cf_token_type

Enumerator
CFTOKEN_NONE 
CFTOKEN_NAME 
CFTOKEN_NUM 
CFTOKEN_SPACETAB 
CFTOKEN_NEWLINE 
CFTOKEN_STRING 
CFTOKEN_OTHER 

Function Documentation

◆ cf_lexer_free()

EXPORT void cf_lexer_free ( struct cf_lexer lex)

◆ cf_lexer_init()

EXPORT void cf_lexer_init ( struct cf_lexer lex)

◆ cf_lexer_lex()

EXPORT bool cf_lexer_lex ( struct cf_lexer lex,
const char *  str,
const char *  file 
)

◆ cf_literal_to_str()

EXPORT char* cf_literal_to_str ( const char *  literal,
size_t  count 
)

◆ cf_preprocess()

EXPORT bool cf_preprocess ( struct cf_preprocessor pp,
struct cf_lexer lex,
struct error_data ed 
)

◆ cf_preprocessor_add_def()

EXPORT void cf_preprocessor_add_def ( struct cf_preprocessor pp,
struct cf_def def 
)

◆ cf_preprocessor_free()

EXPORT void cf_preprocessor_free ( struct cf_preprocessor pp)

◆ cf_preprocessor_init()

EXPORT void cf_preprocessor_init ( struct cf_preprocessor pp)

◆ cf_preprocessor_remove_def()

EXPORT void cf_preprocessor_remove_def ( struct cf_preprocessor pp,
const char *  def_name 
)