yosys-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
verilog_frontend.cc File Reference
#include "verilog_frontend.h"
#include "kernel/yosys.h"
#include "libs/sha1/sha1.h"
#include <stdarg.h>
+ Include dependency graph for verilog_frontend.cc:

Go to the source code of this file.

Data Structures

struct  VerilogFrontend
 
struct  VerilogDefaults
 

Functions

YOSYS_NAMESPACE_END void frontend_verilog_yyerror (char const *fmt,...)
 

Variables

static std::vector< std::string > verilog_defaults
 
static std::list< std::vector
< std::string > > 
verilog_defaults_stack
 
VerilogFrontend VerilogFrontend
 
VerilogDefaults VerilogDefaults
 

Function Documentation

YOSYS_NAMESPACE_END void frontend_verilog_yyerror ( char const *  fmt,
  ... 
)

Definition at line 364 of file verilog_frontend.cc.

365 {
366  va_list ap;
367  char buffer[1024];
368  char *p = buffer;
369  p += snprintf(p, buffer + sizeof(buffer) - p, "Parser error in line %s:%d: ",
371  va_start(ap, fmt);
372  p += vsnprintf(p, buffer + sizeof(buffer) - p, fmt, ap);
373  va_end(ap);
374  p += snprintf(p, buffer + sizeof(buffer) - p, "\n");
375  YOSYS_NAMESPACE_PREFIX log_error("%s", buffer);
376  exit(1);
377 }
#define YOSYS_NAMESPACE_PREFIX
Definition: yosys.h:101
void log_error(const char *format,...)
Definition: log.cc:204
int frontend_verilog_yyget_lineno(void)
std::string current_filename
Definition: ast.cc:49

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

std::vector<std::string> verilog_defaults
static

Definition at line 39 of file verilog_frontend.cc.

std::list<std::vector<std::string> > verilog_defaults_stack
static

Definition at line 40 of file verilog_frontend.cc.