XMMS2
Macros | Functions | Variables
lexer.l File Reference
#include <s4.h>
#include <stdio.h>
#include <readline/readline.h>
#include "cli.h"
#include "main.tab.h"

Macros

#define YY_USER_ACTION
 
#define HEX_TO_INT(c)   (((c) & 0xf) + (((c) & 0x40) >> 6) * 9)
 

Functions

int yylex (void)
 
void init_lexer (char *lines[], int line_count)
 
int yywrap ()
 

Variables

YY_BUFFER_STATE buffer_lines [128]
 
int cur_line
 
int cur_col
 
int buffer_line_count
 

Macro Definition Documentation

◆ HEX_TO_INT

#define HEX_TO_INT (   c)    (((c) & 0xf) + (((c) & 0x40) >> 6) * 9)

◆ YY_USER_ACTION

#define YY_USER_ACTION
Value:
{ \
yylloc.first_line = yylloc.last_line = cur_line; \
yylloc.first_column = cur_col; \
cur_col += yyleng; \
yylloc.last_column = cur_col;}

Function Documentation

◆ init_lexer()

void init_lexer ( char *  lines[],
int  line_count 
)

◆ yylex()

int yylex ( void  )

◆ yywrap()

int yywrap ( )

Variable Documentation

◆ buffer_line_count

int buffer_line_count

Referenced by init_lexer(), and yywrap().

◆ buffer_lines

YY_BUFFER_STATE buffer_lines[128]

Referenced by init_lexer(), and yywrap().

◆ cur_col

int cur_col

Referenced by init_lexer(), and yywrap().

◆ cur_line

int cur_line

Referenced by init_lexer(), and yywrap().