RE2C = $(builddir)/re2c$(EXEEXT)
# scanner
-SRC_SCANNER = $(srcdir)/src/scanner.re
+SRC_SCANNER = $(srcdir)/src/parse/scanner.re
AUTOGEN_SCANNER = $(builddir)/scanner.cc
BOOTSTRAP_SCANNER = $(srcdir)/bootstrap/scanner.cc
# parser
-SRC_PARSER = $(srcdir)/src/parser.ypp
+SRC_PARSER = $(srcdir)/src/parse/parser.ypp
AUTOGEN_PARSER = $(builddir)/parser.cc
AUTOGEN_PARSER_HDR = $(builddir)/y.tab.h
BOOTSTRAP_PARSER = $(srcdir)/bootstrap/parser.cc
BOOTSTRAP_DOC_HTML = $(srcdir)/bootstrap/manual.html
SRC_HDR = \
- $(srcdir)/src/c99_stdint.h \
- $(srcdir)/src/code.h \
- $(srcdir)/src/code_names.h \
- $(srcdir)/src/dfa.h \
- $(srcdir)/src/enc.h \
+ $(srcdir)/src/codegen/code.h \
+ $(srcdir)/src/codegen/code_names.h \
+ $(srcdir)/src/codegen/go.h \
+ $(srcdir)/src/codegen/indent.h \
+ $(srcdir)/src/codegen/input_api.h \
+ $(srcdir)/src/codegen/output.h \
+ $(srcdir)/src/codegen/print.h \
+ $(srcdir)/src/codegen/skeleton/skeleton.h \
+ $(srcdir)/src/dfa/encoding/enc.h \
+ $(srcdir)/src/dfa/encoding/range_suffix.h \
+ $(srcdir)/src/dfa/encoding/utf16/utf16.h \
+ $(srcdir)/src/dfa/encoding/utf16/utf16_range.h \
+ $(srcdir)/src/dfa/encoding/utf16/utf16_regexp.h \
+ $(srcdir)/src/dfa/encoding/utf8/utf8.h \
+ $(srcdir)/src/dfa/encoding/utf8/utf8_range.h \
+ $(srcdir)/src/dfa/encoding/utf8/utf8_regexp.h \
+ $(srcdir)/src/dfa/dfa.h \
+ $(srcdir)/src/dfa/ins.h \
+ $(srcdir)/src/dfa/re.h \
$(srcdir)/src/globals.h \
- $(srcdir)/src/go.h \
- $(srcdir)/src/indent.h \
- $(srcdir)/src/input.h \
- $(srcdir)/src/input_api.h \
- $(srcdir)/src/ins.h \
- $(srcdir)/src/free_list.h \
$(srcdir)/src/mbo_getopt.h \
- $(srcdir)/src/output.h \
- $(srcdir)/src/parser.h \
- $(srcdir)/src/print.h \
- $(srcdir)/src/range.h \
- $(srcdir)/src/range_suffix.h \
- $(srcdir)/src/re.h \
- $(srcdir)/src/scanner.h \
- $(srcdir)/src/skeleton.h \
- $(srcdir)/src/smart_ptr.h \
- $(srcdir)/src/substr.h \
- $(srcdir)/src/token.h \
- $(srcdir)/src/utf16.h \
- $(srcdir)/src/utf16_range.h \
- $(srcdir)/src/utf16_regexp.h \
- $(srcdir)/src/utf8.h \
- $(srcdir)/src/utf8_range.h \
- $(srcdir)/src/utf8_regexp.h
+ $(srcdir)/src/parse/input.h \
+ $(srcdir)/src/parse/parser.h \
+ $(srcdir)/src/parse/scanner.h \
+ $(srcdir)/src/parse/token.h \
+ $(srcdir)/src/util/c99_stdint.h \
+ $(srcdir)/src/util/free_list.h \
+ $(srcdir)/src/util/range.h \
+ $(srcdir)/src/util/smart_ptr.h \
+ $(srcdir)/src/util/substr.h
SRC = \
$(SRC_SCANNER) \
- $(srcdir)/src/actions.cc \
- $(srcdir)/src/code.cc \
- $(srcdir)/src/code_names.cc \
- $(srcdir)/src/dfa.cc \
- $(srcdir)/src/enc.cc \
- $(srcdir)/src/go_construct.cc \
- $(srcdir)/src/go_destruct.cc \
- $(srcdir)/src/go_emit.cc \
- $(srcdir)/src/go_used_labels.cc \
- $(srcdir)/src/input.cc \
- $(srcdir)/src/input_api.cc \
+ $(srcdir)/src/codegen/code.cc \
+ $(srcdir)/src/codegen/code_names.cc \
+ $(srcdir)/src/codegen/go_construct.cc \
+ $(srcdir)/src/codegen/go_destruct.cc \
+ $(srcdir)/src/codegen/go_emit.cc \
+ $(srcdir)/src/codegen/go_used_labels.cc \
+ $(srcdir)/src/codegen/input_api.cc \
+ $(srcdir)/src/codegen/output.cc \
+ $(srcdir)/src/codegen/print.cc \
+ $(srcdir)/src/codegen/skeleton/skeleton.cc \
+ $(srcdir)/src/codegen/translate.cc \
+ $(srcdir)/src/dfa/encoding/enc.cc \
+ $(srcdir)/src/dfa/encoding/range_suffix.cc \
+ $(srcdir)/src/dfa/encoding/utf16/utf16.cc \
+ $(srcdir)/src/dfa/encoding/utf16/utf16_range.cc \
+ $(srcdir)/src/dfa/encoding/utf16/utf16_regexp.cc \
+ $(srcdir)/src/dfa/encoding/utf8/utf8.cc \
+ $(srcdir)/src/dfa/encoding/utf8/utf8_range.cc \
+ $(srcdir)/src/dfa/encoding/utf8/utf8_regexp.cc \
+ $(srcdir)/src/dfa/actions.cc \
+ $(srcdir)/src/dfa/dfa.cc \
$(srcdir)/src/main.cc \
$(srcdir)/src/mbo_getopt.cc \
- $(srcdir)/src/output.cc \
- $(srcdir)/src/print.cc \
- $(srcdir)/src/range.cc \
- $(srcdir)/src/range_suffix.cc \
- $(srcdir)/src/skeleton.cc \
- $(srcdir)/src/substr.cc \
- $(srcdir)/src/translate.cc \
- $(srcdir)/src/utf8.cc \
- $(srcdir)/src/utf8_range.cc \
- $(srcdir)/src/utf8_regexp.cc \
- $(srcdir)/src/utf16.cc \
- $(srcdir)/src/utf16_range.cc \
- $(srcdir)/src/utf16_regexp.cc
+ $(srcdir)/src/parse/input.cc \
+ $(srcdir)/src/util/range.cc \
+ $(srcdir)/src/util/substr.cc
# omit SRC_PARSER here; include it in EXTRA_DIST instead
# (automake generates standard build rules for all YACC-ish
# sources, they will conflict with our custom build rule).
/* Copy the first part of user declarations. */
/* Line 189 of yacc.c */
-#line 1 "../src/parser.ypp"
+#line 1 "../src/parse/parser.ypp"
/* $Id$ */
#include <set>
#include "config.h"
-#include "src/c99_stdint.h"
-#include "src/dfa.h"
+#include "src/dfa/dfa.h"
#include "src/globals.h"
-#include "src/parser.h"
-#include "src/smart_ptr.h"
+#include "src/parse/parser.h"
+#include "src/util/c99_stdint.h"
+#include "src/util/smart_ptr.h"
#define YYMALLOC malloc
#define YYFREE free
{
/* Line 214 of yacc.c */
-#line 149 "../src/parser.ypp"
+#line 149 "../src/parse/parser.ypp"
re2c::Symbol *symbol;
re2c::RegExp *regexp;
case 2:
/* Line 1464 of yacc.c */
-#line 178 "../src/parser.ypp"
+#line 178 "../src/parse/parser.ypp"
{
;}
break;
case 3:
/* Line 1464 of yacc.c */
-#line 181 "../src/parser.ypp"
+#line 181 "../src/parse/parser.ypp"
{
foundRules = true;
;}
case 5:
/* Line 1464 of yacc.c */
-#line 189 "../src/parser.ypp"
+#line 189 "../src/parse/parser.ypp"
{
if ((yyvsp[(1) - (4)].symbol)->re)
{
case 6:
/* Line 1464 of yacc.c */
-#line 198 "../src/parser.ypp"
+#line 198 "../src/parse/parser.ypp"
{
if ((yyvsp[(1) - (2)].symbol)->re)
{
case 7:
/* Line 1464 of yacc.c */
-#line 207 "../src/parser.ypp"
+#line 207 "../src/parse/parser.ypp"
{
in->fatal("trailing contexts are not allowed in named definitions");
;}
case 8:
/* Line 1464 of yacc.c */
-#line 211 "../src/parser.ypp"
+#line 211 "../src/parse/parser.ypp"
{
in->fatal("trailing contexts are not allowed in named definitions");
;}
case 9:
/* Line 1464 of yacc.c */
-#line 215 "../src/parser.ypp"
+#line 215 "../src/parse/parser.ypp"
{
in->config(*(yyvsp[(1) - (4)].str), *(yyvsp[(3) - (4)].str));
delete (yyvsp[(1) - (4)].str);
case 10:
/* Line 1464 of yacc.c */
-#line 221 "../src/parser.ypp"
+#line 221 "../src/parse/parser.ypp"
{
in->config(*(yyvsp[(1) - (4)].str), (yyvsp[(3) - (4)].number));
delete (yyvsp[(1) - (4)].str);
case 11:
/* Line 1464 of yacc.c */
-#line 229 "../src/parser.ypp"
+#line 229 "../src/parse/parser.ypp"
{
if (cFlag)
{
case 12:
/* Line 1464 of yacc.c */
-#line 238 "../src/parser.ypp"
+#line 238 "../src/parse/parser.ypp"
{
if (cFlag)
in->fatal("condition or '<*>' required when using -c switch");
case 13:
/* Line 1464 of yacc.c */
-#line 247 "../src/parser.ypp"
+#line 247 "../src/parse/parser.ypp"
{
context_rule((yyvsp[(2) - (7)].clist), (yyvsp[(4) - (7)].regexp), (yyvsp[(5) - (7)].regexp), (yyvsp[(6) - (7)].str), (yyvsp[(7) - (7)].token));
;}
case 14:
/* Line 1464 of yacc.c */
-#line 251 "../src/parser.ypp"
+#line 251 "../src/parse/parser.ypp"
{
assert((yyvsp[(7) - (7)].str));
context_rule((yyvsp[(2) - (7)].clist), (yyvsp[(4) - (7)].regexp), (yyvsp[(5) - (7)].regexp), (yyvsp[(7) - (7)].str), NULL);
case 15:
/* Line 1464 of yacc.c */
-#line 256 "../src/parser.ypp"
+#line 256 "../src/parse/parser.ypp"
{
context_none((yyvsp[(2) - (6)].clist));
delete (yyvsp[(5) - (6)].str);
case 16:
/* Line 1464 of yacc.c */
-#line 261 "../src/parser.ypp"
+#line 261 "../src/parse/parser.ypp"
{
assert((yyvsp[(6) - (6)].str));
context_none((yyvsp[(2) - (6)].clist));
case 17:
/* Line 1464 of yacc.c */
-#line 267 "../src/parser.ypp"
+#line 267 "../src/parse/parser.ypp"
{
default_rule((yyvsp[(2) - (5)].clist), (yyvsp[(5) - (5)].token));
;}
case 18:
/* Line 1464 of yacc.c */
-#line 271 "../src/parser.ypp"
+#line 271 "../src/parse/parser.ypp"
{
context_check(NULL);
Token *token = new Token((yyvsp[(7) - (7)].token), (yyvsp[(7) - (7)].token)->source, (yyvsp[(7) - (7)].token)->line, (yyvsp[(6) - (7)].str));
case 19:
/* Line 1464 of yacc.c */
-#line 279 "../src/parser.ypp"
+#line 279 "../src/parse/parser.ypp"
{
assert((yyvsp[(7) - (7)].str));
context_check(NULL);
case 20:
/* Line 1464 of yacc.c */
-#line 287 "../src/parser.ypp"
+#line 287 "../src/parse/parser.ypp"
{
context_none(NULL);
delete (yyvsp[(5) - (6)].str);
case 21:
/* Line 1464 of yacc.c */
-#line 292 "../src/parser.ypp"
+#line 292 "../src/parse/parser.ypp"
{
assert((yyvsp[(6) - (6)].str));
context_none(NULL);
case 22:
/* Line 1464 of yacc.c */
-#line 298 "../src/parser.ypp"
+#line 298 "../src/parse/parser.ypp"
{
CondList *clist = new CondList();
clist->insert("*");
case 23:
/* Line 1464 of yacc.c */
-#line 304 "../src/parser.ypp"
+#line 304 "../src/parse/parser.ypp"
{
context_check(NULL);
if (specNone)
case 24:
/* Line 1464 of yacc.c */
-#line 316 "../src/parser.ypp"
+#line 316 "../src/parse/parser.ypp"
{
assert((yyvsp[(3) - (3)].str));
context_check(NULL);
case 25:
/* Line 1464 of yacc.c */
-#line 328 "../src/parser.ypp"
+#line 328 "../src/parse/parser.ypp"
{
CondList *clist = new CondList();
clist->insert("*");
case 26:
/* Line 1464 of yacc.c */
-#line 334 "../src/parser.ypp"
+#line 334 "../src/parse/parser.ypp"
{
setup_rule((yyvsp[(2) - (4)].clist), (yyvsp[(4) - (4)].token));
;}
case 27:
/* Line 1464 of yacc.c */
-#line 341 "../src/parser.ypp"
+#line 341 "../src/parse/parser.ypp"
{
in->fatal("unnamed condition not supported");
;}
case 28:
/* Line 1464 of yacc.c */
-#line 345 "../src/parser.ypp"
+#line 345 "../src/parse/parser.ypp"
{
(yyval.clist) = (yyvsp[(1) - (1)].clist);
;}
case 29:
/* Line 1464 of yacc.c */
-#line 352 "../src/parser.ypp"
+#line 352 "../src/parse/parser.ypp"
{
(yyval.clist) = new CondList();
(yyval.clist)->insert((yyvsp[(1) - (1)].symbol)->GetName().to_string());
case 30:
/* Line 1464 of yacc.c */
-#line 357 "../src/parser.ypp"
+#line 357 "../src/parse/parser.ypp"
{
(yyvsp[(1) - (3)].clist)->insert((yyvsp[(3) - (3)].symbol)->GetName().to_string());
(yyval.clist) = (yyvsp[(1) - (3)].clist);
case 31:
/* Line 1464 of yacc.c */
-#line 365 "../src/parser.ypp"
+#line 365 "../src/parse/parser.ypp"
{
(yyval.str) = NULL;
;}
case 32:
/* Line 1464 of yacc.c */
-#line 369 "../src/parser.ypp"
+#line 369 "../src/parse/parser.ypp"
{
(yyval.str) = new Str((yyvsp[(3) - (3)].symbol)->GetName().to_string().c_str());
;}
case 33:
/* Line 1464 of yacc.c */
-#line 376 "../src/parser.ypp"
+#line 376 "../src/parse/parser.ypp"
{
(yyval.regexp) = new NullOp;
;}
case 34:
/* Line 1464 of yacc.c */
-#line 380 "../src/parser.ypp"
+#line 380 "../src/parse/parser.ypp"
{
(yyval.regexp) = (yyvsp[(2) - (2)].regexp);
;}
case 35:
/* Line 1464 of yacc.c */
-#line 387 "../src/parser.ypp"
+#line 387 "../src/parse/parser.ypp"
{
(yyval.regexp) = (yyvsp[(1) - (1)].regexp);
;}
case 36:
/* Line 1464 of yacc.c */
-#line 391 "../src/parser.ypp"
+#line 391 "../src/parse/parser.ypp"
{
(yyval.regexp) = mkAlt((yyvsp[(1) - (3)].regexp), (yyvsp[(3) - (3)].regexp));
;}
case 37:
/* Line 1464 of yacc.c */
-#line 398 "../src/parser.ypp"
+#line 398 "../src/parse/parser.ypp"
{
(yyval.regexp) = (yyvsp[(1) - (1)].regexp);
;}
case 38:
/* Line 1464 of yacc.c */
-#line 402 "../src/parser.ypp"
+#line 402 "../src/parse/parser.ypp"
{
(yyval.regexp) = mkDiff((yyvsp[(1) - (3)].regexp), (yyvsp[(3) - (3)].regexp));
if(!(yyval.regexp))
case 39:
/* Line 1464 of yacc.c */
-#line 413 "../src/parser.ypp"
+#line 413 "../src/parse/parser.ypp"
{
(yyval.regexp) = (yyvsp[(1) - (1)].regexp);
;}
case 40:
/* Line 1464 of yacc.c */
-#line 417 "../src/parser.ypp"
+#line 417 "../src/parse/parser.ypp"
{
(yyval.regexp) = new CatOp((yyvsp[(1) - (2)].regexp), (yyvsp[(2) - (2)].regexp));
;}
case 41:
/* Line 1464 of yacc.c */
-#line 424 "../src/parser.ypp"
+#line 424 "../src/parse/parser.ypp"
{
(yyval.regexp) = (yyvsp[(1) - (1)].regexp);
;}
case 42:
/* Line 1464 of yacc.c */
-#line 428 "../src/parser.ypp"
+#line 428 "../src/parse/parser.ypp"
{
switch((yyvsp[(2) - (2)].op))
{
case 43:
/* Line 1464 of yacc.c */
-#line 443 "../src/parser.ypp"
+#line 443 "../src/parse/parser.ypp"
{
(yyval.regexp) = new CloseVOp((yyvsp[(1) - (2)].regexp), (yyvsp[(2) - (2)].extop).minsize, (yyvsp[(2) - (2)].extop).maxsize);
;}
case 44:
/* Line 1464 of yacc.c */
-#line 450 "../src/parser.ypp"
+#line 450 "../src/parse/parser.ypp"
{
(yyval.op) = (yyvsp[(1) - (1)].op);
;}
case 45:
/* Line 1464 of yacc.c */
-#line 454 "../src/parser.ypp"
+#line 454 "../src/parse/parser.ypp"
{
(yyval.op) = (yyvsp[(1) - (1)].op);
;}
case 46:
/* Line 1464 of yacc.c */
-#line 458 "../src/parser.ypp"
+#line 458 "../src/parse/parser.ypp"
{
(yyval.op) = ((yyvsp[(1) - (2)].op) == (yyvsp[(2) - (2)].op)) ? (yyvsp[(1) - (2)].op) : '*';
;}
case 47:
/* Line 1464 of yacc.c */
-#line 462 "../src/parser.ypp"
+#line 462 "../src/parse/parser.ypp"
{
(yyval.op) = ((yyvsp[(1) - (2)].op) == (yyvsp[(2) - (2)].op)) ? (yyvsp[(1) - (2)].op) : '*';
;}
case 48:
/* Line 1464 of yacc.c */
-#line 469 "../src/parser.ypp"
+#line 469 "../src/parse/parser.ypp"
{
if(!(yyvsp[(1) - (1)].symbol)->re)
{
case 49:
/* Line 1464 of yacc.c */
-#line 477 "../src/parser.ypp"
+#line 477 "../src/parse/parser.ypp"
{
(yyval.regexp) = (yyvsp[(1) - (1)].regexp);
;}
case 50:
/* Line 1464 of yacc.c */
-#line 481 "../src/parser.ypp"
+#line 481 "../src/parse/parser.ypp"
{
(yyval.regexp) = (yyvsp[(1) - (1)].regexp);
;}
case 51:
/* Line 1464 of yacc.c */
-#line 485 "../src/parser.ypp"
+#line 485 "../src/parse/parser.ypp"
{
(yyval.regexp) = (yyvsp[(2) - (3)].regexp);
;}
/* Line 1684 of yacc.c */
-#line 490 "../src/parser.ypp"
+#line 490 "../src/parse/parser.ypp"
extern "C" {
-/* Generated by re2c 0.14.1.dev on Fri May 8 22:17:28 2015*/
+/* Generated by re2c 0.14.1.dev on Mon May 11 13:39:25 2015*/
#include <stdlib.h>
#include <string.h>
#include <iostream>
#include <sstream>
-#include "src/dfa.h"
+#include "src/codegen/print.h"
+#include "src/dfa/dfa.h"
#include "src/globals.h"
-#include "src/parser.h"
-#include "src/print.h"
-#include "src/scanner.h"
+#include "src/parse/parser.h"
+#include "src/parse/scanner.h"
#include "y.tab.h"
extern YYSTYPE yylval;
{
/* Line 1685 of yacc.c */
-#line 149 "../src/parser.ypp"
+#line 149 "../src/parse/parser.ypp"
re2c::Symbol *symbol;
re2c::RegExp *regexp;
AM_INIT_AUTOMAKE([-Wall -Werror foreign])
-AC_CONFIG_SRCDIR([src/actions.cc])
+AC_CONFIG_SRCDIR([src/main.cc])
AC_CONFIG_HEADERS([config.h])
#include <iostream>
#include <sstream>
-#include "src/code.h"
-#include "src/dfa.h"
+#include "src/codegen/code.h"
+#include "src/codegen/go.h"
+#include "src/codegen/indent.h"
+#include "src/codegen/input_api.h"
+#include "src/codegen/print.h"
+#include "src/codegen/skeleton/skeleton.h"
+#include "src/dfa/dfa.h"
#include "src/globals.h"
-#include "src/go.h"
-#include "src/indent.h"
-#include "src/input_api.h"
-#include "src/parser.h"
-#include "src/print.h"
-#include "src/skeleton.h"
-#include "src/substr.h"
+#include "src/parse/parser.h"
+#include "src/util/substr.h"
namespace re2c
{
#ifndef _code_h
#define _code_h
-#include "src/re.h"
+#include "src/dfa/re.h"
namespace re2c
{
-#include "src/code_names.h"
+#include "src/codegen/code_names.h"
#include "src/globals.h"
namespace re2c
#include <iostream>
#include <vector>
-#include "src/c99_stdint.h"
-#include "src/code.h"
+#include "src/codegen/code.h"
+#include "src/util/c99_stdint.h"
namespace re2c
{
-#include "src/dfa.h"
-#include "src/go.h"
+#include "src/codegen/go.h"
+#include "src/dfa/dfa.h"
namespace re2c
{
-#include "src/dfa.h"
-#include "src/go.h"
+#include "src/codegen/go.h"
+#include "src/dfa/dfa.h"
namespace re2c
{
-#include "src/dfa.h"
-#include "src/go.h"
-#include "src/indent.h"
-#include "src/print.h"
+#include "src/codegen/go.h"
+#include "src/codegen/indent.h"
+#include "src/codegen/print.h"
+#include "src/dfa/dfa.h"
namespace re2c
{
-#include "src/dfa.h"
-#include "src/go.h"
+#include "src/codegen/go.h"
+#include "src/dfa/dfa.h"
namespace re2c
{
#include <sstream>
+#include "src/codegen/indent.h"
+#include "src/codegen/input_api.h"
#include "src/globals.h"
-#include "src/indent.h"
-#include "src/input_api.h"
namespace re2c
{
#include <map>
#include <string>
-#include "src/c99_stdint.h"
+#include "src/util/c99_stdint.h"
namespace re2c
{
#include <iomanip>
#include <stdio.h>
-#include "src/output.h"
-#include "src/print.h"
-#include "src/re.h"
+#include "src/codegen/output.h"
+#include "src/codegen/print.h"
+#include "src/dfa/re.h"
namespace re2c
{
#include <string>
#include <vector>
-#include "src/c99_stdint.h"
+#include "src/util/c99_stdint.h"
namespace re2c
{
#include <iostream>
+#include "src/codegen/print.h"
#include "src/globals.h"
-#include "src/print.h"
namespace re2c
{
#include <iosfwd>
-#include "src/c99_stdint.h"
+#include "src/util/c99_stdint.h"
namespace re2c
{
-#include "src/indent.h"
-#include "src/print.h"
-#include "src/skeleton.h"
+#include "src/codegen/indent.h"
+#include "src/codegen/print.h"
+#include "src/codegen/skeleton/skeleton.h"
namespace re2c
{
#include <map>
#include <vector>
-#include "src/c99_stdint.h"
-#include "src/dfa.h"
+#include "src/dfa/dfa.h"
+#include "src/util/c99_stdint.h"
namespace re2c
{
#include <iomanip>
#include <cctype>
-#include "src/dfa.h"
+#include "src/codegen/print.h"
+#include "src/codegen/skeleton/skeleton.h"
+#include "src/dfa/dfa.h"
+#include "src/dfa/encoding/utf16/utf16_regexp.h"
+#include "src/dfa/encoding/utf8/utf8_regexp.h"
#include "src/globals.h"
-#include "src/parser.h"
-#include "src/print.h"
-#include "src/skeleton.h"
-#include "src/utf8_regexp.h"
-#include "src/utf16_regexp.h"
+#include "src/parse/parser.h"
namespace re2c
{
#include <ctype.h>
#include <string.h>
-#include "src/dfa.h"
+#include "src/codegen/print.h"
+#include "src/dfa/dfa.h"
#include "src/globals.h"
-#include "src/print.h"
-#include "src/substr.h"
+#include "src/util/substr.h"
namespace re2c
{
#include <iosfwd>
#include <map>
-#include "src/go.h"
-#include "src/re.h"
+#include "src/codegen/go.h"
+#include "src/dfa/re.h"
namespace re2c
{
-#include "src/enc.h"
+#include "src/dfa/encoding/enc.h"
namespace re2c {
#ifndef _enc_h
#define _enc_h
-#include "src/c99_stdint.h"
-#include "src/range.h"
+#include "src/util/c99_stdint.h"
+#include "src/util/range.h"
namespace re2c {
-#include "src/re.h"
-#include "src/range_suffix.h"
+#include "src/dfa/encoding/range_suffix.h"
+#include "src/dfa/re.h"
namespace re2c {
#include <stddef.h> // NULL
-#include "src/c99_stdint.h"
-#include "src/free_list.h"
+#include "src/util/c99_stdint.h"
+#include "src/util/free_list.h"
namespace re2c {
-#include "src/utf16.h"
+#include "src/dfa/encoding/utf16/utf16.h"
namespace re2c {
#ifndef _re2c_utf16_h
#define _re2c_utf16_h
-#include "src/c99_stdint.h"
+#include "src/util/c99_stdint.h"
namespace re2c {
-#include "src/re.h"
-#include "src/utf16_range.h"
+#include "src/dfa/encoding/utf16/utf16_range.h"
+#include "src/dfa/re.h"
namespace re2c {
#ifndef _utf16_range_h
#define _utf16_range_h
-#include "src/range_suffix.h"
-#include "src/utf16.h"
+#include "src/dfa/encoding/range_suffix.h"
+#include "src/dfa/encoding/utf16/utf16.h"
namespace re2c {
-#include "src/re.h"
-#include "src/utf16_range.h"
-#include "src/utf16_regexp.h"
+#include "src/dfa/encoding/utf16/utf16_range.h"
+#include "src/dfa/encoding/utf16/utf16_regexp.h"
+#include "src/dfa/re.h"
namespace re2c {
#ifndef _utf16_regexp_h
#define _utf16_regexp_h
-#include "src/utf16.h"
+#include "src/dfa/encoding/utf16/utf16.h"
+#include "src/util/range.h"
namespace re2c {
-#include "src/utf8.h"
+#include "src/dfa/encoding/utf8/utf8.h"
namespace re2c {
#ifndef _re2c_utf8_h
#define _re2c_utf8_h
-#include "src/c99_stdint.h"
+#include "src/util/c99_stdint.h"
namespace re2c {
-#include "src/re.h"
-#include "src/utf8_range.h"
+#include "src/dfa/encoding/utf8/utf8_range.h"
+#include "src/dfa/re.h"
namespace re2c {
#ifndef _utf8_range_h
#define _utf8_range_h
-#include "src/range_suffix.h"
-#include "src/utf8.h"
+#include "src/dfa/encoding/range_suffix.h"
+#include "src/dfa/encoding/utf8/utf8.h"
namespace re2c {
-#include "src/re.h"
-#include "src/utf8_range.h"
-#include "src/utf8_regexp.h"
+#include "src/dfa/encoding/utf8/utf8_range.h"
+#include "src/dfa/encoding/utf8/utf8_regexp.h"
+#include "src/dfa/re.h"
namespace re2c {
#ifndef _utf8_regexp_h
#define _utf8_regexp_h
-#include "src/utf8.h"
+#include "src/dfa/encoding/utf8/utf8.h"
+#include "src/util/range.h"
namespace re2c {
#ifndef _ins_h
#define _ins_h
-#include "src/c99_stdint.h"
+#include "src/util/c99_stdint.h"
namespace re2c
{
#include <vector>
#include <string>
-#include "src/free_list.h"
+#include "src/codegen/output.h"
+#include "src/dfa/ins.h"
#include "src/globals.h"
-#include "src/ins.h"
-#include "src/output.h"
-#include "src/range.h"
-#include "src/smart_ptr.h"
-#include "src/token.h"
+#include "src/parse/token.h"
+#include "src/util/range.h"
+#include "src/util/smart_ptr.h"
+#include "src/util/free_list.h"
namespace re2c
{
#include <algorithm>
#include <string>
-#include "src/c99_stdint.h"
-#include "src/code_names.h"
-#include "src/enc.h"
-#include "src/input_api.h"
+#include "src/codegen/code_names.h"
+#include "src/codegen/input_api.h"
+#include "src/dfa/encoding/enc.h"
+#include "src/util/c99_stdint.h"
namespace re2c
{
#include <string.h>
#include "config.h"
-#include "src/dfa.h"
-#include "src/enc.h"
+#include "src/dfa/dfa.h"
+#include "src/dfa/encoding/enc.h"
#include "src/globals.h"
#include "src/mbo_getopt.h"
-#include "src/parser.h"
+#include "src/parse/parser.h"
namespace re2c
{
-#include "src/input.h"
+#include "src/parse/input.h"
namespace re2c {
#ifndef _parser_h
#define _parser_h
-#include "src/output.h"
-#include "src/re.h"
-#include "src/scanner.h"
+#include "src/codegen/output.h"
+#include "src/dfa/re.h"
+#include "src/parse/scanner.h"
namespace re2c
{
#include <set>
#include "config.h"
-#include "src/c99_stdint.h"
-#include "src/dfa.h"
+#include "src/dfa/dfa.h"
#include "src/globals.h"
-#include "src/parser.h"
-#include "src/smart_ptr.h"
+#include "src/parse/parser.h"
+#include "src/util/c99_stdint.h"
+#include "src/util/smart_ptr.h"
#define YYMALLOC malloc
#define YYFREE free
#include <string>
+#include "src/codegen/output.h"
+#include "src/dfa/re.h"
#include "src/globals.h"
-#include "src/input.h"
-#include "src/output.h"
-#include "src/re.h"
-#include "src/token.h"
+#include "src/parse/input.h"
+#include "src/parse/token.h"
namespace re2c
{
#include <iostream>
#include <sstream>
-#include "src/dfa.h"
+#include "src/codegen/print.h"
+#include "src/dfa/dfa.h"
#include "src/globals.h"
-#include "src/parser.h"
-#include "src/print.h"
-#include "src/scanner.h"
+#include "src/parse/parser.h"
+#include "src/parse/scanner.h"
#include "y.tab.h"
extern YYSTYPE yylval;
#ifndef _token_h
#define _token_h
-#include "src/substr.h"
+#include "src/util/substr.h"
namespace re2c
{
-#include "src/print.h"
-#include "src/range.h"
+#include "src/codegen/print.h"
+#include "src/util/range.h"
namespace re2c
{
#include <iostream>
-#include "src/c99_stdint.h"
-#include "src/free_list.h"
+#include "src/util/c99_stdint.h"
+#include "src/util/free_list.h"
namespace re2c
{
#include <stdlib.h>
#include "src/globals.h"
-#include "src/substr.h"
+#include "src/util/substr.h"
#ifndef HAVE_STRNDUP
#include <string.h>
#include "config.h"
-#include "src/c99_stdint.h"
+#include "src/util/c99_stdint.h"
namespace re2c
{