Ignore:
Timestamp:
Aug 23, 2017, 12:31:45 AM (23 months ago)
Author:
xuedongx
Message:

new RE compiler pipeline for local language(enlightened by Glushkov automaton)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/re/re_toolchain.cpp

    r5561 r5617  
    1212#include <re/re_star_normal.h>         // for RE_Star_Normal
    1313#include <re/re_simplifier.h>          // for RE_Simplifier
     14#include <re/re_local.h>
    1415#include <re/printer_re.h>
     16#include <re/re_analysis.h>
    1517#include <iostream>
    1618
     
    9395void re2pablo_compiler(PabloKernel * kernel, RE * re_ast) {
    9496    Var * const basis = kernel->getInputStreamVar("basis");
     97    bool local = RE_Local::isLocalLanguage(re_ast) && isTypeForLocal(re_ast);
    9598    cc::CC_Compiler cc_compiler(kernel, basis);
    96     re::RE_Compiler re_compiler(kernel, cc_compiler);
     99    re::RE_Compiler re_compiler(kernel, cc_compiler, local);
    97100    re_compiler.compileUnicodeNames(re_ast);
    98101    re_compiler.compile(re_ast);
Note: See TracChangeset for help on using the changeset viewer.