Created
July 22, 2011 13:15
-
-
Save adilakhter/1099428 to your computer and use it in GitHub Desktop.
sdf2imp_0_0.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.strategoxt.imp.generator; | |
import org.strategoxt.stratego_lib.*; | |
import org.strategoxt.stratego_lib.*; | |
import org.strategoxt.stratego_sglr.*; | |
import org.strategoxt.stratego_gpp.*; | |
import org.strategoxt.stratego_xtc.*; | |
import org.strategoxt.stratego_aterm.*; | |
import org.strategoxt.stratego_rtg.*; | |
import org.strategoxt.stratego_sglr.*; | |
import org.strategoxt.strc.*; | |
import org.strategoxt.stratego_sdf.*; | |
import org.strategoxt.java_front.*; | |
import org.strategoxt.lang.*; | |
import org.spoofax.interpreter.terms.*; | |
import static org.strategoxt.lang.Term.*; | |
import org.spoofax.interpreter.library.AbstractPrimitive; | |
import java.util.ArrayList; | |
import java.lang.ref.WeakReference; | |
@SuppressWarnings("all") public class sdf2imp_0_0 extends Strategy | |
{ | |
public static sdf2imp_0_0 instance = new sdf2imp_0_0(); | |
@Override public IStrategoTerm invoke(Context context, IStrategoTerm term) | |
{ | |
ITermFactory termFactory = context.getFactory(); | |
context.push("sdf2imp_0_0"); | |
Fail32306: | |
{ | |
TermReference h_4955 = new TermReference(); | |
IStrategoTerm i_4955 = null; | |
IStrategoTerm j_4955 = null; | |
IStrategoTerm k_4955 = null; | |
k_4955 = term; | |
IStrategoTerm term10820 = term; | |
Success10627: | |
{ | |
Fail32307: | |
{ | |
term = set_verbosity_0_0.instance.invoke(context, generator.const10544); | |
if(term == null) | |
break Fail32307; | |
if(true) | |
break Success10627; | |
} | |
term = term10820; | |
TermReference l_4955 = new TermReference(); | |
if(l_4955.value == null) | |
l_4955.value = term; | |
else | |
if(l_4955.value != term && !l_4955.value.match(term)) | |
break Fail32306; | |
term = context.invokePrimitive("SSL_stacktrace_get_all_frame_names", term, NO_STRATEGIES, NO_TERMS); | |
if(term == null) | |
break Fail32306; | |
lifted13158 lifted131580 = new lifted13158(); | |
lifted131580.l_4955 = l_4955; | |
term = report_failure_1_0.instance.invoke(context, term, lifted131580); | |
if(term == null) | |
break Fail32306; | |
} | |
term = k_4955; | |
IStrategoTerm term10821 = term; | |
Success10628: | |
{ | |
Fail32308: | |
{ | |
IStrategoTerm m_4955 = null; | |
m_4955 = term; | |
term = $Input$File_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32308; | |
term = m_4955; | |
{ | |
term = $Input$File_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = termFactory.makeAppl(sdf2imp._consFILE_1, new IStrategoTerm[]{term}); | |
IStrategoTerm term10822 = term; | |
Success10629: | |
{ | |
Fail32309: | |
{ | |
IStrategoTerm n_4955 = null; | |
n_4955 = term; | |
lifted13159 lifted131590 = new lifted13159(); | |
lifted131590.h_4955 = h_4955; | |
term = $F$I$L$E_1_0.instance.invoke(context, term, lifted131590); | |
if(term == null) | |
break Fail32309; | |
term = n_4955; | |
{ | |
IStrategoTerm o_4955 = null; | |
IStrategoTerm p_4955 = null; | |
IStrategoTerm g_4957 = null; | |
IStrategoTerm h_4957 = null; | |
IStrategoTerm j_4957 = null; | |
IStrategoTerm k_4957 = null; | |
IStrategoTerm l_4957 = null; | |
if(h_4955.value == null) | |
break Fail32306; | |
term = find_def_file_0_0.instance.invoke(context, h_4955.value); | |
if(term == null) | |
break Fail32306; | |
o_4955 = term; | |
p_4955 = term; | |
j_4957 = term; | |
g_4957 = generator.const11293; | |
k_4957 = j_4957; | |
h_4957 = generator.constCons11406; | |
l_4957 = k_4957; | |
term = termFactory.makeTuple(generator.const11294, p_4955); | |
term = dr_set_rule_0_3.instance.invoke(context, l_4957, g_4957, h_4957, term); | |
if(term == null) | |
break Fail32306; | |
term = o_4955; | |
term = termFactory.makeAppl(sdf2imp._consFILE_1, new IStrategoTerm[]{term}); | |
if(true) | |
break Success10629; | |
} | |
} | |
term = term10822; | |
IStrategoTerm r_4955 = null; | |
r_4955 = term; | |
Success10630: | |
{ | |
Fail32310: | |
{ | |
IStrategoTerm y_4955 = null; | |
IStrategoTerm a_4956 = null; | |
IStrategoTerm b_4956 = null; | |
term = $Input$File_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32310; | |
IStrategoTerm term10824 = term; | |
Success10631: | |
{ | |
Fail32311: | |
{ | |
term = concat_strings_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32311; | |
if(true) | |
break Success10631; | |
} | |
term = term10824; | |
IStrategoTerm term10825 = term; | |
Success10632: | |
{ | |
Fail32312: | |
{ | |
term = is_string_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32312; | |
if(true) | |
break Success10632; | |
} | |
term = term10825; | |
IStrategoTerm term10826 = term; | |
Success10633: | |
{ | |
Fail32313: | |
{ | |
term = int_to_string_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32313; | |
if(true) | |
break Success10633; | |
} | |
term = term10826; | |
IStrategoTerm term10827 = term; | |
Success10634: | |
{ | |
Fail32314: | |
{ | |
term = real_to_string_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32314; | |
if(true) | |
break Success10634; | |
} | |
term = term10827; | |
IStrategoTerm u_4955 = null; | |
IStrategoTerm v_4955 = null; | |
IStrategoTerm x_4955 = null; | |
u_4955 = term; | |
term = context.invokePrimitive("SSL_stacktrace_get_all_frame_names", term, NO_STRATEGIES, NO_TERMS); | |
if(term == null) | |
break Fail32310; | |
if(term.getTermType() != IStrategoTerm.LIST || ((IStrategoList)term).isEmpty()) | |
break Fail32310; | |
v_4955 = ((IStrategoList)term).tail(); | |
x_4955 = v_4955; | |
term = report_failure_0_2.instance.invoke(context, x_4955, generator.const11333, u_4955); | |
if(term == null) | |
break Fail32310; | |
} | |
} | |
} | |
} | |
a_4956 = term; | |
y_4955 = generator.const10536; | |
b_4956 = a_4956; | |
term = string_replace_0_2.instance.invoke(context, b_4956, y_4955, generator.const10540); | |
if(term == null) | |
break Fail32310; | |
term = (IStrategoTerm)termFactory.makeListCons(generator.const10740, termFactory.makeListCons(term, (IStrategoList)generator.constNil10)); | |
term = concat_strings_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32310; | |
term = termFactory.annotateTerm(term, checkListAnnos(termFactory, generator.constNil10)); | |
term = file_exists_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32310; | |
if(true) | |
break Success10630; | |
} | |
term = generator.const10511; | |
IStrategoTerm term10828 = term; | |
Success10635: | |
{ | |
Fail32315: | |
{ | |
term = file_exists_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32315; | |
if(true) | |
break Success10635; | |
} | |
term = mkdir_0_0.instance.invoke(context, term10828); | |
if(term == null) | |
break Fail32306; | |
} | |
term = $Input$File_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = termFactory.makeTuple(term, generator.const10511); | |
term = copy_file_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
} | |
term = r_4955; | |
} | |
j_4955 = term; | |
if(true) | |
break Success10628; | |
} | |
} | |
term = term10821; | |
IStrategoTerm v_4957 = null; | |
IStrategoTerm m_4956 = null; | |
IStrategoTerm o_4956 = null; | |
IStrategoTerm p_4956 = null; | |
IStrategoTerm q_4956 = null; | |
IStrategoTerm r_4956 = null; | |
IStrategoTerm g_4958 = null; | |
IStrategoTerm h_4958 = null; | |
IStrategoTerm j_4958 = null; | |
IStrategoTerm k_4958 = null; | |
IStrategoTerm l_4958 = null; | |
v_4957 = term; | |
term = require_option_1_1.instance.invoke(context, v_4957, lifted13160.instance, generator.const10755); | |
if(term == null) | |
break Fail32306; | |
IStrategoTerm term10829 = term; | |
Success10636: | |
{ | |
Fail32316: | |
{ | |
IStrategoTerm c_4956 = null; | |
c_4956 = term; | |
IStrategoTerm term10830 = term; | |
Success10637: | |
{ | |
Fail32317: | |
{ | |
term = $Start$Symbol_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32317; | |
{ | |
if(true) | |
break Fail32316; | |
if(true) | |
break Success10637; | |
} | |
} | |
term = term10830; | |
} | |
term = c_4956; | |
{ | |
IStrategoTerm d_4956 = null; | |
IStrategoTerm e_4956 = null; | |
IStrategoTerm w_4957 = null; | |
IStrategoTerm x_4957 = null; | |
IStrategoTerm z_4957 = null; | |
IStrategoTerm a_4958 = null; | |
IStrategoTerm b_4958 = null; | |
d_4956 = term; | |
term = generator.const10626; | |
e_4956 = generator.const10626; | |
z_4957 = term; | |
w_4957 = generator.const10761; | |
a_4958 = z_4957; | |
x_4957 = generator.constCons11406; | |
b_4958 = a_4958; | |
term = termFactory.makeTuple(generator.const10762, e_4956); | |
term = dr_set_rule_0_3.instance.invoke(context, b_4958, w_4957, x_4957, term); | |
if(term == null) | |
break Fail32306; | |
term = d_4956; | |
if(true) | |
break Success10636; | |
} | |
} | |
term = term10829; | |
} | |
term = create_grammar_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = create_pp_table_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = create_example_trans_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = create_java_strategy_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = get_sdf_main_module_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
IStrategoTerm term10831 = term; | |
Success10638: | |
{ | |
Fail32318: | |
{ | |
term = concat_strings_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32318; | |
if(true) | |
break Success10638; | |
} | |
term = term10831; | |
IStrategoTerm term10832 = term; | |
Success10639: | |
{ | |
Fail32319: | |
{ | |
term = is_string_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32319; | |
if(true) | |
break Success10639; | |
} | |
term = term10832; | |
IStrategoTerm term10833 = term; | |
Success10640: | |
{ | |
Fail32320: | |
{ | |
term = int_to_string_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32320; | |
if(true) | |
break Success10640; | |
} | |
term = term10833; | |
IStrategoTerm term10834 = term; | |
Success10641: | |
{ | |
Fail32321: | |
{ | |
term = real_to_string_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32321; | |
if(true) | |
break Success10641; | |
} | |
term = term10834; | |
IStrategoTerm i_4956 = null; | |
IStrategoTerm j_4956 = null; | |
IStrategoTerm l_4956 = null; | |
i_4956 = term; | |
term = context.invokePrimitive("SSL_stacktrace_get_all_frame_names", term, NO_STRATEGIES, NO_TERMS); | |
if(term == null) | |
break Fail32306; | |
if(term.getTermType() != IStrategoTerm.LIST || ((IStrategoList)term).isEmpty()) | |
break Fail32306; | |
j_4956 = ((IStrategoList)term).tail(); | |
l_4956 = j_4956; | |
term = report_failure_0_2.instance.invoke(context, l_4956, generator.const11333, i_4956); | |
if(term == null) | |
break Fail32306; | |
} | |
} | |
} | |
} | |
o_4956 = term; | |
m_4956 = generator.const10536; | |
p_4956 = o_4956; | |
term = string_replace_0_2.instance.invoke(context, p_4956, m_4956, generator.const10537); | |
if(term == null) | |
break Fail32306; | |
term = (IStrategoTerm)termFactory.makeListCons(generator.const10828, termFactory.makeListCons(term, (IStrategoList)generator.constCons11391)); | |
term = concat_strings_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = termFactory.makeAppl(sdf2imp._consFILE_1, new IStrategoTerm[]{termFactory.annotateTerm(term, checkListAnnos(termFactory, generator.constNil10))}); | |
term = pack_default_sdf_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
j_4955 = term; | |
if(term.getTermType() != IStrategoTerm.APPL || sdf2imp._consFILE_1 != ((IStrategoAppl)term).getConstructor()) | |
break Fail32306; | |
i_4955 = term.getSubterm(0); | |
q_4956 = term; | |
term = i_4955; | |
r_4956 = i_4955; | |
j_4958 = term; | |
g_4958 = generator.const11334; | |
k_4958 = j_4958; | |
h_4958 = generator.constCons11406; | |
l_4958 = k_4958; | |
term = termFactory.makeTuple(generator.const11335, r_4956); | |
term = dr_set_rule_0_3.instance.invoke(context, l_4958, g_4958, h_4958, term); | |
if(term == null) | |
break Fail32306; | |
term = q_4956; | |
} | |
term = configure_main_descriptor_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
IStrategoTerm term10835 = term; | |
Success10642: | |
{ | |
Fail32322: | |
{ | |
IStrategoTerm t_4956 = null; | |
t_4956 = term; | |
term = is_heuristic_services_needed_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32322; | |
term = t_4956; | |
{ | |
IStrategoTerm m_4958 = null; | |
term = sdf2rtg_0_0.instance.invoke(context, j_4955); | |
if(term == null) | |
break Fail32306; | |
if(term.getTermType() != IStrategoTerm.APPL || sdf2imp._consRTG_2 != ((IStrategoAppl)term).getConstructor()) | |
break Fail32306; | |
IStrategoTerm arg7635 = term.getSubterm(1); | |
if(arg7635.getTermType() != IStrategoTerm.APPL || sdf2imp._consProdRules_1 != ((IStrategoAppl)arg7635).getConstructor()) | |
break Fail32306; | |
m_4958 = arg7635.getSubterm(0); | |
term = register_rtg_0_0.instance.invoke(context, m_4958); | |
if(term == null) | |
break Fail32306; | |
if(true) | |
break Success10642; | |
} | |
} | |
term = term10835; | |
} | |
IStrategoTerm term10836 = term; | |
Success10643: | |
{ | |
Fail32323: | |
{ | |
IStrategoTerm u_4956 = null; | |
u_4956 = term; | |
IStrategoTerm term10837 = term; | |
Success10644: | |
{ | |
Fail32324: | |
{ | |
term = $Is$Launched$From$Eclipse_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32324; | |
{ | |
if(true) | |
break Fail32323; | |
if(true) | |
break Success10644; | |
} | |
} | |
term = term10837; | |
} | |
term = u_4956; | |
{ | |
term = copy_or_create_parse_table_0_0.instance.invoke(context, j_4955); | |
if(term == null) | |
break Fail32306; | |
if(true) | |
break Success10643; | |
} | |
} | |
term = term10836; | |
} | |
IStrategoTerm term10838 = term; | |
Success10645: | |
{ | |
Fail32325: | |
{ | |
IStrategoTerm v_4956 = null; | |
v_4956 = term; | |
term = $No$Existing$Descriptor_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32325; | |
term = v_4956; | |
{ | |
term = create_main_descriptor_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
if(true) | |
break Success10645; | |
} | |
} | |
term = term10838; | |
} | |
term = create_syntax_descriptor_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = create_folding_descriptor_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = create_outliner_descriptor_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = create_colorer_descriptor_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = create_builders_descriptor_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = create_references_descriptor_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = create_completions_descriptor_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = create_packed_descriptor_file_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = create_parse_controller_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = create_validator_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = create_build_properties_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = create_project_file_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = create_activator_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = create_classpath_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = create_manifest_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = create_plugin_xml_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = create_build_xml_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = create_build_generated_xml_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = create_builder_xml_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = create_example_file_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = create_common_trans_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = copy_jars_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = copy_def_file_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = create_jdt_prefs_0_0.instance.invoke(context, term); | |
if(term == null) | |
break Fail32306; | |
term = say_1_0.instance.invoke(context, term, lifted13161.instance); | |
if(term == null) | |
break Fail32306; | |
context.popOnSuccess(); | |
if(true) | |
return term; | |
} | |
context.popOnFailure(); | |
return null; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment