yosys-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ilang_frontend.h File Reference
#include "kernel/yosys.h"
+ Include dependency graph for ilang_frontend.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 ILANG_FRONTEND
 

Functions

int rtlil_frontend_ilang_yylex (void)
 
void rtlil_frontend_ilang_yyerror (char const *s)
 
void rtlil_frontend_ilang_yyrestart (FILE *f)
 
int rtlil_frontend_ilang_yyparse (void)
 
int rtlil_frontend_ilang_yylex_destroy (void)
 
int rtlil_frontend_ilang_yyget_lineno (void)
 

Variables

std::istream * ILANG_FRONTEND::lexin
 
RTLIL::DesignILANG_FRONTEND::current_design
 
YOSYS_NAMESPACE_END int rtlil_frontend_ilang_yydebug
 

Function Documentation

void rtlil_frontend_ilang_yyerror ( char const *  s)

Definition at line 29 of file ilang_frontend.cc.

30 {
31  YOSYS_NAMESPACE_PREFIX log_error("Parser error in line %d: %s\n", rtlil_frontend_ilang_yyget_lineno(), s);
32 }
#define YOSYS_NAMESPACE_PREFIX
Definition: yosys.h:101
void log_error(const char *format,...)
Definition: log.cc:204
int rtlil_frontend_ilang_yyget_lineno(void)

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int rtlil_frontend_ilang_yyget_lineno ( void  )

Get the current line number.

Definition at line 1992 of file ilang_lexer.cc.

1993 {
1994 
1996 }
int rtlil_frontend_ilang_yylineno
Definition: ilang_lexer.cc:387

+ Here is the caller graph for this function:

int rtlil_frontend_ilang_yylex ( void  )
int rtlil_frontend_ilang_yylex_destroy ( void  )

Definition at line 2099 of file ilang_lexer.cc.

2100 {
2101 
2102  /* Pop the buffer stack, destroying each element. */
2103  while(YY_CURRENT_BUFFER){
2107  }
2108 
2109  /* Destroy the stack itself. */
2111  (yy_buffer_stack) = NULL;
2112 
2113  /* Reset the globals. This is important in a non-reentrant scanner so the next time
2114  * rtlil_frontend_ilang_yylex() is called, initialization will occur. */
2115  yy_init_globals( );
2116 
2117  return 0;
2118 }
static YY_BUFFER_STATE * yy_buffer_stack
Definition: ilang_lexer.cc:296
void rtlil_frontend_ilang_yy_delete_buffer(YY_BUFFER_STATE b)
void rtlil_frontend_ilang_yypop_buffer_state(void)
void rtlil_frontend_ilang_yyfree(void *)
#define NULL
#define YY_CURRENT_BUFFER
Definition: ilang_lexer.cc:304
static int yy_init_globals(void)
#define YY_CURRENT_BUFFER_LVALUE
Definition: ilang_lexer.cc:311

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int rtlil_frontend_ilang_yyparse ( void  )

+ Here is the caller graph for this function:

void rtlil_frontend_ilang_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 1612 of file ilang_lexer.cc.

1613 {
1614 
1615  if ( ! YY_CURRENT_BUFFER ){
1619  }
1620 
1623 }
static void rtlil_frontend_ilang_yyensure_buffer_stack(void)
#define YY_BUF_SIZE
Definition: ilang_lexer.cc:171
static void rtlil_frontend_ilang_yy_load_buffer_state(void)
YY_BUFFER_STATE rtlil_frontend_ilang_yy_create_buffer(FILE *file, int size)
#define YY_CURRENT_BUFFER
Definition: ilang_lexer.cc:304
static void rtlil_frontend_ilang_yy_init_buffer(YY_BUFFER_STATE b, FILE *file)
static void input_file(std::istream &f, std::string filename)
Definition: preproc.cc:196
FILE * rtlil_frontend_ilang_yyin
Definition: ilang_lexer.cc:381
#define YY_CURRENT_BUFFER_LVALUE
Definition: ilang_lexer.cc:311

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

YOSYS_NAMESPACE_END int rtlil_frontend_ilang_yydebug