File: tree_bison.cpp

package info (click to toggle)
foundry 0.0.20130809-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 632 kB
  • ctags: 2,340
  • sloc: cpp: 6,376; yacc: 366; makefile: 192; lex: 184
file content (17 lines) | stat: -rw-r--r-- 437 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/* Copyright 2009 Simon Richter <Simon.Richter@hogyros.de>
 *
 * Released under the GNU General Public Licence version 3.
 */

#include <iostream>

#include <cstdlib>

#include <tree_bison_cst.hpp>
#include <tree_bison_parse.hpp>

int tree_bison_error(YYLTYPE *loc, void *, foundry::tree::bison::start *&, char const *msg)
{
        std::cerr << loc->first_line << ":" << loc->first_column << ":" << msg << std::endl;
        exit(1);
}