diff options
Diffstat (limited to 'src/builder.cpp')
-rw-r--r-- | src/builder.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/builder.cpp b/src/builder.cpp index 3bcd593..d3cb2c0 100644 --- a/src/builder.cpp +++ b/src/builder.cpp | |||
@@ -563,3 +563,13 @@ void Builder::error( const std::string &err ) | |||
563 | throw BuildException( err.c_str() ); | 563 | throw BuildException( err.c_str() ); |
564 | } | 564 | } |
565 | 565 | ||
566 | void Builder::error( YYLTYPE *locp, const std::string &err ) | ||
567 | { | ||
568 | fprintf( stderr, "%s:%d-%d:%d-%d: %s\n", | ||
569 | file.c_str(), | ||
570 | locp->first_line, locp->last_line, | ||
571 | locp->first_column, locp->last_column, | ||
572 | err.c_str() | ||
573 | ); | ||
574 | } | ||
575 | |||