-/* Generated by re2c 0.16 on Fri Jun 24 22:37:48 2016 */
+/* Generated by re2c 0.16 on Sat Jun 25 16:16:23 2016 */
#line 1 "../src/parse/lex.re"
#include "src/util/c99_stdint.h"
#include <stddef.h>
{
symbol_table_t::iterator i = symbol_table.find (* (yyvsp[(1) - (1)].str));
- delete (yyvsp[(1) - (1)].str);
if (i == symbol_table.end ())
{
- in->fatal("can't find symbol");
+ in->fatalf("'%s' is not defined", (yyvsp[(1) - (1)].str)->c_str());
}
+ delete (yyvsp[(1) - (1)].str);
(yyval.regexp) = i->second;
;}
break;
TOKEN_ID
{
symbol_table_t::iterator i = symbol_table.find (* $1);
- delete $1;
if (i == symbol_table.end ())
{
- in->fatal("can't find symbol");
+ in->fatalf("'%s' is not defined", $1->c_str());
}
+ delete $1;
$$ = i->second;
}
| TOKEN_REGEXP
void Scanner::fatalf(const char *fmt, ...) const
{
- char szBuf[4096];
+ static const char tail[] = "...";
+ static const size_t TAIL = sizeof(tail);
+ static const size_t MAX = 4096;
+ char msg[MAX + TAIL];
va_list args;
-
va_start(args, fmt);
- vsnprintf(szBuf, sizeof(szBuf), fmt, args);
+ vsnprintf(msg, MAX, fmt, args);
va_end(args);
-
- szBuf[sizeof(szBuf)-1] = '0';
-
- fatal(szBuf);
+
+ sprintf(&msg[MAX - 1], tail);
+
+ fatal(msg);
}
Scanner::~Scanner()
--- /dev/null
+re2c: error: line 2, column 11: 'name1' is not defined
--- /dev/null
+/*!re2c
+ name1 {}
+*/
-re2c: error: line 2, column 8219: can't find symbol
+re2c: error: line 2, column 8219: 'x0000_aaaaaaaaa_aaaaaaaaaaaaaaa_aaaaaaaaaaaaaaa_aaaaaaaaaaaaaa_x00040_aaaaaaaaa_aaaaaaaaaaaaaaa_aaaaaaaaaaaaaaa_aaaaaaaaaaaaaa_x00080_aaaaaaaaa_aaaaaaaaaaaaaaa_aaaaaaaaaaaaaaa_aaaaaaaaaaaaaa_x000C0_aaaaaaaaa_aaaaaaaaaaaaaaa_aaaaa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