FAUST compiler  0.9.9.6b8
Classes | Macros | Typedefs | Functions | Variables
faustlexer.cpp File Reference
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdlib.h>
#include "tree.hh"
#include "faustparser.hpp"
#include "compatibility.hh"
#include <unistd.h>
Include dependency graph for faustlexer.cpp:

Go to the source code of this file.

Classes

struct  yy_buffer_state
 
struct  yy_trans_info
 

Macros

#define YY_INT_ALIGNED   short int
 
#define FLEX_SCANNER
 
#define YY_FLEX_MAJOR_VERSION   2
 
#define YY_FLEX_MINOR_VERSION   5
 
#define YY_FLEX_SUBMINOR_VERSION   37
 
#define FLEX_BETA
 
#define FLEXINT_H
 
#define INT8_MIN   (-128)
 
#define INT16_MIN   (-32767-1)
 
#define INT32_MIN   (-2147483647-1)
 
#define INT8_MAX   (127)
 
#define INT16_MAX   (32767)
 
#define INT32_MAX   (2147483647)
 
#define UINT8_MAX   (255U)
 
#define UINT16_MAX   (65535U)
 
#define UINT32_MAX   (4294967295U)
 
#define yyconst
 
#define YY_NULL   0
 
#define YY_SC_TO_UI(c)   ((unsigned int) (unsigned char) c)
 
#define BEGIN   (yy_start) = 1 + 2 *
 
#define YY_START   (((yy_start) - 1) / 2)
 
#define YYSTATE   YY_START
 
#define YY_STATE_EOF(state)   (YY_END_OF_BUFFER + state + 1)
 
#define YY_NEW_FILE   yyrestart(yyin )
 
#define YY_END_OF_BUFFER_CHAR   0
 
#define YY_BUF_SIZE   16384
 
#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))
 
#define YY_TYPEDEF_YY_BUFFER_STATE
 
#define YY_TYPEDEF_YY_SIZE_T
 
#define EOB_ACT_CONTINUE_SCAN   0
 
#define EOB_ACT_END_OF_FILE   1
 
#define EOB_ACT_LAST_MATCH   2
 
#define YY_LESS_LINENO(n)
 
#define yyless(n)
 
#define unput(c)   yyunput( c, (yytext_ptr) )
 
#define YY_STRUCT_YY_BUFFER_STATE
 
#define YY_BUFFER_NEW   0
 
#define YY_BUFFER_NORMAL   1
 
#define YY_BUFFER_EOF_PENDING   2
 
#define YY_CURRENT_BUFFER
 
#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
 
#define YY_FLUSH_BUFFER   yy_flush_buffer(YY_CURRENT_BUFFER )
 
#define yy_new_buffer   yy_create_buffer
 
#define yy_set_interactive(is_interactive)
 
#define yy_set_bol(at_bol)
 
#define YY_AT_BOL()   (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)
 
#define yytext_ptr   yytext
 
#define YY_DO_BEFORE_ACTION
 
#define YY_NUM_RULES   143
 
#define YY_END_OF_BUFFER   144
 
#define REJECT   reject_used_but_not_detected
 
#define yymore()   yymore_used_but_not_detected
 
#define YY_MORE_ADJ   0
 
#define YY_RESTORE_YY_MORE_OFFSET
 
#define INITIAL   0
 
#define comment   1
 
#define doc   2
 
#define lst   3
 
#define YY_EXTRA_TYPE   void *
 
#define YY_READ_BUF_SIZE   8192
 
#define ECHO   do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
 
#define YY_INPUT(buf, result, max_size)
 
#define yyterminate()   return YY_NULL
 
#define YY_START_STACK_INCR   25
 
#define YY_FATAL_ERROR(msg)   yy_fatal_error( msg )
 
#define YY_DECL_IS_OURS   1
 
#define YY_DECL   int yylex (void)
 
#define YY_USER_ACTION
 
#define YY_BREAK   break;
 
#define YY_RULE_SETUP   YY_USER_ACTION
 
#define YY_EXIT_FAILURE   2
 
#define yyless(n)
 
#define YYTABLES_NAME   "yytables"
 

Typedefs

typedef signed char flex_int8_t
 
typedef short int flex_int16_t
 
typedef int flex_int32_t
 
typedef unsigned char flex_uint8_t
 
typedef unsigned short int flex_uint16_t
 
typedef unsigned int flex_uint32_t
 
typedef struct yy_buffer_stateYY_BUFFER_STATE
 
typedef size_t yy_size_t
 
typedef unsigned char YY_CHAR
 
typedef int yy_state_type
 

Functions

void yyrestart (FILE *input_file)
 Immediately switch to a different input stream. More...
 
void yy_switch_to_buffer (YY_BUFFER_STATE new_buffer)
 Switch to a different input buffer. More...
 
YY_BUFFER_STATE yy_create_buffer (FILE *file, int size)
 Allocate and initialize an input buffer state. More...
 
void yy_delete_buffer (YY_BUFFER_STATE b)
 Destroy the buffer. More...
 
void yy_flush_buffer (YY_BUFFER_STATE b)
 Discard all buffered characters. More...
 
void yypush_buffer_state (YY_BUFFER_STATE new_buffer)
 Pushes the new state onto the stack. More...
 
void yypop_buffer_state (void)
 Removes and deletes the top of the stack, if present. More...
 
static void yyensure_buffer_stack (void)
 
static void yy_load_buffer_state (void)
 
static void yy_init_buffer (YY_BUFFER_STATE b, FILE *file)
 
YY_BUFFER_STATE yy_scan_buffer (char *base, yy_size_t size)
 Setup the input buffer state to scan directly from a user-specified character buffer. More...
 
YY_BUFFER_STATE yy_scan_string (yyconst char *yystr)
 Setup the input buffer state to scan a string. More...
 
YY_BUFFER_STATE yy_scan_bytes (yyconst char *yybytes, yy_size_t _yybytes_len)
 Setup the input buffer state to scan the given bytes. More...
 
void * yyalloc (yy_size_t)
 
void * yyrealloc (void *, yy_size_t)
 
void yyfree (void *)
 
static yy_state_type yy_get_previous_state (void)
 
static yy_state_type yy_try_NUL_trans (yy_state_type current_state)
 
static int yy_get_next_buffer (void)
 
static void yy_fatal_error (yyconst char msg[])
 
static int yy_init_globals (void)
 
int yylex_destroy (void)
 
int yyget_debug (void)
 
void yyset_debug (int debug_flag)
 
YY_EXTRA_TYPE yyget_extra (void)
 
void yyset_extra (YY_EXTRA_TYPE user_defined)
 
FILE * yyget_in (void)
 Get the input stream. More...
 
void yyset_in (FILE *in_str)
 Set the input stream. More...
 
FILE * yyget_out (void)
 Get the output stream. More...
 
void yyset_out (FILE *out_str)
 
yy_size_t yyget_leng (void)
 Get the length of the current token. More...
 
char * yyget_text (void)
 Get the current token. More...
 
int yyget_lineno (void)
 Get the current line number. More...
 
void yyset_lineno (int line_number)
 Set the current line number. More...
 
int yywrap (void)
 
static void yyunput (int c, char *buf_ptr)
 
static int input (void)
 
int yylex (void)
 
 if (!(yy_init))
 
 while (1)
 
static void yyunput (int c, register char *yy_bp)
 
static void yy_fatal_error (yyconst char *msg)
 

Variables

yy_size_t yyleng
 
FILE * yyin = (FILE *) 0
 
FILE * yyout = (FILE *) 0
 
static size_t yy_buffer_stack_top = 0
 index of top of stack. More...
 
static size_t yy_buffer_stack_max = 0
 capacity of stack. More...
 
static YY_BUFFER_STATEyy_buffer_stack = 0
 Stack as an array. More...
 
static char yy_hold_char
 
static yy_size_t yy_n_chars
 
static char * yy_c_buf_p = (char *) 0
 
static int yy_init = 0
 
static int yy_start = 0
 
static int yy_did_buffer_switch_on_eof
 
int yylineno = 1
 
char * yytext
 
static yyconst flex_int16_t yy_accept [482]
 
static yyconst flex_int32_t yy_ec [256]
 
static yyconst flex_int32_t yy_meta [64]
 
static yyconst flex_int16_t yy_base [494]
 
static yyconst flex_int16_t yy_def [494]
 
static yyconst flex_int16_t yy_nxt [693]
 
static yyconst flex_int16_t yy_chk [693]
 
static yyconst flex_int32_t yy_rule_can_match_eol [144]
 
static yy_state_type yy_last_accepting_state
 
static char * yy_last_accepting_cpos
 
int yy_flex_debug = 0
 
 YY_DECL
 The main scanner function which does all the work. More...
 
register char * yy_cp
 
register char * yy_bp
 
register int yy_act
 

Macro Definition Documentation

#define BEGIN   (yy_start) = 1 + 2 *

Definition at line 126 of file faustlexer.cpp.

Referenced by while().

#define comment   1

Definition at line 805 of file faustlexer.cpp.

Referenced by while().

#define doc   2

Definition at line 806 of file faustlexer.cpp.

Referenced by collectDocEqns(), printdoccontent(), and while().

#define ECHO   do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)

Definition at line 894 of file faustlexer.cpp.

Referenced by while().

#define EOB_ACT_CONTINUE_SCAN   0

Definition at line 166 of file faustlexer.cpp.

Referenced by input(), while(), and yy_get_next_buffer().

#define EOB_ACT_END_OF_FILE   1

Definition at line 167 of file faustlexer.cpp.

Referenced by input(), while(), and yy_get_next_buffer().

#define EOB_ACT_LAST_MATCH   2

Definition at line 168 of file faustlexer.cpp.

Referenced by input(), while(), and yy_get_next_buffer().

#define FLEX_BETA

Definition at line 14 of file faustlexer.cpp.

#define FLEX_SCANNER

Definition at line 9 of file faustlexer.cpp.

#define FLEXINT_H

Definition at line 30 of file faustlexer.cpp.

#define INITIAL   0

Definition at line 804 of file faustlexer.cpp.

Referenced by while().

#define INT16_MAX   (32767)

Definition at line 72 of file faustlexer.cpp.

#define INT16_MIN   (-32767-1)

Definition at line 63 of file faustlexer.cpp.

#define INT32_MAX   (2147483647)

Definition at line 75 of file faustlexer.cpp.

#define INT32_MIN   (-2147483647-1)

Definition at line 66 of file faustlexer.cpp.

#define INT8_MAX   (127)

Definition at line 69 of file faustlexer.cpp.

#define INT8_MIN   (-128)

Definition at line 60 of file faustlexer.cpp.

#define lst   3

Definition at line 807 of file faustlexer.cpp.

Referenced by while().

#define REJECT   reject_used_but_not_detected

Definition at line 787 of file faustlexer.cpp.

#define UINT16_MAX   (65535U)

Definition at line 81 of file faustlexer.cpp.

#define UINT32_MAX   (4294967295U)

Definition at line 84 of file faustlexer.cpp.

#define UINT8_MAX   (255U)

Definition at line 78 of file faustlexer.cpp.

#define unput (   c)    yyunput( c, (yytext_ptr) )

Definition at line 199 of file faustlexer.cpp.

#define YY_AT_BOL ( )    (YY_CURRENT_BUFFER_LVALUE->yy_at_bol)

Definition at line 345 of file faustlexer.cpp.

#define YY_BREAK   break;

Definition at line 973 of file faustlexer.cpp.

Referenced by while().

#define YY_BUF_SIZE   16384

Definition at line 145 of file faustlexer.cpp.

Referenced by if(), and yyrestart().

#define YY_BUFFER_EOF_PENDING   2

Definition at line 261 of file faustlexer.cpp.

Referenced by yy_get_next_buffer().

#define YY_BUFFER_NEW   0

Definition at line 249 of file faustlexer.cpp.

Referenced by while(), yy_flush_buffer(), and yy_scan_buffer().

#define YY_BUFFER_NORMAL   1

Definition at line 250 of file faustlexer.cpp.

Referenced by while().

#define YY_CURRENT_BUFFER
Value:
: NULL)
static size_t yy_buffer_stack_top
index of top of stack.
Definition: faustlexer.cpp:267
static YY_BUFFER_STATE * yy_buffer_stack
Stack as an array.
Definition: faustlexer.cpp:269

Definition at line 277 of file faustlexer.cpp.

Referenced by if(), yy_delete_buffer(), yy_flush_buffer(), yy_init_buffer(), yy_switch_to_buffer(), yylex_destroy(), yypop_buffer_state(), yypush_buffer_state(), and yyrestart().

#define YY_CURRENT_BUFFER_LVALUE   (yy_buffer_stack)[(yy_buffer_stack_top)]
#define YY_DECL   int yylex (void)

Definition at line 961 of file faustlexer.cpp.

#define YY_DECL_IS_OURS   1

Definition at line 957 of file faustlexer.cpp.

#define YY_DO_BEFORE_ACTION
Value:
yyleng = (size_t) (yy_cp - yy_bp); \
*yy_cp = '\0'; \
register char * yy_bp
Definition: faustlexer.cpp:984
register char * yy_cp
Definition: faustlexer.cpp:984
#define yytext_ptr
Definition: faustlexer.cpp:360
static char * yy_c_buf_p
Definition: faustlexer.cpp:292
yy_size_t yyleng
Definition: faustlexer.cpp:289
static char yy_hold_char
Definition: faustlexer.cpp:287

Definition at line 370 of file faustlexer.cpp.

Referenced by while().

#define YY_END_OF_BUFFER   144

Definition at line 378 of file faustlexer.cpp.

Referenced by while().

#define YY_END_OF_BUFFER_CHAR   0
#define YY_EXIT_FAILURE   2

Definition at line 2608 of file faustlexer.cpp.

Referenced by yy_fatal_error().

#define YY_EXTRA_TYPE   void *

Definition at line 818 of file faustlexer.cpp.

#define YY_FATAL_ERROR (   msg)    yy_fatal_error( msg )
#define YY_FLEX_MAJOR_VERSION   2

Definition at line 10 of file faustlexer.cpp.

#define YY_FLEX_MINOR_VERSION   5

Definition at line 11 of file faustlexer.cpp.

#define YY_FLEX_SUBMINOR_VERSION   37

Definition at line 12 of file faustlexer.cpp.

#define YY_FLUSH_BUFFER   yy_flush_buffer(YY_CURRENT_BUFFER )

Definition at line 313 of file faustlexer.cpp.

#define YY_INPUT (   buf,
  result,
  max_size 
)
Value:
if ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \
{ \
int c = '*'; \
size_t n; \
for ( n = 0; n < max_size && \
(c = getc( yyin )) != EOF && c != '\n'; ++n ) \
buf[n] = (char) c; \
if ( c == '\n' ) \
buf[n++] = (char) c; \
if ( c == EOF && ferror( yyin ) ) \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
result = n; \
} \
else \
{ \
errno=0; \
while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
{ \
if( errno != EINTR) \
{ \
YY_FATAL_ERROR( "input in flex scanner failed" ); \
break; \
} \
errno=0; \
clearerr(yyin); \
} \
}\
\
static int input(void)
for(;yybottom<=yytop;yybottom++)
while(1)
#define YY_CURRENT_BUFFER_LVALUE
Definition: faustlexer.cpp:284
#define YY_FATAL_ERROR(msg)
Definition: faustlexer.cpp:948
if(!(yy_init))
Definition: faustlexer.cpp:993
FILE * yyin
Definition: faustlexer.cpp:351

Definition at line 901 of file faustlexer.cpp.

Referenced by yy_get_next_buffer().

#define YY_INT_ALIGNED   short int

Definition at line 5 of file faustlexer.cpp.

#define YY_LESS_LINENO (   n)
Value:
do { \
int yyl;\
for ( yyl = n; yyl < yyleng; ++yyl )\
if ( yytext[yyl] == '\n' )\
}while(0)
for(;yybottom<=yytop;yybottom++)
int yylineno
Definition: faustlexer.cpp:357
yy_size_t yyleng
Definition: faustlexer.cpp:289
char * yytext
Definition: faustlexer.cpp:791

Definition at line 177 of file faustlexer.cpp.

#define YY_MORE_ADJ   0

Definition at line 789 of file faustlexer.cpp.

Referenced by while(), yy_get_next_buffer(), and yy_get_previous_state().

#define yy_new_buffer   yy_create_buffer

Definition at line 323 of file faustlexer.cpp.

#define YY_NEW_FILE   yyrestart(yyin )

Definition at line 139 of file faustlexer.cpp.

Referenced by input(), and while().

#define YY_NULL   0

Definition at line 113 of file faustlexer.cpp.

#define YY_NUM_RULES   143

Definition at line 377 of file faustlexer.cpp.

#define YY_READ_BUF_SIZE   8192

Definition at line 886 of file faustlexer.cpp.

Referenced by yy_get_next_buffer().

#define YY_RESTORE_YY_MORE_OFFSET

Definition at line 790 of file faustlexer.cpp.

Referenced by while().

#define YY_RULE_SETUP   YY_USER_ACTION

Definition at line 976 of file faustlexer.cpp.

Referenced by while().

#define YY_SC_TO_UI (   c)    ((unsigned int) (unsigned char) c)

Definition at line 120 of file faustlexer.cpp.

Referenced by while(), and yy_get_previous_state().

#define yy_set_bol (   at_bol)
Value:
{ \
} \
YY_CURRENT_BUFFER_LVALUE->yy_at_bol = at_bol; \
}
static void yyensure_buffer_stack(void)
YY_BUFFER_STATE yy_create_buffer(FILE *file, int size)
Allocate and initialize an input buffer state.
#define YY_CURRENT_BUFFER_LVALUE
Definition: faustlexer.cpp:284
#define YY_CURRENT_BUFFER
Definition: faustlexer.cpp:277
#define YY_BUF_SIZE
Definition: faustlexer.cpp:145
if(!(yy_init))
Definition: faustlexer.cpp:993
FILE * yyin
Definition: faustlexer.cpp:351

Definition at line 335 of file faustlexer.cpp.

#define yy_set_interactive (   is_interactive)
Value:
{ \
} \
YY_CURRENT_BUFFER_LVALUE->yy_is_interactive = is_interactive; \
}
static void yyensure_buffer_stack(void)
YY_BUFFER_STATE yy_create_buffer(FILE *file, int size)
Allocate and initialize an input buffer state.
#define YY_CURRENT_BUFFER_LVALUE
Definition: faustlexer.cpp:284
#define YY_CURRENT_BUFFER
Definition: faustlexer.cpp:277
#define YY_BUF_SIZE
Definition: faustlexer.cpp:145
if(!(yy_init))
Definition: faustlexer.cpp:993
FILE * yyin
Definition: faustlexer.cpp:351

Definition at line 325 of file faustlexer.cpp.

#define YY_START   (((yy_start) - 1) / 2)

Definition at line 132 of file faustlexer.cpp.

Referenced by while().

#define YY_START_STACK_INCR   25

Definition at line 943 of file faustlexer.cpp.

#define YY_STATE_BUF_SIZE   ((YY_BUF_SIZE + 2) * sizeof(yy_state_type))

Definition at line 150 of file faustlexer.cpp.

#define YY_STATE_EOF (   state)    (YY_END_OF_BUFFER + state + 1)

Definition at line 136 of file faustlexer.cpp.

Referenced by while().

#define YY_STRUCT_YY_BUFFER_STATE

Definition at line 202 of file faustlexer.cpp.

#define YY_TYPEDEF_YY_BUFFER_STATE

Definition at line 153 of file faustlexer.cpp.

#define YY_TYPEDEF_YY_SIZE_T

Definition at line 158 of file faustlexer.cpp.

#define YY_USER_ACTION

Definition at line 968 of file faustlexer.cpp.

#define yyconst

Definition at line 109 of file faustlexer.cpp.

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up yytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
(yy_c_buf_p) = yy_cp = yy_bp + yyless_macro_arg - YY_MORE_ADJ; \
YY_DO_BEFORE_ACTION; /* set up yytext again */ \
} \
while ( 0 )
while(1)
register char * yy_bp
Definition: faustlexer.cpp:984
register char * yy_cp
Definition: faustlexer.cpp:984
#define YY_MORE_ADJ
Definition: faustlexer.cpp:789
static char * yy_c_buf_p
Definition: faustlexer.cpp:292
#define YY_RESTORE_YY_MORE_OFFSET
Definition: faustlexer.cpp:790
static char yy_hold_char
Definition: faustlexer.cpp:287
#define YY_LESS_LINENO(n)
Definition: faustlexer.cpp:177
#define YY_DO_BEFORE_ACTION
Definition: faustlexer.cpp:370

Definition at line 2620 of file faustlexer.cpp.

#define yyless (   n)
Value:
do \
{ \
/* Undo effects of setting up yytext. */ \
int yyless_macro_arg = (n); \
YY_LESS_LINENO(yyless_macro_arg);\
(yy_c_buf_p) = yytext + yyless_macro_arg; \
*(yy_c_buf_p) = '\0'; \
yyleng = yyless_macro_arg; \
} \
while ( 0 )
while(1)
static char * yy_c_buf_p
Definition: faustlexer.cpp:292
yy_size_t yyleng
Definition: faustlexer.cpp:289
char * yytext
Definition: faustlexer.cpp:791
static char yy_hold_char
Definition: faustlexer.cpp:287
#define YY_LESS_LINENO(n)
Definition: faustlexer.cpp:177

Definition at line 2620 of file faustlexer.cpp.

#define yymore ( )    yymore_used_but_not_detected

Definition at line 788 of file faustlexer.cpp.

#define YYSTATE   YY_START

Definition at line 133 of file faustlexer.cpp.

#define YYTABLES_NAME   "yytables"

Definition at line 2813 of file faustlexer.cpp.

#define yyterminate ( )    return YY_NULL

Definition at line 938 of file faustlexer.cpp.

Referenced by while().

#define yytext_ptr   yytext

Typedef Documentation

typedef short int flex_int16_t

Definition at line 52 of file faustlexer.cpp.

typedef int flex_int32_t

Definition at line 53 of file faustlexer.cpp.

typedef signed char flex_int8_t

Definition at line 51 of file faustlexer.cpp.

typedef unsigned short int flex_uint16_t

Definition at line 55 of file faustlexer.cpp.

typedef unsigned int flex_uint32_t

Definition at line 56 of file faustlexer.cpp.

typedef unsigned char flex_uint8_t

Definition at line 54 of file faustlexer.cpp.

Definition at line 154 of file faustlexer.cpp.

typedef unsigned char YY_CHAR

Definition at line 349 of file faustlexer.cpp.

typedef size_t yy_size_t

Definition at line 159 of file faustlexer.cpp.

typedef int yy_state_type

Definition at line 353 of file faustlexer.cpp.

Function Documentation

if ( yy_init)

Definition at line 993 of file faustlexer.cpp.

References YY_BUF_SIZE, yy_create_buffer(), YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_init, yy_load_buffer_state(), yy_start, yyensure_buffer_stack(), yyin, and yyout.

Referenced by yyunput().

994  {
995  (yy_init) = 1;
996 
997 #ifdef YY_USER_INIT
998  YY_USER_INIT;
999 #endif
1000 
1001  if ( ! (yy_start) )
1002  (yy_start) = 1; /* first start state */
1003 
1004  if ( ! yyin )
1005  yyin = stdin;
1006 
1007  if ( ! yyout )
1008  yyout = stdout;
1009 
1010  if ( ! YY_CURRENT_BUFFER ) {
1014  }
1015 
1017  }
static void yyensure_buffer_stack(void)
YY_BUFFER_STATE yy_create_buffer(FILE *file, int size)
Allocate and initialize an input buffer state.
#define YY_CURRENT_BUFFER_LVALUE
Definition: faustlexer.cpp:284
#define YY_CURRENT_BUFFER
Definition: faustlexer.cpp:277
#define YY_BUF_SIZE
Definition: faustlexer.cpp:145
static void yy_load_buffer_state(void)
static int yy_start
Definition: faustlexer.cpp:294
FILE * yyout
Definition: faustlexer.cpp:351
static int yy_init
Definition: faustlexer.cpp:293
FILE * yyin
Definition: faustlexer.cpp:351

Here is the call graph for this function:

Here is the caller graph for this function:

static int input ( void  )
static

Definition at line 2183 of file faustlexer.cpp.

References EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, YY_END_OF_BUFFER_CHAR, yy_get_next_buffer(), yy_hold_char, yy_n_chars, YY_NEW_FILE, yyin, yyrestart(), yytext_ptr, and yywrap().

2186 {
2187  int c;
2188 
2189  *(yy_c_buf_p) = (yy_hold_char);
2190 
2191  if ( *(yy_c_buf_p) == YY_END_OF_BUFFER_CHAR )
2192  {
2193  /* yy_c_buf_p now points to the character we want to return.
2194  * If this occurs *before* the EOB characters, then it's a
2195  * valid NUL; if not, then we've hit the end of the buffer.
2196  */
2197  if ( (yy_c_buf_p) < &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
2198  /* This was really a NUL. */
2199  *(yy_c_buf_p) = '\0';
2200 
2201  else
2202  { /* need more input */
2203  yy_size_t offset = (yy_c_buf_p) - (yytext_ptr);
2204  ++(yy_c_buf_p);
2205 
2206  switch ( yy_get_next_buffer( ) )
2207  {
2208  case EOB_ACT_LAST_MATCH:
2209  /* This happens because yy_g_n_b()
2210  * sees that we've accumulated a
2211  * token and flags that we need to
2212  * try matching the token before
2213  * proceeding. But for input(),
2214  * there's no matching to consider.
2215  * So convert the EOB_ACT_LAST_MATCH
2216  * to EOB_ACT_END_OF_FILE.
2217  */
2218 
2219  /* Reset buffer status. */
2220  yyrestart(yyin );
2221 
2222  /*FALLTHROUGH*/
2223 
2224  case EOB_ACT_END_OF_FILE:
2225  {
2226  if ( yywrap( ) )
2227  return EOF;
2228 
2229  if ( ! (yy_did_buffer_switch_on_eof) )
2230  YY_NEW_FILE;
2231 #ifdef __cplusplus
2232  return yyinput();
2233 #else
2234  return input();
2235 #endif
2236  }
2237 
2238  case EOB_ACT_CONTINUE_SCAN:
2239  (yy_c_buf_p) = (yytext_ptr) + offset;
2240  break;
2241  }
2242  }
2243  }
2244 
2245  c = *(unsigned char *) (yy_c_buf_p); /* cast for 8-bit char's */
2246  *(yy_c_buf_p) = '\0'; /* preserve yytext */
2247  (yy_hold_char) = *++(yy_c_buf_p);
2248 
2249  if ( c == '\n' )
2250 
2251  yylineno++;
2252 ;
2253 
2254  return c;
2255 }
static int input(void)
int yylineno
Definition: faustlexer.cpp:357
static yy_size_t yy_n_chars
Definition: faustlexer.cpp:288
#define EOB_ACT_END_OF_FILE
Definition: faustlexer.cpp:167
#define yytext_ptr
Definition: faustlexer.cpp:360
#define YY_END_OF_BUFFER_CHAR
Definition: faustlexer.cpp:141
#define YY_CURRENT_BUFFER_LVALUE
Definition: faustlexer.cpp:284
#define YY_NEW_FILE
Definition: faustlexer.cpp:139
static char * yy_c_buf_p
Definition: faustlexer.cpp:292
void yyrestart(FILE *input_file)
Immediately switch to a different input stream.
static char yy_hold_char
Definition: faustlexer.cpp:287
#define EOB_ACT_LAST_MATCH
Definition: faustlexer.cpp:168
size_t yy_size_t
Definition: faustlexer.cpp:159
static int yy_get_next_buffer(void)
#define EOB_ACT_CONTINUE_SCAN
Definition: faustlexer.cpp:166
int yywrap(void)
static int yy_did_buffer_switch_on_eof
Definition: faustlexer.cpp:299
FILE * yyin
Definition: faustlexer.cpp:351

Here is the call graph for this function:

while ( )

Definition at line 1019 of file faustlexer.cpp.

References ABS, ACOS, ADD, AND, ARROW, ASIN, ATAN, ATAN2, ATTACH, BDGM, BDOC, BEGIN, BEQN, BLST, BMETADATA, BUTTON, CASE, CEIL, CHECKBOX, comment, COMPONENT, COS, CUT, DECLARE, DEF, DELAY1, DIV, doc, DOCCHAR, DOT, ECHO, EDGM, EDOC, EEQN, ELST, EMETADATA, ENDDEF, ENVIRONMENT, EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, EQ, EXP, EXTRA, FCONSTANT, FDELAY, FFUNCTION, FLOAT, FLOATCAST, FLOOR, FMOD, FSTRING, FVARIABLE, GE, GT, HBARGRAPH, HGROUP, HSLIDER, IDENT, IMPORT, INITIAL, INPUTS, INT, INTCAST, IPAR, IPROD, ISEQ, ISUM, LAMBDA, LBRAQ, LCROC, LE, LIBRARY, LOG, LOG10, LPAR, LSH, lst, LSTDEPENDENCIES, LSTDISTRIBUTED, LSTEQ, LSTFALSE, LSTMDOCTAGS, LSTQ, LSTTRUE, LT, MAX, MEM, MIN, MIX, MOD, MUL, NE, NENTRY, NOTICE, OR, OUTPUTS, PAR, POWFUN, POWOP, PREFIX, RBRAQ, RCROC, RDTBL, REC, REMAINDER, RINT, RPAR, RSH, RWTBL, SELECT2, SELECT3, SEQ, SIN, SPLIT, SQRT, STRING, SUB, TAN, TGROUP, VBARGRAPH, VGROUP, VSLIDER, WAVEFORM, WIRE, WITH, XOR, YY_BREAK, YY_BUFFER_NEW, YY_BUFFER_NORMAL, yy_c_buf_p, yy_cp, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, YY_DO_BEFORE_ACTION, YY_END_OF_BUFFER, YY_FATAL_ERROR, yy_get_next_buffer(), yy_get_previous_state(), yy_hold_char, yy_last_accepting_cpos, yy_last_accepting_state, YY_MORE_ADJ, yy_n_chars, YY_NEW_FILE, YY_RESTORE_YY_MORE_OFFSET, YY_RULE_SETUP, YY_SC_TO_UI, YY_START, yy_start, YY_STATE_EOF, yy_try_NUL_trans(), yyin, yyleng, yyterminate, yytext_ptr, and yywrap().

1020  {
1021  yy_cp = (yy_c_buf_p);
1022 
1023  /* Support of yytext. */
1024  *yy_cp = (yy_hold_char);
1025 
1026  /* yy_bp points to the position in yy_ch_buf of the start of
1027  * the current run.
1028  */
1029  yy_bp = yy_cp;
1030 
1031  yy_current_state = (yy_start);
1032 yy_match:
1033  do
1034  {
1035  register YY_CHAR yy_c = yy_ec[YY_SC_TO_UI(*yy_cp)];
1036  if ( yy_accept[yy_current_state] )
1037  {
1038  (yy_last_accepting_state) = yy_current_state;
1040  }
1041  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
1042  {
1043  yy_current_state = (int) yy_def[yy_current_state];
1044  if ( yy_current_state >= 482 )
1045  yy_c = yy_meta[(unsigned int) yy_c];
1046  }
1047  yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
1048  ++yy_cp;
1049  }
1050  while ( yy_base[yy_current_state] != 629 );
1051 
1052 yy_find_action:
1053  yy_act = yy_accept[yy_current_state];
1054  if ( yy_act == 0 )
1055  { /* have to back up */
1057  yy_current_state = (yy_last_accepting_state);
1058  yy_act = yy_accept[yy_current_state];
1059  }
1060 
1062 
1064  {
1065  int yyl;
1066  for ( yyl = 0; yyl < yyleng; ++yyl )
1067  if ( yytext[yyl] == '\n' )
1068 
1069  yylineno++;
1070 ;
1071  }
1072 
1073 do_action: /* This label is used only to access EOF actions. */
1074 
1075  switch ( yy_act )
1076  { /* beginning of action switch */
1077  case 0: /* must back up */
1078  /* undo the effects of YY_DO_BEFORE_ACTION */
1079  *yy_cp = (yy_hold_char);
1081  yy_current_state = (yy_last_accepting_state);
1082  goto yy_find_action;
1083 
1084 case 1:
1086 #line 27 "parser/faustlexer.l"
1087 BEGIN(comment);
1088  YY_BREAK
1089 case 2:
1091 #line 28 "parser/faustlexer.l"
1092 /* eat anything that's not a '*' */
1093  YY_BREAK
1094 case 3:
1096 #line 29 "parser/faustlexer.l"
1097 /* eat up '*'s not followed by '/'s */
1098  YY_BREAK
1099 case 4:
1100 /* rule 4 can match eol */
1102 #line 30 "parser/faustlexer.l"
1103 /* no need to increment yylineno here */
1104  YY_BREAK
1105 case 5:
1106 /* rule 5 can match eol */
1108 #line 31 "parser/faustlexer.l"
1109 /* no need to increment yylineno here */
1110  YY_BREAK
1111 case 6:
1113 #line 32 "parser/faustlexer.l"
1114 /* no need to increment yylineno here */
1115  YY_BREAK
1116 case 7:
1118 #line 33 "parser/faustlexer.l"
1119 BEGIN(INITIAL);
1120  YY_BREAK
1121 case 8:
1123 #line 35 "parser/faustlexer.l"
1124 { BEGIN(doc); return BDOC; }
1125  YY_BREAK
1126 case 9:
1128 #line 36 "parser/faustlexer.l"
1129 return DOCCHAR; /* char by char, may be slow ?? */
1130  YY_BREAK
1131 case 10:
1132 /* rule 10 can match eol */
1134 #line 37 "parser/faustlexer.l"
1135 return DOCCHAR; /* keep newline chars */
1136  YY_BREAK
1137 case 11:
1139 #line 38 "parser/faustlexer.l"
1140 return NOTICE; /* autoclosing tag */
1141  YY_BREAK
1142 case 12:
1144 #line 39 "parser/faustlexer.l"
1145 return NOTICE; /* autoclosing tag */
1146  YY_BREAK
1147 case 13:
1149 #line 40 "parser/faustlexer.l"
1150 { BEGIN(lst); return BLST; } /* autoclosing tag */
1151  YY_BREAK
1152 case 14:
1154 #line 41 "parser/faustlexer.l"
1155 { BEGIN(INITIAL); return BEQN; }
1156  YY_BREAK
1157 case 15:
1159 #line 42 "parser/faustlexer.l"
1160 { BEGIN(doc); return EEQN; }
1161  YY_BREAK
1162 case 16:
1164 #line 43 "parser/faustlexer.l"
1165 { BEGIN(INITIAL); return BDGM; }
1166  YY_BREAK
1167 case 17:
1169 #line 44 "parser/faustlexer.l"
1170 { BEGIN(doc); return EDGM; }
1171  YY_BREAK
1172 case 18:
1174 #line 45 "parser/faustlexer.l"
1175 { BEGIN(INITIAL); return BMETADATA; }
1176  YY_BREAK
1177 case 19:
1179 #line 46 "parser/faustlexer.l"
1180 { BEGIN(doc); return EMETADATA; }
1181  YY_BREAK
1182 case 20:
1184 #line 47 "parser/faustlexer.l"
1185 { BEGIN(INITIAL); return EDOC; }
1186  YY_BREAK
1187 case 21:
1189 #line 49 "parser/faustlexer.l"
1190 return LSTTRUE;
1191  YY_BREAK
1192 case 22:
1194 #line 50 "parser/faustlexer.l"
1195 return LSTFALSE;
1196  YY_BREAK
1197 case 23:
1199 #line 51 "parser/faustlexer.l"
1200 return LSTDEPENDENCIES;
1201  YY_BREAK
1202 case 24:
1204 #line 52 "parser/faustlexer.l"
1205 return LSTMDOCTAGS;
1206  YY_BREAK
1207 case 25:
1209 #line 53 "parser/faustlexer.l"
1210 return LSTDISTRIBUTED;
1211  YY_BREAK
1212 case 26:
1214 #line 54 "parser/faustlexer.l"
1215 return LSTEQ;
1216  YY_BREAK
1217 case 27:
1219 #line 55 "parser/faustlexer.l"
1220 return LSTQ;
1221  YY_BREAK
1222 case 28:
1224 #line 56 "parser/faustlexer.l"
1225 { BEGIN(doc); return ELST; }
1226  YY_BREAK
1227 case 29:
1229 #line 59 "parser/faustlexer.l"
1230 return INT;
1231  YY_BREAK
1232 case 30:
1234 #line 61 "parser/faustlexer.l"
1235 return FLOAT;
1236  YY_BREAK
1237 case 31:
1239 #line 62 "parser/faustlexer.l"
1240 return FLOAT;
1241  YY_BREAK
1242 case 32:
1244 #line 63 "parser/faustlexer.l"
1245 return FLOAT;
1246  YY_BREAK
1247 case 33:
1249 #line 64 "parser/faustlexer.l"
1250 return FLOAT;
1251  YY_BREAK
1252 case 34:
1254 #line 65 "parser/faustlexer.l"
1255 return FLOAT;
1256  YY_BREAK
1257 case 35:
1259 #line 66 "parser/faustlexer.l"
1260 return FLOAT;
1261  YY_BREAK
1262 case 36:
1264 #line 67 "parser/faustlexer.l"
1265 return FLOAT;
1266  YY_BREAK
1267 case 37:
1269 #line 68 "parser/faustlexer.l"
1270 return FLOAT;
1271  YY_BREAK
1272 case 38:
1274 #line 69 "parser/faustlexer.l"
1275 return FLOAT;
1276  YY_BREAK
1277 case 39:
1279 #line 70 "parser/faustlexer.l"
1280 return FLOAT;
1281  YY_BREAK
1282 case 40:
1284 #line 71 "parser/faustlexer.l"
1285 return FLOAT;
1286  YY_BREAK
1287 case 41:
1289 #line 73 "parser/faustlexer.l"
1290 return SEQ;
1291  YY_BREAK
1292 case 42:
1294 #line 74 "parser/faustlexer.l"
1295 return PAR;
1296  YY_BREAK
1297 case 43:
1299 #line 75 "parser/faustlexer.l"
1300 return SPLIT;
1301  YY_BREAK
1302 case 44:
1304 #line 76 "parser/faustlexer.l"
1305 return MIX;
1306  YY_BREAK
1307 case 45:
1309 #line 77 "parser/faustlexer.l"
1310 return MIX;
1311  YY_BREAK
1312 case 46:
1314 #line 78 "parser/faustlexer.l"
1315 return REC;
1316  YY_BREAK
1317 case 47:
1319 #line 80 "parser/faustlexer.l"
1320 return ADD;
1321  YY_BREAK
1322 case 48:
1324 #line 81 "parser/faustlexer.l"
1325 return SUB;
1326  YY_BREAK
1327 case 49:
1329 #line 82 "parser/faustlexer.l"
1330 return MUL;
1331  YY_BREAK
1332 case 50:
1334 #line 83 "parser/faustlexer.l"
1335 return DIV;
1336  YY_BREAK
1337 case 51:
1339 #line 84 "parser/faustlexer.l"
1340 return MOD;
1341  YY_BREAK
1342 case 52:
1344 #line 85 "parser/faustlexer.l"
1345 return FDELAY;
1346  YY_BREAK
1347 case 53:
1349 #line 86 "parser/faustlexer.l"
1350 return DELAY1;
1351  YY_BREAK
1352 case 54:
1354 #line 88 "parser/faustlexer.l"
1355 return AND;
1356  YY_BREAK
1357 case 55:
1359 #line 89 "parser/faustlexer.l"
1360 return OR;
1361  YY_BREAK
1362 case 56:
1364 #line 90 "parser/faustlexer.l"
1365 return XOR;
1366  YY_BREAK
1367 case 57:
1369 #line 92 "parser/faustlexer.l"
1370 return LSH;
1371  YY_BREAK
1372 case 58:
1374 #line 93 "parser/faustlexer.l"
1375 return RSH;
1376  YY_BREAK
1377 case 59:
1379 #line 95 "parser/faustlexer.l"
1380 return LT;
1381  YY_BREAK
1382 case 60:
1384 #line 96 "parser/faustlexer.l"
1385 return LE;
1386  YY_BREAK
1387 case 61:
1389 #line 97 "parser/faustlexer.l"
1390 return GT;
1391  YY_BREAK
1392 case 62:
1394 #line 98 "parser/faustlexer.l"
1395 return GE;
1396  YY_BREAK
1397 case 63:
1399 #line 99 "parser/faustlexer.l"
1400 return EQ;
1401  YY_BREAK
1402 case 64:
1404 #line 100 "parser/faustlexer.l"
1405 return NE;
1406  YY_BREAK
1407 case 65:
1409 #line 102 "parser/faustlexer.l"
1410 return WIRE;
1411  YY_BREAK
1412 case 66:
1414 #line 103 "parser/faustlexer.l"
1415 return CUT;
1416  YY_BREAK
1417 case 67:
1419 #line 105 "parser/faustlexer.l"
1420 return ENDDEF;
1421  YY_BREAK
1422 case 68:
1424 #line 106 "parser/faustlexer.l"
1425 return DEF;
1426  YY_BREAK
1427 case 69:
1429 #line 107 "parser/faustlexer.l"
1430 return LPAR;
1431  YY_BREAK
1432 case 70:
1434 #line 108 "parser/faustlexer.l"
1435 return RPAR;
1436  YY_BREAK
1437 case 71:
1439 #line 109 "parser/faustlexer.l"
1440 return LBRAQ;
1441  YY_BREAK
1442 case 72:
1444 #line 110 "parser/faustlexer.l"
1445 return RBRAQ;
1446  YY_BREAK
1447 case 73:
1449 #line 111 "parser/faustlexer.l"
1450 return LCROC;
1451  YY_BREAK
1452 case 74:
1454 #line 112 "parser/faustlexer.l"
1455 return RCROC;
1456  YY_BREAK
1457 case 75:
1459 #line 114 "parser/faustlexer.l"
1460 return LAMBDA;
1461  YY_BREAK
1462 case 76:
1464 #line 115 "parser/faustlexer.l"
1465 return DOT;
1466  YY_BREAK
1467 case 77:
1469 #line 116 "parser/faustlexer.l"
1470 return WITH;
1471  YY_BREAK
1472 case 78:
1474 #line 118 "parser/faustlexer.l"
1475 return MEM;
1476  YY_BREAK
1477 case 79:
1479 #line 119 "parser/faustlexer.l"
1480 return PREFIX;
1481  YY_BREAK
1482 case 80:
1484 #line 121 "parser/faustlexer.l"
1485 return INTCAST;
1486  YY_BREAK
1487 case 81:
1489 #line 122 "parser/faustlexer.l"
1490 return FLOATCAST;
1491  YY_BREAK
1492 case 82:
1494 #line 124 "parser/faustlexer.l"
1495 return RDTBL;
1496  YY_BREAK
1497 case 83:
1499 #line 125 "parser/faustlexer.l"
1500 return RWTBL;
1501  YY_BREAK
1502 case 84:
1504 #line 127 "parser/faustlexer.l"
1505 return SELECT2;
1506  YY_BREAK
1507 case 85:
1509 #line 128 "parser/faustlexer.l"
1510 return SELECT3;
1511  YY_BREAK
1512 case 86:
1514 #line 130 "parser/faustlexer.l"
1515 return FFUNCTION;
1516  YY_BREAK
1517 case 87:
1519 #line 131 "parser/faustlexer.l"
1520 return FCONSTANT;
1521  YY_BREAK
1522 case 88:
1524 #line 132 "parser/faustlexer.l"
1525 return FVARIABLE;
1526  YY_BREAK
1527 case 89:
1529 #line 134 "parser/faustlexer.l"
1530 return BUTTON;
1531  YY_BREAK
1532 case 90:
1534 #line 135 "parser/faustlexer.l"
1535 return CHECKBOX;
1536  YY_BREAK
1537 case 91:
1539 #line 136 "parser/faustlexer.l"
1540 return VSLIDER;
1541  YY_BREAK
1542 case 92:
1544 #line 137 "parser/faustlexer.l"
1545 return HSLIDER;
1546  YY_BREAK
1547 case 93:
1549 #line 138 "parser/faustlexer.l"
1550 return NENTRY;
1551  YY_BREAK
1552 case 94:
1554 #line 139 "parser/faustlexer.l"
1555 return VGROUP;
1556  YY_BREAK
1557 case 95:
1559 #line 140 "parser/faustlexer.l"
1560 return HGROUP;
1561  YY_BREAK
1562 case 96:
1564 #line 141 "parser/faustlexer.l"
1565 return TGROUP;
1566  YY_BREAK
1567 case 97:
1569 #line 142 "parser/faustlexer.l"
1570 return VBARGRAPH;
1571  YY_BREAK
1572 case 98:
1574 #line 143 "parser/faustlexer.l"
1575 return HBARGRAPH;
1576  YY_BREAK
1577 case 99:
1579 #line 144 "parser/faustlexer.l"
1580 return ATTACH;
1581  YY_BREAK
1582 case 100:
1584 #line 146 "parser/faustlexer.l"
1585 return ACOS;
1586  YY_BREAK
1587 case 101:
1589 #line 147 "parser/faustlexer.l"
1590 return ASIN;
1591  YY_BREAK
1592 case 102:
1594 #line 148 "parser/faustlexer.l"
1595 return ATAN;
1596  YY_BREAK
1597 case 103:
1599 #line 149 "parser/faustlexer.l"
1600 return ATAN2;
1601  YY_BREAK
1602 case 104:
1604 #line 151 "parser/faustlexer.l"
1605 return COS;
1606  YY_BREAK
1607 case 105:
1609 #line 152 "parser/faustlexer.l"
1610 return SIN;
1611  YY_BREAK
1612 case 106:
1614 #line 153 "parser/faustlexer.l"
1615 return TAN;
1616  YY_BREAK
1617 case 107:
1619 #line 155 "parser/faustlexer.l"
1620 return EXP;
1621  YY_BREAK
1622 case 108:
1624 #line 156 "parser/faustlexer.l"
1625 return LOG;
1626  YY_BREAK
1627 case 109:
1629 #line 157 "parser/faustlexer.l"
1630 return LOG10;
1631  YY_BREAK
1632 case 110:
1634 #line 158 "parser/faustlexer.l"
1635 return POWOP;
1636  YY_BREAK
1637 case 111:
1639 #line 159 "parser/faustlexer.l"
1640 return POWFUN;
1641  YY_BREAK
1642 case 112:
1644 #line 160 "parser/faustlexer.l"
1645 return SQRT;
1646  YY_BREAK
1647 case 113:
1649 #line 162 "parser/faustlexer.l"
1650 return ABS;
1651  YY_BREAK
1652 case 114:
1654 #line 163 "parser/faustlexer.l"
1655 return MIN;
1656  YY_BREAK
1657 case 115:
1659 #line 164 "parser/faustlexer.l"
1660 return MAX;
1661  YY_BREAK
1662 case 116:
1664 #line 166 "parser/faustlexer.l"
1665 return FMOD;
1666  YY_BREAK
1667 case 117:
1669 #line 167 "parser/faustlexer.l"
1670 return REMAINDER;
1671  YY_BREAK
1672 case 118:
1674 #line 169 "parser/faustlexer.l"
1675 return FLOOR;
1676  YY_BREAK
1677 case 119:
1679 #line 170 "parser/faustlexer.l"
1680 return CEIL;
1681  YY_BREAK
1682 case 120:
1684 #line 171 "parser/faustlexer.l"
1685 return RINT;
1686  YY_BREAK
1687 case 121:
1689 #line 173 "parser/faustlexer.l"
1690 return ISEQ;
1691  YY_BREAK
1692 case 122:
1694 #line 174 "parser/faustlexer.l"
1695 return IPAR;
1696  YY_BREAK
1697 case 123:
1699 #line 175 "parser/faustlexer.l"
1700 return ISUM;
1701  YY_BREAK
1702 case 124:
1704 #line 176 "parser/faustlexer.l"
1705 return IPROD;
1706  YY_BREAK
1707 case 125:
1709 #line 178 "parser/faustlexer.l"
1710 return INPUTS;
1711  YY_BREAK
1712 case 126:
1714 #line 179 "parser/faustlexer.l"
1715 return OUTPUTS;
1716  YY_BREAK
1717 case 127:
1719 #line 181 "parser/faustlexer.l"
1720 return IMPORT;
1721  YY_BREAK
1722 case 128:
1724 #line 182 "parser/faustlexer.l"
1725 return COMPONENT;
1726  YY_BREAK
1727 case 129:
1729 #line 183 "parser/faustlexer.l"
1730 return LIBRARY;
1731  YY_BREAK
1732 case 130:
1734 #line 184 "parser/faustlexer.l"
1735 return ENVIRONMENT;
1736  YY_BREAK
1737 case 131:
1739 #line 186 "parser/faustlexer.l"
1740 return WAVEFORM;
1741  YY_BREAK
1742 case 132:
1744 #line 188 "parser/faustlexer.l"
1745 return DECLARE;
1746  YY_BREAK
1747 case 133:
1749 #line 190 "parser/faustlexer.l"
1750 return CASE;
1751  YY_BREAK
1752 case 134:
1754 #line 191 "parser/faustlexer.l"
1755 return ARROW;
1756  YY_BREAK
1757 case 135:
1759 #line 193 "parser/faustlexer.l"
1760 return IDENT;
1761  YY_BREAK
1762 case 136:
1764 #line 194 "parser/faustlexer.l"
1765 return IDENT;
1766  YY_BREAK
1767 case 137:
1768 /* rule 137 can match eol */
1770 #line 196 "parser/faustlexer.l"
1771 return STRING;
1772  YY_BREAK
1773 case 138:
1775 #line 198 "parser/faustlexer.l"
1776 return FSTRING;
1777  YY_BREAK
1778 case 139:
1780 #line 199 "parser/faustlexer.l"
1781 return FSTRING;
1782  YY_BREAK
1783 case 140:
1785 #line 202 "parser/faustlexer.l"
1786 /* eat up one-line comments */
1787  YY_BREAK
1788 case 141:
1789 /* rule 141 can match eol */
1791 #line 204 "parser/faustlexer.l"
1792 /* eat up whitespace */
1793  YY_BREAK
1794 case YY_STATE_EOF(INITIAL):
1795 case YY_STATE_EOF(comment):
1796 case YY_STATE_EOF(doc):
1797 case YY_STATE_EOF(lst):
1798 #line 206 "parser/faustlexer.l"
1799 yyterminate();
1800  YY_BREAK
1801 case 142:
1803 #line 208 "parser/faustlexer.l"
1804 printf("extra text is : %s\n", yytext); return EXTRA;
1805  YY_BREAK
1806 case 143:
1808 #line 211 "parser/faustlexer.l"
1809 ECHO;
1810  YY_BREAK
1811 #line 1812 "parser/faustlexer.cpp"
1812 
1813  case YY_END_OF_BUFFER:
1814  {
1815  /* Amount of text matched not including the EOB char. */
1816  int yy_amount_of_matched_text = (int) (yy_cp - (yytext_ptr)) - 1;
1817 
1818  /* Undo the effects of YY_DO_BEFORE_ACTION. */
1819  *yy_cp = (yy_hold_char);
1821 
1822  if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_NEW )
1823  {
1824  /* We're scanning a new file or input source. It's
1825  * possible that this happened because the user
1826  * just pointed yyin at a new source and called
1827  * yylex(). If so, then we have to assure
1828  * consistency between YY_CURRENT_BUFFER and our
1829  * globals. Here is the right place to do so, because
1830  * this is the first action (other than possibly a
1831  * back-up) that will match for the new input source.
1832  */
1833  (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
1834  YY_CURRENT_BUFFER_LVALUE->yy_input_file = yyin;
1835  YY_CURRENT_BUFFER_LVALUE->yy_buffer_status = YY_BUFFER_NORMAL;
1836  }
1837 
1838  /* Note that here we test for yy_c_buf_p "<=" to the position
1839  * of the first EOB in the buffer, since yy_c_buf_p will
1840  * already have been incremented past the NUL character
1841  * (since all states make transitions on EOB to the
1842  * end-of-buffer state). Contrast this with the test
1843  * in input().
1844  */
1845  if ( (yy_c_buf_p) <= &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)] )
1846  { /* This was really a NUL. */
1847  yy_state_type yy_next_state;
1848 
1849  (yy_c_buf_p) = (yytext_ptr) + yy_amount_of_matched_text;
1850 
1851  yy_current_state = yy_get_previous_state( );
1852 
1853  /* Okay, we're now positioned to make the NUL
1854  * transition. We couldn't have
1855  * yy_get_previous_state() go ahead and do it
1856  * for us because it doesn't know how to deal
1857  * with the possibility of jamming (and we don't
1858  * want to build jamming into it because then it
1859  * will run more slowly).
1860  */
1861 
1862  yy_next_state = yy_try_NUL_trans( yy_current_state );
1863 
1865 
1866  if ( yy_next_state )
1867  {
1868  /* Consume the NUL. */
1869  yy_cp = ++(yy_c_buf_p);
1870  yy_current_state = yy_next_state;
1871  goto yy_match;
1872  }
1873 
1874  else
1875  {
1876  yy_cp = (yy_c_buf_p);
1877  goto yy_find_action;
1878  }
1879  }
1880 
1881  else switch ( yy_get_next_buffer( ) )
1882  {
1883  case EOB_ACT_END_OF_FILE:
1884  {
1886 
1887  if ( yywrap( ) )
1888  {
1889  /* Note: because we've taken care in
1890  * yy_get_next_buffer() to have set up
1891  * yytext, we can now set up
1892  * yy_c_buf_p so that if some total
1893  * hoser (like flex itself) wants to
1894  * call the scanner after we return the
1895  * YY_NULL, it'll still work - another
1896  * YY_NULL will get returned.
1897  */
1899 
1900  yy_act = YY_STATE_EOF(YY_START);
1901  goto do_action;
1902  }
1903 
1904  else
1905  {
1906  if ( ! (yy_did_buffer_switch_on_eof) )
1907  YY_NEW_FILE;
1908  }
1909  break;
1910  }
1911 
1912  case EOB_ACT_CONTINUE_SCAN:
1913  (yy_c_buf_p) =
1914  (yytext_ptr) + yy_amount_of_matched_text;
1915 
1916  yy_current_state = yy_get_previous_state( );
1917 
1918  yy_cp = (yy_c_buf_p);
1920  goto yy_match;
1921 
1922  case EOB_ACT_LAST_MATCH:
1923  (yy_c_buf_p) =
1924  &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars)];
1925 
1926  yy_current_state = yy_get_previous_state( );
1927 
1928  yy_cp = (yy_c_buf_p);
1930  goto yy_find_action;
1931  }
1932  break;
1933  }
1934 
1935  default:
1937  "fatal flex scanner internal error--no action found" );
1938  } /* end of action switch */
1939  } /* end of scanning one token */
#define YY_RULE_SETUP
Definition: faustlexer.cpp:976
#define YY_BUFFER_NORMAL
Definition: faustlexer.cpp:250
static yy_state_type yy_last_accepting_state
Definition: faustlexer.cpp:778
static yy_state_type yy_try_NUL_trans(yy_state_type current_state)
int yylineno
Definition: faustlexer.cpp:357
register char * yy_bp
Definition: faustlexer.cpp:984
#define YY_END_OF_BUFFER
Definition: faustlexer.cpp:378
register char * yy_cp
Definition: faustlexer.cpp:984
#define YY_STATE_EOF(state)
Definition: faustlexer.cpp:136
static yy_size_t yy_n_chars
Definition: faustlexer.cpp:288
#define YY_MORE_ADJ
Definition: faustlexer.cpp:789
static yyconst flex_int32_t yy_rule_can_match_eol[144]
Definition: faustlexer.cpp:767
#define EOB_ACT_END_OF_FILE
Definition: faustlexer.cpp:167
#define comment
Definition: faustlexer.cpp:805
#define yytext_ptr
Definition: faustlexer.cpp:360
int yy_state_type
Definition: faustlexer.cpp:353
static yyconst flex_int32_t yy_ec[256]
Definition: faustlexer.cpp:443
#define YY_CURRENT_BUFFER_LVALUE
Definition: faustlexer.cpp:284
static yyconst flex_int32_t yy_meta[64]
Definition: faustlexer.cpp:475
#define YY_NEW_FILE
Definition: faustlexer.cpp:139
static char * yy_c_buf_p
Definition: faustlexer.cpp:292
unsigned char YY_CHAR
Definition: faustlexer.cpp:349
yy_size_t yyleng
Definition: faustlexer.cpp:289
static yyconst flex_int16_t yy_chk[693]
Definition: faustlexer.cpp:685
#define YY_RESTORE_YY_MORE_OFFSET
Definition: faustlexer.cpp:790
#define yyterminate()
Definition: faustlexer.cpp:938
#define YY_FATAL_ERROR(msg)
Definition: faustlexer.cpp:948
char * yytext
Definition: faustlexer.cpp:791
#define YY_BUFFER_NEW
Definition: faustlexer.cpp:249
register int yy_act
Definition: faustlexer.cpp:985
static char yy_hold_char
Definition: faustlexer.cpp:287
#define doc
Definition: faustlexer.cpp:806
#define EOB_ACT_LAST_MATCH
Definition: faustlexer.cpp:168
#define lst
Definition: faustlexer.cpp:807
static int yy_start
Definition: faustlexer.cpp:294
static int yy_get_next_buffer(void)
static yyconst flex_int16_t yy_nxt[693]
Definition: faustlexer.cpp:604
static yyconst flex_int16_t yy_base[494]
Definition: faustlexer.cpp:486
#define ECHO
Definition: faustlexer.cpp:894
#define YY_SC_TO_UI(c)
Definition: faustlexer.cpp:120
static yyconst flex_int16_t yy_accept[482]
Definition: faustlexer.cpp:386
#define EOB_ACT_CONTINUE_SCAN
Definition: faustlexer.cpp:166
static yyconst flex_int16_t yy_def[494]
Definition: faustlexer.cpp:545
#define YY_START
Definition: faustlexer.cpp:132
#define INITIAL
Definition: faustlexer.cpp:804
int yywrap(void)
static int yy_did_buffer_switch_on_eof
Definition: faustlexer.cpp:299
FILE * yyin
Definition: faustlexer.cpp:351
#define YY_BREAK
Definition: faustlexer.cpp:973
#define BEGIN
Definition: faustlexer.cpp:126
#define YY_DO_BEFORE_ACTION
Definition: faustlexer.cpp:370
static char * yy_last_accepting_cpos
Definition: faustlexer.cpp:779
static yy_state_type yy_get_previous_state(void)

Here is the call graph for this function:

YY_BUFFER_STATE yy_create_buffer ( FILE *  file,
int  size 
)

Allocate and initialize an input buffer state.

Parameters
fileA readable stream.
sizeThe character buffer size in bytes. When in doubt, use YY_BUF_SIZE.
Returns
the allocated buffer state.

Definition at line 2325 of file faustlexer.cpp.

References yy_buffer_state::yy_buf_size, yy_buffer_state::yy_ch_buf, YY_FATAL_ERROR, yy_init_buffer(), yy_buffer_state::yy_is_our_buffer, and yyalloc().

Referenced by if(), and yyrestart().

2326 {
2327  YY_BUFFER_STATE b;
2328 
2329  b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
2330  if ( ! b )
2331  YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2332 
2333  b->yy_buf_size = size;
2334 
2335  /* yy_ch_buf has to be 2 characters longer than the size given because
2336  * we need to put in 2 end-of-buffer characters.
2337  */
2338  b->yy_ch_buf = (char *) yyalloc(b->yy_buf_size + 2 );
2339  if ( ! b->yy_ch_buf )
2340  YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" );
2341 
2342  b->yy_is_our_buffer = 1;
2343 
2344  yy_init_buffer(b,file );
2345 
2346  return b;
2347 }
void * yyalloc(yy_size_t)
struct yy_buffer_state * YY_BUFFER_STATE
Definition: faustlexer.cpp:154
yy_size_t yy_buf_size
Definition: faustlexer.cpp:213
#define YY_FATAL_ERROR(msg)
Definition: faustlexer.cpp:948
static void yy_init_buffer(YY_BUFFER_STATE b, FILE *file)

Here is the call graph for this function:

Here is the caller graph for this function:

void yy_delete_buffer ( YY_BUFFER_STATE  b)

Destroy the buffer.

Parameters
ba buffer created with yy_create_buffer()

Definition at line 2353 of file faustlexer.cpp.

References yy_buffer_state::yy_ch_buf, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_buffer_state::yy_is_our_buffer, and yyfree().

Referenced by yylex_destroy(), and yypop_buffer_state().

2354 {
2355 
2356  if ( ! b )
2357  return;
2358 
2359  if ( b == YY_CURRENT_BUFFER ) /* Not sure if we should pop here. */
2361 
2362  if ( b->yy_is_our_buffer )
2363  yyfree((void *) b->yy_ch_buf );
2364 
2365  yyfree((void *) b );
2366 }
void yyfree(void *)
struct yy_buffer_state * YY_BUFFER_STATE
Definition: faustlexer.cpp:154
#define YY_CURRENT_BUFFER_LVALUE
Definition: faustlexer.cpp:284
#define YY_CURRENT_BUFFER
Definition: faustlexer.cpp:277

Here is the call graph for this function:

Here is the caller graph for this function:

static void yy_fatal_error ( yyconst char  msg[])
static
static void yy_fatal_error ( yyconst char *  msg)
static

Definition at line 2611 of file faustlexer.cpp.

References YY_EXIT_FAILURE.

2612 {
2613  (void) fprintf( stderr, "%s\n", msg );
2614  exit( YY_EXIT_FAILURE );
2615 }
#define YY_EXIT_FAILURE
void yy_flush_buffer ( YY_BUFFER_STATE  b)

Discard all buffered characters.

On the next scan, YY_INPUT will be called.

Parameters
bthe buffer state to be flushed, usually YY_CURRENT_BUFFER.

Definition at line 2400 of file faustlexer.cpp.

References yy_buffer_state::yy_at_bol, yy_buffer_state::yy_buf_pos, YY_BUFFER_NEW, yy_buffer_state::yy_buffer_status, yy_buffer_state::yy_ch_buf, YY_CURRENT_BUFFER, YY_END_OF_BUFFER_CHAR, yy_load_buffer_state(), and yy_buffer_state::yy_n_chars.

Referenced by yy_init_buffer().

2401 {
2402  if ( ! b )
2403  return;
2404 
2405  b->yy_n_chars = 0;
2406 
2407  /* We always need two end-of-buffer characters. The first causes
2408  * a transition to the end-of-buffer state. The second causes
2409  * a jam in that state.
2410  */
2413 
2414  b->yy_buf_pos = &b->yy_ch_buf[0];
2415 
2416  b->yy_at_bol = 1;
2418 
2419  if ( b == YY_CURRENT_BUFFER )
2421 }
yy_size_t yy_n_chars
Definition: faustlexer.cpp:218
#define YY_END_OF_BUFFER_CHAR
Definition: faustlexer.cpp:141
#define YY_CURRENT_BUFFER
Definition: faustlexer.cpp:277
#define YY_BUFFER_NEW
Definition: faustlexer.cpp:249
static void yy_load_buffer_state(void)

Here is the call graph for this function:

Here is the caller graph for this function:

static int yy_get_next_buffer ( void  )
static

Definition at line 1949 of file faustlexer.cpp.

References EOB_ACT_CONTINUE_SCAN, EOB_ACT_END_OF_FILE, EOB_ACT_LAST_MATCH, yy_buffer_state::yy_buf_size, YY_BUFFER_EOF_PENDING, yy_c_buf_p, yy_buffer_state::yy_ch_buf, YY_CURRENT_BUFFER_LVALUE, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, YY_INPUT, yy_buffer_state::yy_is_our_buffer, YY_MORE_ADJ, yy_n_chars, YY_READ_BUF_SIZE, yyin, yyrealloc(), yyrestart(), and yytext_ptr.

Referenced by input(), and while().

1950 {
1951  register char *dest = YY_CURRENT_BUFFER_LVALUE->yy_ch_buf;
1952  register char *source = (yytext_ptr);
1953  register int number_to_move, i;
1954  int ret_val;
1955 
1956  if ( (yy_c_buf_p) > &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[(yy_n_chars) + 1] )
1958  "fatal flex scanner internal error--end of buffer missed" );
1959 
1960  if ( YY_CURRENT_BUFFER_LVALUE->yy_fill_buffer == 0 )
1961  { /* Don't try to fill the buffer, so this is an EOF. */
1962  if ( (yy_c_buf_p) - (yytext_ptr) - YY_MORE_ADJ == 1 )
1963  {
1964  /* We matched a single character, the EOB, so
1965  * treat this as a final EOF.
1966  */
1967  return EOB_ACT_END_OF_FILE;
1968  }
1969 
1970  else
1971  {
1972  /* We matched some text prior to the EOB, first
1973  * process it.
1974  */
1975  return EOB_ACT_LAST_MATCH;
1976  }
1977  }
1978 
1979  /* Try to read more data. */
1980 
1981  /* First move last chars to start of buffer. */
1982  number_to_move = (int) ((yy_c_buf_p) - (yytext_ptr)) - 1;
1983 
1984  for ( i = 0; i < number_to_move; ++i )
1985  *(dest++) = *(source++);
1986 
1987  if ( YY_CURRENT_BUFFER_LVALUE->yy_buffer_status == YY_BUFFER_EOF_PENDING )
1988  /* don't do the read, it's not guaranteed to return an EOF,
1989  * just force an EOF
1990  */
1991  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars) = 0;
1992 
1993  else
1994  {
1995  yy_size_t num_to_read =
1996  YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;
1997 
1998  while ( num_to_read <= 0 )
1999  { /* Not enough room in the buffer - grow it. */
2000 
2001  /* just a shorter name for the current buffer */
2003 
2004  int yy_c_buf_p_offset =
2005  (int) ((yy_c_buf_p) - b->yy_ch_buf);
2006 
2007  if ( b->yy_is_our_buffer )
2008  {
2009  yy_size_t new_size = b->yy_buf_size * 2;
2010 
2011  if ( new_size <= 0 )
2012  b->yy_buf_size += b->yy_buf_size / 8;
2013  else
2014  b->yy_buf_size *= 2;
2015 
2016  b->yy_ch_buf = (char *)
2017  /* Include room in for 2 EOB chars. */
2018  yyrealloc((void *) b->yy_ch_buf,b->yy_buf_size + 2 );
2019  }
2020  else
2021  /* Can't grow it, we don't own it. */
2022  b->yy_ch_buf = 0;
2023 
2024  if ( ! b->yy_ch_buf )
2026  "fatal error - scanner input buffer overflow" );
2027 
2028  (yy_c_buf_p) = &b->yy_ch_buf[yy_c_buf_p_offset];
2029 
2030  num_to_read = YY_CURRENT_BUFFER_LVALUE->yy_buf_size -
2031  number_to_move - 1;
2032 
2033  }
2034 
2035  if ( num_to_read > YY_READ_BUF_SIZE )
2036  num_to_read = YY_READ_BUF_SIZE;
2037 
2038  /* Read in more data. */
2039  YY_INPUT( (&YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move]),
2040  (yy_n_chars), num_to_read );
2041 
2042  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2043  }
2044 
2045  if ( (yy_n_chars) == 0 )
2046  {
2047  if ( number_to_move == YY_MORE_ADJ )
2048  {
2049  ret_val = EOB_ACT_END_OF_FILE;
2050  yyrestart(yyin );
2051  }
2052 
2053  else
2054  {
2055  ret_val = EOB_ACT_LAST_MATCH;
2056  YY_CURRENT_BUFFER_LVALUE->yy_buffer_status =
2058  }
2059  }
2060 
2061  else
2062  ret_val = EOB_ACT_CONTINUE_SCAN;
2063 
2064  if ((yy_size_t) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_size) {
2065  /* Extend the array by 50%, plus the number we really need. */
2066  yy_size_t new_size = (yy_n_chars) + number_to_move + ((yy_n_chars) >> 1);
2067  YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc((void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf,new_size );
2068  if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
2069  YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" );
2070  }
2071 
2072  (yy_n_chars) += number_to_move;
2075 
2076  (yytext_ptr) = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[0];
2077 
2078  return ret_val;
2079 }
#define YY_READ_BUF_SIZE
Definition: faustlexer.cpp:886
static yy_size_t yy_n_chars
Definition: faustlexer.cpp:288
#define YY_MORE_ADJ
Definition: faustlexer.cpp:789
#define YY_INPUT(buf, result, max_size)
Definition: faustlexer.cpp:901
#define EOB_ACT_END_OF_FILE
Definition: faustlexer.cpp:167
yy_size_t yy_buf_size
Definition: faustlexer.cpp:213
#define yytext_ptr
Definition: faustlexer.cpp:360
#define YY_END_OF_BUFFER_CHAR
Definition: faustlexer.cpp:141
#define YY_CURRENT_BUFFER_LVALUE
Definition: faustlexer.cpp:284
static char * yy_c_buf_p
Definition: faustlexer.cpp:292
void * yyrealloc(void *, yy_size_t)
void yyrestart(FILE *input_file)
Immediately switch to a different input stream.
#define YY_FATAL_ERROR(msg)
Definition: faustlexer.cpp:948
#define EOB_ACT_LAST_MATCH
Definition: faustlexer.cpp:168
size_t yy_size_t
Definition: faustlexer.cpp:159
#define EOB_ACT_CONTINUE_SCAN
Definition: faustlexer.cpp:166
#define YY_BUFFER_EOF_PENDING
Definition: faustlexer.cpp:261
FILE * yyin
Definition: faustlexer.cpp:351

Here is the call graph for this function:

Here is the caller graph for this function:

static yy_state_type yy_get_previous_state ( void  )
static

Definition at line 2083 of file faustlexer.cpp.

References yy_c_buf_p, yy_cp, yy_last_accepting_cpos, yy_last_accepting_state, YY_MORE_ADJ, YY_SC_TO_UI, yy_start, and yytext_ptr.

Referenced by while().

2084 {
2085  register yy_state_type yy_current_state;
2086  register char *yy_cp;
2087 
2088  yy_current_state = (yy_start);
2089 
2090  for ( yy_cp = (yytext_ptr) + YY_MORE_ADJ; yy_cp < (yy_c_buf_p); ++yy_cp )
2091  {
2092  register YY_CHAR yy_c = (*yy_cp ? yy_ec[YY_SC_TO_UI(*yy_cp)] : 1);
2093  if ( yy_accept[yy_current_state] )
2094  {
2095  (yy_last_accepting_state) = yy_current_state;
2096  (yy_last_accepting_cpos) = yy_cp;
2097  }
2098  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2099  {
2100  yy_current_state = (int) yy_def[yy_current_state];
2101  if ( yy_current_state >= 482 )
2102  yy_c = yy_meta[(unsigned int) yy_c];
2103  }
2104  yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2105  }
2106 
2107  return yy_current_state;
2108 }
static yy_state_type yy_last_accepting_state
Definition: faustlexer.cpp:778
register char * yy_cp
Definition: faustlexer.cpp:984
#define YY_MORE_ADJ
Definition: faustlexer.cpp:789
#define yytext_ptr
Definition: faustlexer.cpp:360
int yy_state_type
Definition: faustlexer.cpp:353
static yyconst flex_int32_t yy_ec[256]
Definition: faustlexer.cpp:443
static yyconst flex_int32_t yy_meta[64]
Definition: faustlexer.cpp:475
static char * yy_c_buf_p
Definition: faustlexer.cpp:292
unsigned char YY_CHAR
Definition: faustlexer.cpp:349
static yyconst flex_int16_t yy_chk[693]
Definition: faustlexer.cpp:685
static int yy_start
Definition: faustlexer.cpp:294
static yyconst flex_int16_t yy_nxt[693]
Definition: faustlexer.cpp:604
static yyconst flex_int16_t yy_base[494]
Definition: faustlexer.cpp:486
#define YY_SC_TO_UI(c)
Definition: faustlexer.cpp:120
static yyconst flex_int16_t yy_accept[482]
Definition: faustlexer.cpp:386
static yyconst flex_int16_t yy_def[494]
Definition: faustlexer.cpp:545
static char * yy_last_accepting_cpos
Definition: faustlexer.cpp:779

Here is the caller graph for this function:

static void yy_init_buffer ( YY_BUFFER_STATE  b,
FILE *  file 
)
static

Definition at line 2372 of file faustlexer.cpp.

References yy_buffer_state::yy_bs_column, yy_buffer_state::yy_bs_lineno, YY_CURRENT_BUFFER, yy_buffer_state::yy_fill_buffer, yy_flush_buffer(), yy_buffer_state::yy_input_file, and yy_buffer_state::yy_is_interactive.

Referenced by yy_create_buffer(), and yyrestart().

2374 {
2375  int oerrno = errno;
2376 
2377  yy_flush_buffer(b );
2378 
2379  b->yy_input_file = file;
2380  b->yy_fill_buffer = 1;
2381 
2382  /* If b is the current buffer, then yy_init_buffer was _probably_
2383  * called from yyrestart() or through yy_get_next_buffer.
2384  * In that case, we don't want to reset the lineno or column.
2385  */
2386  if (b != YY_CURRENT_BUFFER){
2387  b->yy_bs_lineno = 1;
2388  b->yy_bs_column = 0;
2389  }
2390 
2391  b->yy_is_interactive = file ? (isatty( fileno(file) ) > 0) : 0;
2392 
2393  errno = oerrno;
2394 }
int yy_bs_lineno
The line count.
Definition: faustlexer.cpp:239
int yy_bs_column
The column count.
Definition: faustlexer.cpp:240
#define YY_CURRENT_BUFFER
Definition: faustlexer.cpp:277
void yy_flush_buffer(YY_BUFFER_STATE b)
Discard all buffered characters.
FILE * yy_input_file
Definition: faustlexer.cpp:205

Here is the call graph for this function:

Here is the caller graph for this function:

static int yy_init_globals ( void  )
static

Definition at line 2714 of file faustlexer.cpp.

References yy_buffer_stack, yy_buffer_stack_max, yy_buffer_stack_top, yy_c_buf_p, yy_init, yy_start, yyin, and yyout.

Referenced by yylex_destroy().

2715 {
2716  /* Initialization is the same as for the non-reentrant scanner.
2717  * This function is called from yylex_destroy(), so don't allocate here.
2718  */
2719 
2720  /* We do not touch yylineno unless the option is enabled. */
2721  yylineno = 1;
2722 
2723  (yy_buffer_stack) = 0;
2724  (yy_buffer_stack_top) = 0;
2725  (yy_buffer_stack_max) = 0;
2726  (yy_c_buf_p) = (char *) 0;
2727  (yy_init) = 0;
2728  (yy_start) = 0;
2729 
2730 /* Defined in main.c */
2731 #ifdef YY_STDINIT
2732  yyin = stdin;
2733  yyout = stdout;
2734 #else
2735  yyin = (FILE *) 0;
2736  yyout = (FILE *) 0;
2737 #endif
2738 
2739  /* For future reference: Set errno on error, since we are called by
2740  * yylex_init()
2741  */
2742  return 0;
2743 }
int yylineno
Definition: faustlexer.cpp:357
static char * yy_c_buf_p
Definition: faustlexer.cpp:292
static size_t yy_buffer_stack_top
index of top of stack.
Definition: faustlexer.cpp:267
static YY_BUFFER_STATE * yy_buffer_stack
Stack as an array.
Definition: faustlexer.cpp:269
static int yy_start
Definition: faustlexer.cpp:294
FILE * yyout
Definition: faustlexer.cpp:351
static int yy_init
Definition: faustlexer.cpp:293
FILE * yyin
Definition: faustlexer.cpp:351
static size_t yy_buffer_stack_max
capacity of stack.
Definition: faustlexer.cpp:268

Here is the caller graph for this function:

static void yy_load_buffer_state ( void  )
static

Definition at line 2311 of file faustlexer.cpp.

References yy_c_buf_p, YY_CURRENT_BUFFER_LVALUE, yy_hold_char, yy_n_chars, yyin, and yytext_ptr.

Referenced by if(), yy_flush_buffer(), yy_switch_to_buffer(), yypop_buffer_state(), yypush_buffer_state(), and yyrestart().

2312 {
2313  (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_n_chars;
2314  (yytext_ptr) = (yy_c_buf_p) = YY_CURRENT_BUFFER_LVALUE->yy_buf_pos;
2315  yyin = YY_CURRENT_BUFFER_LVALUE->yy_input_file;
2316  (yy_hold_char) = *(yy_c_buf_p);
2317 }
static yy_size_t yy_n_chars
Definition: faustlexer.cpp:288
#define yytext_ptr
Definition: faustlexer.cpp:360
#define YY_CURRENT_BUFFER_LVALUE
Definition: faustlexer.cpp:284
static char * yy_c_buf_p
Definition: faustlexer.cpp:292
static char yy_hold_char
Definition: faustlexer.cpp:287
FILE * yyin
Definition: faustlexer.cpp:351

Here is the caller graph for this function:

YY_BUFFER_STATE yy_scan_buffer ( char *  base,
yy_size_t  size 
)

Setup the input buffer state to scan directly from a user-specified character buffer.

Parameters
basethe character buffer
sizethe size in bytes of the character buffer
Returns
the newly allocated buffer state object.

Definition at line 2527 of file faustlexer.cpp.

References yy_buffer_state::yy_at_bol, yy_buffer_state::yy_buf_pos, yy_buffer_state::yy_buf_size, YY_BUFFER_NEW, yy_buffer_state::yy_buffer_status, yy_buffer_state::yy_ch_buf, YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_buffer_state::yy_fill_buffer, yy_buffer_state::yy_input_file, yy_buffer_state::yy_is_interactive, yy_buffer_state::yy_is_our_buffer, yy_buffer_state::yy_n_chars, yy_switch_to_buffer(), and yyalloc().

Referenced by yy_scan_bytes().

2528 {
2529  YY_BUFFER_STATE b;
2530 
2531  if ( size < 2 ||
2532  base[size-2] != YY_END_OF_BUFFER_CHAR ||
2533  base[size-1] != YY_END_OF_BUFFER_CHAR )
2534  /* They forgot to leave room for the EOB's. */
2535  return 0;
2536 
2537  b = (YY_BUFFER_STATE) yyalloc(sizeof( struct yy_buffer_state ) );
2538  if ( ! b )
2539  YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" );
2540 
2541  b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */
2542  b->yy_buf_pos = b->yy_ch_buf = base;
2543  b->yy_is_our_buffer = 0;
2544  b->yy_input_file = 0;
2545  b->yy_n_chars = b->yy_buf_size;
2546  b->yy_is_interactive = 0;
2547  b->yy_at_bol = 1;
2548  b->yy_fill_buffer = 0;
2550 
2551  yy_switch_to_buffer(b );
2552 
2553  return b;
2554 }
void * yyalloc(yy_size_t)
struct yy_buffer_state * YY_BUFFER_STATE
Definition: faustlexer.cpp:154
yy_size_t yy_buf_size
Definition: faustlexer.cpp:213
yy_size_t yy_n_chars
Definition: faustlexer.cpp:218
#define YY_END_OF_BUFFER_CHAR
Definition: faustlexer.cpp:141
#define YY_FATAL_ERROR(msg)
Definition: faustlexer.cpp:948
#define YY_BUFFER_NEW
Definition: faustlexer.cpp:249
FILE * yy_input_file
Definition: faustlexer.cpp:205
void yy_switch_to_buffer(YY_BUFFER_STATE new_buffer)
Switch to a different input buffer.

Here is the call graph for this function:

Here is the caller graph for this function:

YY_BUFFER_STATE yy_scan_bytes ( yyconst char *  yybytes,
yy_size_t  _yybytes_len 
)

Setup the input buffer state to scan the given bytes.

The next call to yylex() will scan from a copy of bytes.

Parameters
yybytesthe byte buffer to scan
_yybytes_lenthe number of bytes in the buffer pointed to by bytes.
Returns
the newly allocated buffer state object.

Definition at line 2577 of file faustlexer.cpp.

References YY_END_OF_BUFFER_CHAR, YY_FATAL_ERROR, yy_buffer_state::yy_is_our_buffer, yy_scan_buffer(), and yyalloc().

Referenced by yy_scan_string().

2578 {
2579  YY_BUFFER_STATE b;
2580  char *buf;
2581  yy_size_t n;
2582  int i;
2583 
2584  /* Get memory for full buffer, including space for trailing EOB's. */
2585  n = _yybytes_len + 2;
2586  buf = (char *) yyalloc(n );
2587  if ( ! buf )
2588  YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" );
2589 
2590  for ( i = 0; i < _yybytes_len; ++i )
2591  buf[i] = yybytes[i];
2592 
2593  buf[_yybytes_len] = buf[_yybytes_len+1] = YY_END_OF_BUFFER_CHAR;
2594 
2595  b = yy_scan_buffer(buf,n );
2596  if ( ! b )
2597  YY_FATAL_ERROR( "bad buffer in yy_scan_bytes()" );
2598 
2599  /* It's okay to grow etc. this buffer, and we should throw it
2600  * away when we're done.
2601  */
2602  b->yy_is_our_buffer = 1;
2603 
2604  return b;
2605 }
void * yyalloc(yy_size_t)
#define YY_END_OF_BUFFER_CHAR
Definition: faustlexer.cpp:141
YY_BUFFER_STATE yy_scan_buffer(char *base, yy_size_t size)
Setup the input buffer state to scan directly from a user-specified character buffer.
#define YY_FATAL_ERROR(msg)
Definition: faustlexer.cpp:948
size_t yy_size_t
Definition: faustlexer.cpp:159

Here is the call graph for this function:

Here is the caller graph for this function:

YY_BUFFER_STATE yy_scan_string ( yyconst char *  yystr)

Setup the input buffer state to scan a string.

The next call to yylex() will scan from a copy of str.

Parameters
yystra NUL-terminated string to scan
Returns
the newly allocated buffer state object.
Note
If you want to scan bytes that may contain NUL values, then use yy_scan_bytes() instead.

Definition at line 2564 of file faustlexer.cpp.

References yy_scan_bytes().

2565 {
2566 
2567  return yy_scan_bytes(yystr,strlen(yystr) );
2568 }
YY_BUFFER_STATE yy_scan_bytes(yyconst char *bytes, yy_size_t len)
Setup the input buffer state to scan the given bytes.

Here is the call graph for this function:

void yy_switch_to_buffer ( YY_BUFFER_STATE  new_buffer)

Switch to a different input buffer.

Parameters
new_bufferThe new input buffer.

Definition at line 2280 of file faustlexer.cpp.

References yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, yy_hold_char, yy_load_buffer_state(), yy_n_chars, and yyensure_buffer_stack().

Referenced by yy_scan_buffer().

2281 {
2282 
2283  /* TODO. We should be able to replace this entire function body
2284  * with
2285  * yypop_buffer_state();
2286  * yypush_buffer_state(new_buffer);
2287  */
2289  if ( YY_CURRENT_BUFFER == new_buffer )
2290  return;
2291 
2292  if ( YY_CURRENT_BUFFER )
2293  {
2294  /* Flush out information for old buffer. */
2295  *(yy_c_buf_p) = (yy_hold_char);
2296  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
2297  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2298  }
2299 
2300  YY_CURRENT_BUFFER_LVALUE = new_buffer;
2302 
2303  /* We don't actually know whether we did this switch during
2304  * EOF (yywrap()) processing, but the only time this flag
2305  * is looked at is after yywrap() is called, so it's safe
2306  * to go ahead and always set it.
2307  */
2309 }
static void yyensure_buffer_stack(void)
static yy_size_t yy_n_chars
Definition: faustlexer.cpp:288
#define YY_CURRENT_BUFFER_LVALUE
Definition: faustlexer.cpp:284
static char * yy_c_buf_p
Definition: faustlexer.cpp:292
#define YY_CURRENT_BUFFER
Definition: faustlexer.cpp:277
static char yy_hold_char
Definition: faustlexer.cpp:287
static void yy_load_buffer_state(void)
static int yy_did_buffer_switch_on_eof
Definition: faustlexer.cpp:299

Here is the call graph for this function:

Here is the caller graph for this function:

static yy_state_type yy_try_NUL_trans ( yy_state_type  current_state)
static

Definition at line 2115 of file faustlexer.cpp.

References yy_c_buf_p, yy_last_accepting_cpos, and yy_last_accepting_state.

Referenced by while().

2116 {
2117  register int yy_is_jam;
2118  register char *yy_cp = (yy_c_buf_p);
2119 
2120  register YY_CHAR yy_c = 1;
2121  if ( yy_accept[yy_current_state] )
2122  {
2123  (yy_last_accepting_state) = yy_current_state;
2124  (yy_last_accepting_cpos) = yy_cp;
2125  }
2126  while ( yy_chk[yy_base[yy_current_state] + yy_c] != yy_current_state )
2127  {
2128  yy_current_state = (int) yy_def[yy_current_state];
2129  if ( yy_current_state >= 482 )
2130  yy_c = yy_meta[(unsigned int) yy_c];
2131  }
2132  yy_current_state = yy_nxt[yy_base[yy_current_state] + (unsigned int) yy_c];
2133  yy_is_jam = (yy_current_state == 481);
2134 
2135  return yy_is_jam ? 0 : yy_current_state;
2136 }
static yy_state_type yy_last_accepting_state
Definition: faustlexer.cpp:778
register char * yy_cp
Definition: faustlexer.cpp:984
static yyconst flex_int32_t yy_meta[64]
Definition: faustlexer.cpp:475
static char * yy_c_buf_p
Definition: faustlexer.cpp:292
unsigned char YY_CHAR
Definition: faustlexer.cpp:349
static yyconst flex_int16_t yy_chk[693]
Definition: faustlexer.cpp:685
static yyconst flex_int16_t yy_nxt[693]
Definition: faustlexer.cpp:604
static yyconst flex_int16_t yy_base[494]
Definition: faustlexer.cpp:486
static yyconst flex_int16_t yy_accept[482]
Definition: faustlexer.cpp:386
static yyconst flex_int16_t yy_def[494]
Definition: faustlexer.cpp:545
static char * yy_last_accepting_cpos
Definition: faustlexer.cpp:779

Here is the caller graph for this function:

void * yyalloc ( yy_size_t  size)

Definition at line 2791 of file faustlexer.cpp.

Referenced by yy_create_buffer(), yy_scan_buffer(), yy_scan_bytes(), and yyensure_buffer_stack().

2792 {
2793  return (void *) malloc( size );
2794 }

Here is the caller graph for this function:

static void yyensure_buffer_stack ( void  )
static

Definition at line 2478 of file faustlexer.cpp.

References yy_buffer_stack, yy_buffer_stack_max, yy_buffer_stack_top, YY_FATAL_ERROR, yyalloc(), and yyrealloc().

Referenced by if(), yy_switch_to_buffer(), yypush_buffer_state(), and yyrestart().

2479 {
2480  yy_size_t num_to_alloc;
2481 
2482  if (!(yy_buffer_stack)) {
2483 
2484  /* First allocation is just for 2 elements, since we don't know if this
2485  * scanner will even need a stack. We use 2 instead of 1 to avoid an
2486  * immediate realloc on the next call.
2487  */
2488  num_to_alloc = 1;
2490  (num_to_alloc * sizeof(struct yy_buffer_state*)
2491  );
2492  if ( ! (yy_buffer_stack) )
2493  YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
2494 
2495  memset((yy_buffer_stack), 0, num_to_alloc * sizeof(struct yy_buffer_state*));
2496 
2497  (yy_buffer_stack_max) = num_to_alloc;
2498  (yy_buffer_stack_top) = 0;
2499  return;
2500  }
2501 
2502  if ((yy_buffer_stack_top) >= ((yy_buffer_stack_max)) - 1){
2503 
2504  /* Increase the buffer to prepare for a possible push. */
2505  int grow_size = 8 /* arbitrary grow size */;
2506 
2507  num_to_alloc = (yy_buffer_stack_max) + grow_size;
2509  ((yy_buffer_stack),
2510  num_to_alloc * sizeof(struct yy_buffer_state*)
2511  );
2512  if ( ! (yy_buffer_stack) )
2513  YY_FATAL_ERROR( "out of dynamic memory in yyensure_buffer_stack()" );
2514 
2515  /* zero only the new slots.*/
2516  memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*));
2517  (yy_buffer_stack_max) = num_to_alloc;
2518  }
2519 }
void * yyalloc(yy_size_t)
void * yyrealloc(void *, yy_size_t)
#define YY_FATAL_ERROR(msg)
Definition: faustlexer.cpp:948
static size_t yy_buffer_stack_top
index of top of stack.
Definition: faustlexer.cpp:267
static YY_BUFFER_STATE * yy_buffer_stack
Stack as an array.
Definition: faustlexer.cpp:269
size_t yy_size_t
Definition: faustlexer.cpp:159
static size_t yy_buffer_stack_max
capacity of stack.
Definition: faustlexer.cpp:268

Here is the call graph for this function:

Here is the caller graph for this function:

void yyfree ( void *  ptr)

Definition at line 2808 of file faustlexer.cpp.

Referenced by yy_delete_buffer(), and yylex_destroy().

2809 {
2810  free( (char *) ptr ); /* see yyrealloc() for (char *) cast */
2811 }

Here is the caller graph for this function:

int yyget_debug ( void  )

Definition at line 2704 of file faustlexer.cpp.

References yy_flex_debug.

2705 {
2706  return yy_flex_debug;
2707 }
int yy_flex_debug
Definition: faustlexer.cpp:782
YY_EXTRA_TYPE yyget_extra ( void  )
FILE * yyget_in ( void  )

Get the input stream.

Definition at line 2648 of file faustlexer.cpp.

References yyin.

2649 {
2650  return yyin;
2651 }
FILE * yyin
Definition: faustlexer.cpp:351
yy_size_t yyget_leng ( void  )

Get the length of the current token.

Definition at line 2664 of file faustlexer.cpp.

References yyleng.

2665 {
2666  return yyleng;
2667 }
yy_size_t yyleng
Definition: faustlexer.cpp:289
int yyget_lineno ( void  )

Get the current line number.

Definition at line 2639 of file faustlexer.cpp.

References yylineno.

2640 {
2641 
2642  return yylineno;
2643 }
int yylineno
Definition: faustlexer.cpp:357
FILE * yyget_out ( void  )

Get the output stream.

Definition at line 2656 of file faustlexer.cpp.

References yyout.

2657 {
2658  return yyout;
2659 }
FILE * yyout
Definition: faustlexer.cpp:351
char * yyget_text ( void  )

Get the current token.

Definition at line 2673 of file faustlexer.cpp.

References yytext.

2674 {
2675  return yytext;
2676 }
char * yytext
Definition: faustlexer.cpp:791
int yylex ( void  )
int yylex_destroy ( void  )

Definition at line 2746 of file faustlexer.cpp.

References yy_buffer_stack, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_delete_buffer(), yy_init_globals(), yyfree(), and yypop_buffer_state().

2747 {
2748 
2749  /* Pop the buffer stack, destroying each element. */
2750  while(YY_CURRENT_BUFFER){
2752  YY_CURRENT_BUFFER_LVALUE = NULL;
2754  }
2755 
2756  /* Destroy the stack itself. */
2757  yyfree((yy_buffer_stack) );
2758  (yy_buffer_stack) = NULL;
2759 
2760  /* Reset the globals. This is important in a non-reentrant scanner so the next time
2761  * yylex() is called, initialization will occur. */
2762  yy_init_globals( );
2763 
2764  return 0;
2765 }
void yy_delete_buffer(YY_BUFFER_STATE b)
Destroy the buffer.
void yyfree(void *)
#define YY_CURRENT_BUFFER_LVALUE
Definition: faustlexer.cpp:284
#define YY_CURRENT_BUFFER
Definition: faustlexer.cpp:277
static YY_BUFFER_STATE * yy_buffer_stack
Stack as an array.
Definition: faustlexer.cpp:269
static int yy_init_globals(void)
void yypop_buffer_state(void)
Removes and deletes the top of the stack, if present.

Here is the call graph for this function:

void yypop_buffer_state ( void  )

Removes and deletes the top of the stack, if present.

The next element becomes the new top.

Definition at line 2459 of file faustlexer.cpp.

References yy_buffer_stack_top, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_delete_buffer(), yy_did_buffer_switch_on_eof, and yy_load_buffer_state().

Referenced by yylex_destroy().

2460 {
2461  if (!YY_CURRENT_BUFFER)
2462  return;
2463 
2465  YY_CURRENT_BUFFER_LVALUE = NULL;
2466  if ((yy_buffer_stack_top) > 0)
2467  --(yy_buffer_stack_top);
2468 
2469  if (YY_CURRENT_BUFFER) {
2472  }
2473 }
void yy_delete_buffer(YY_BUFFER_STATE b)
Destroy the buffer.
#define YY_CURRENT_BUFFER_LVALUE
Definition: faustlexer.cpp:284
#define YY_CURRENT_BUFFER
Definition: faustlexer.cpp:277
static size_t yy_buffer_stack_top
index of top of stack.
Definition: faustlexer.cpp:267
static void yy_load_buffer_state(void)
static int yy_did_buffer_switch_on_eof
Definition: faustlexer.cpp:299

Here is the call graph for this function:

Here is the caller graph for this function:

void yypush_buffer_state ( YY_BUFFER_STATE  new_buffer)

Pushes the new state onto the stack.

The new state becomes the current state. This function will allocate the stack if necessary.

Parameters
new_bufferThe new state.

Definition at line 2429 of file faustlexer.cpp.

References yy_buffer_stack_top, yy_c_buf_p, YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_did_buffer_switch_on_eof, yy_hold_char, yy_load_buffer_state(), yy_n_chars, and yyensure_buffer_stack().

2430 {
2431  if (new_buffer == NULL)
2432  return;
2433 
2435 
2436  /* This block is copied from yy_switch_to_buffer. */
2437  if ( YY_CURRENT_BUFFER )
2438  {
2439  /* Flush out information for old buffer. */
2440  *(yy_c_buf_p) = (yy_hold_char);
2441  YY_CURRENT_BUFFER_LVALUE->yy_buf_pos = (yy_c_buf_p);
2442  YY_CURRENT_BUFFER_LVALUE->yy_n_chars = (yy_n_chars);
2443  }
2444 
2445  /* Only push if top exists. Otherwise, replace top. */
2446  if (YY_CURRENT_BUFFER)
2447  (yy_buffer_stack_top)++;
2448  YY_CURRENT_BUFFER_LVALUE = new_buffer;
2449 
2450  /* copied from yy_switch_to_buffer. */
2453 }
static void yyensure_buffer_stack(void)
static yy_size_t yy_n_chars
Definition: faustlexer.cpp:288
#define YY_CURRENT_BUFFER_LVALUE
Definition: faustlexer.cpp:284
static char * yy_c_buf_p
Definition: faustlexer.cpp:292
#define YY_CURRENT_BUFFER
Definition: faustlexer.cpp:277
static char yy_hold_char
Definition: faustlexer.cpp:287
static size_t yy_buffer_stack_top
index of top of stack.
Definition: faustlexer.cpp:267
static void yy_load_buffer_state(void)
static int yy_did_buffer_switch_on_eof
Definition: faustlexer.cpp:299

Here is the call graph for this function:

void * yyrealloc ( void *  ptr,
yy_size_t  size 
)

Definition at line 2796 of file faustlexer.cpp.

Referenced by yy_get_next_buffer(), and yyensure_buffer_stack().

2797 {
2798  /* The cast to (char *) in the following accommodates both
2799  * implementations that use char* generic pointers, and those
2800  * that use void* generic pointers. It works with the latter
2801  * because both ANSI C and C++ allow castless assignment from
2802  * any pointer type to void*, and deal with argument conversions
2803  * as though doing an assignment.
2804  */
2805  return (void *) realloc( (char *) ptr, size );
2806 }

Here is the caller graph for this function:

void yyrestart ( FILE *  input_file)

Immediately switch to a different input stream.

Parameters
input_fileA readable stream.
Note
This function does not reset the start condition to INITIAL .

Definition at line 2263 of file faustlexer.cpp.

References YY_BUF_SIZE, yy_create_buffer(), YY_CURRENT_BUFFER, YY_CURRENT_BUFFER_LVALUE, yy_init_buffer(), yy_load_buffer_state(), yyensure_buffer_stack(), and yyin.

Referenced by input(), SourceReader::parse(), and yy_get_next_buffer().

2264 {
2265 
2266  if ( ! YY_CURRENT_BUFFER ){
2270  }
2271 
2272  yy_init_buffer(YY_CURRENT_BUFFER,input_file );
2274 }
static void yyensure_buffer_stack(void)
YY_BUFFER_STATE yy_create_buffer(FILE *file, int size)
Allocate and initialize an input buffer state.
#define YY_CURRENT_BUFFER_LVALUE
Definition: faustlexer.cpp:284
#define YY_CURRENT_BUFFER
Definition: faustlexer.cpp:277
static void yy_init_buffer(YY_BUFFER_STATE b, FILE *file)
#define YY_BUF_SIZE
Definition: faustlexer.cpp:145
static void yy_load_buffer_state(void)
FILE * yyin
Definition: faustlexer.cpp:351

Here is the call graph for this function:

Here is the caller graph for this function:

void yyset_debug ( int  debug_flag)

Definition at line 2709 of file faustlexer.cpp.

2710 {
2711  yy_flex_debug = bdebug ;
2712 }
int yy_flex_debug
Definition: faustlexer.cpp:782
void yyset_extra ( YY_EXTRA_TYPE  user_defined)
void yyset_in ( FILE *  in_str)

Set the input stream.

This does not discard the current input buffer.

Parameters
in_strA readable stream.
See also
yy_switch_to_buffer

Definition at line 2694 of file faustlexer.cpp.

References yyin.

2695 {
2696  yyin = in_str ;
2697 }
FILE * yyin
Definition: faustlexer.cpp:351
void yyset_lineno ( int  line_number)

Set the current line number.

Parameters
line_number

Definition at line 2682 of file faustlexer.cpp.

2683 {
2684 
2685  yylineno = line_number;
2686 }
int yylineno
Definition: faustlexer.cpp:357
void yyset_out ( FILE *  out_str)

Definition at line 2699 of file faustlexer.cpp.

References yyout.

2700 {
2701  yyout = out_str ;
2702 }
FILE * yyout
Definition: faustlexer.cpp:351
static void yyunput ( int  c,
char *  buf_ptr 
)
static
static void yyunput ( int  c,
register char *  yy_bp 
)
static

Definition at line 2138 of file faustlexer.cpp.

References if(), yy_c_buf_p, yy_cp, YY_CURRENT_BUFFER_LVALUE, YY_FATAL_ERROR, yy_hold_char, yy_n_chars, yylineno, and yytext_ptr.

2139 {
2140  register char *yy_cp;
2141 
2142  yy_cp = (yy_c_buf_p);
2143 
2144  /* undo effects of setting up yytext */
2145  *yy_cp = (yy_hold_char);
2146 
2147  if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
2148  { /* need to shift things up to make room */
2149  /* +2 for EOB chars. */
2150  register yy_size_t number_to_move = (yy_n_chars) + 2;
2151  register char *dest = &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[
2152  YY_CURRENT_BUFFER_LVALUE->yy_buf_size + 2];
2153  register char *source =
2154  &YY_CURRENT_BUFFER_LVALUE->yy_ch_buf[number_to_move];
2155 
2156  while ( source > YY_CURRENT_BUFFER_LVALUE->yy_ch_buf )
2157  *--dest = *--source;
2158 
2159  yy_cp += (int) (dest - source);
2160  yy_bp += (int) (dest - source);
2161  YY_CURRENT_BUFFER_LVALUE->yy_n_chars =
2162  (yy_n_chars) = YY_CURRENT_BUFFER_LVALUE->yy_buf_size;
2163 
2164  if ( yy_cp < YY_CURRENT_BUFFER_LVALUE->yy_ch_buf + 2 )
2165  YY_FATAL_ERROR( "flex scanner push-back overflow" );
2166  }
2167 
2168  *--yy_cp = (char) c;
2169 
2170  if ( c == '\n' ){
2171  --yylineno;
2172  }
2173 
2174  (yytext_ptr) = yy_bp;
2175  (yy_hold_char) = *yy_cp;
2176  (yy_c_buf_p) = yy_cp;
2177 }
int yylineno
Definition: faustlexer.cpp:357
register char * yy_bp
Definition: faustlexer.cpp:984
register char * yy_cp
Definition: faustlexer.cpp:984
static yy_size_t yy_n_chars
Definition: faustlexer.cpp:288
#define yytext_ptr
Definition: faustlexer.cpp:360
#define YY_CURRENT_BUFFER_LVALUE
Definition: faustlexer.cpp:284
static char * yy_c_buf_p
Definition: faustlexer.cpp:292
#define YY_FATAL_ERROR(msg)
Definition: faustlexer.cpp:948
static char yy_hold_char
Definition: faustlexer.cpp:287
if(!(yy_init))
Definition: faustlexer.cpp:993
size_t yy_size_t
Definition: faustlexer.cpp:159

Here is the call graph for this function:

int yywrap ( void  )

Definition at line 2818 of file faustlexer.cpp.

Referenced by input(), and while().

2818 { return 1; }

Here is the caller graph for this function:

Variable Documentation

yyconst flex_int16_t yy_accept[482]
static

Definition at line 386 of file faustlexer.cpp.

register int yy_act

Definition at line 985 of file faustlexer.cpp.

yyconst flex_int16_t yy_base[494]
static

Definition at line 486 of file faustlexer.cpp.

register char * yy_bp

Definition at line 984 of file faustlexer.cpp.

YY_BUFFER_STATE* yy_buffer_stack = 0
static

Stack as an array.

Definition at line 269 of file faustlexer.cpp.

Referenced by yy_init_globals(), yyensure_buffer_stack(), and yylex_destroy().

size_t yy_buffer_stack_max = 0
static

capacity of stack.

Definition at line 268 of file faustlexer.cpp.

Referenced by yy_init_globals(), and yyensure_buffer_stack().

size_t yy_buffer_stack_top = 0
static

index of top of stack.

Definition at line 267 of file faustlexer.cpp.

Referenced by yy_init_globals(), yyensure_buffer_stack(), yypop_buffer_state(), and yypush_buffer_state().

char* yy_c_buf_p = (char *) 0
static
yyconst flex_int16_t yy_chk[693]
static

Definition at line 685 of file faustlexer.cpp.

register char* yy_cp

Definition at line 984 of file faustlexer.cpp.

Referenced by while(), yy_get_previous_state(), and yyunput().

YY_DECL
Initial value:
{
register yy_state_type yy_current_state
int yy_state_type
Definition: faustlexer.cpp:353

The main scanner function which does all the work.

Definition at line 982 of file faustlexer.cpp.

yyconst flex_int16_t yy_def[494]
static

Definition at line 545 of file faustlexer.cpp.

int yy_did_buffer_switch_on_eof
static
yyconst flex_int32_t yy_ec[256]
static

Definition at line 443 of file faustlexer.cpp.

int yy_flex_debug = 0

Definition at line 782 of file faustlexer.cpp.

Referenced by yyget_debug().

char yy_hold_char
static
int yy_init = 0
static

Definition at line 293 of file faustlexer.cpp.

Referenced by if(), and yy_init_globals().

char* yy_last_accepting_cpos
static

Definition at line 779 of file faustlexer.cpp.

Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().

yy_state_type yy_last_accepting_state
static

Definition at line 778 of file faustlexer.cpp.

Referenced by while(), yy_get_previous_state(), and yy_try_NUL_trans().

yyconst flex_int32_t yy_meta[64]
static
Initial value:
=
{ 0,
1, 1, 2, 2, 1, 1, 1, 1, 1, 1,
1, 1, 3, 1, 1, 1, 4, 4, 5, 5,
5, 5, 5, 4, 1, 4, 4, 4, 1, 6,
1, 1, 1, 1, 5, 6, 6, 6, 6, 6,
6, 6, 6, 6, 6, 6, 6, 6, 6, 6,
6, 6, 6, 6, 6, 6, 6, 6, 6, 1,
1, 1, 1
}

Definition at line 475 of file faustlexer.cpp.

yy_size_t yy_n_chars
static
yyconst flex_int16_t yy_nxt[693]
static

Definition at line 604 of file faustlexer.cpp.

yyconst flex_int32_t yy_rule_can_match_eol[144]
static
Initial value:
=
{ 0,
0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0,
0, 1, 0, 0, }

Definition at line 767 of file faustlexer.cpp.

int yy_start = 0
static

Definition at line 294 of file faustlexer.cpp.

Referenced by if(), while(), yy_get_previous_state(), and yy_init_globals().

FILE* yyin = (FILE *) 0
yy_size_t yyleng

Definition at line 289 of file faustlexer.cpp.

Referenced by while(), and yyget_leng().

int yylineno = 1

Definition at line 357 of file faustlexer.cpp.

Referenced by yyget_lineno(), and yyunput().

FILE * yyout = (FILE *) 0

Definition at line 351 of file faustlexer.cpp.

Referenced by if(), yy_init_globals(), yyget_out(), and yyset_out().

char * yytext

Definition at line 791 of file faustlexer.cpp.

Referenced by yyget_text().