+/* This C file is generated by NIT to compile module abstract_collection. */
#include "abstract_collection._sep.h"
val_t abstract_collection___Collection___iterator(val_t self) {
struct trace_t trace = {NULL, "abstract_collection::Collection::iterator (bin/../lib/standard//abstract_collection.nit:42,2--43:26)"};
+/* This C header file is generated by NIT to compile modules and programs that requires abstract_collection. */
#ifndef abstract_collection__sep
#define abstract_collection__sep
#include "kernel._sep.h"
+/* This C file is generated by NIT to compile module abstractmetamodel. */
#include "abstractmetamodel._sep.h"
void abstractmetamodel___MMContext___init(val_t self, int* init_table) {
struct trace_t trace = {NULL, "abstractmetamodel::MMContext::init (src/metamodel//abstractmetamodel.nit:26,2--5)"};
+/* This C header file is generated by NIT to compile modules and programs that requires abstractmetamodel. */
#ifndef abstractmetamodel__sep
#define abstractmetamodel__sep
#include "partial_order._sep.h"
+/* This C file is generated by NIT to compile module abstracttool. */
#include "abstracttool._sep.h"
void abstracttool___AbstractCompiler___init(val_t self, int* init_table) {
struct trace_t trace = {NULL, "abstracttool::AbstractCompiler::init (src/abstracttool.nit:28,2--31:37)"};
+/* This C header file is generated by NIT to compile modules and programs that requires abstracttool. */
#ifndef abstracttool__sep
#define abstracttool__sep
#include "syntax._sep.h"
+/* This C file is generated by NIT to compile module array. */
#include "array._sep.h"
void array___AbstractArray___enlarge(val_t self, val_t param0) {
struct trace_t trace = {NULL, "array::AbstractArray::enlarge (bin/../lib/standard//array.nit:23,2--22)"};
+/* This C header file is generated by NIT to compile modules and programs that requires array. */
#ifndef array__sep
#define array__sep
#include "abstract_collection._sep.h"
+/* This C file is generated by NIT to compile module compiling. */
#include "compiling._sep.h"
void compiling___MMSrcModule___compile_prog_to_c(val_t self, val_t param0) {
- struct trace_t trace = {NULL, "compiling::MMSrcModule::compile_prog_to_c (src/compiling//compiling.nit:26,2--75:23)"};
+ struct trace_t trace = {NULL, "compiling::MMSrcModule::compile_prog_to_c (src/compiling//compiling.nit:26,2--76:23)"};
val_t variable0;
val_t variable1;
val_t variable2;
variable6 = NEW_string___String___with_native(BOX_NativeString("#!/bin/sh\n"), TAG_Int(10)); /*new String*/
((file___OFStream___write_t)CALL( variable5 /*f*/,COLOR_stream___OStream___write))( variable5 /*f*/, variable6) /*OFStream::write*/;
variable6 = NEW_string___String___init(); /*new String*/
+ variable7 = NEW_string___String___with_native(BOX_NativeString("# This shell script is generated by NIT to compile the program "), TAG_Int(63)); /*new String*/
+ variable8 = variable7;
+ ((string___String___append_t)CALL(variable6,COLOR_abstract_collection___IndexedCollection___append))(variable6, variable8) /*String::append*/;
+ variable9 = ((abstractmetamodel___MMModule___name_t)CALL( self,COLOR_abstractmetamodel___MMModule___name))( self) /*MMSrcModule::name*/;
+ variable10 = variable9;
+ variable10 = ((string___String___to_s_t)CALL(variable10,COLOR_string___Object___to_s))(variable10) /*String::to_s*/;
+ ((string___String___append_t)CALL(variable6,COLOR_abstract_collection___IndexedCollection___append))(variable6, variable10) /*String::append*/;
+ variable11 = NEW_string___String___with_native(BOX_NativeString(".\n"), TAG_Int(2)); /*new String*/
+ variable12 = variable11;
+ ((string___String___append_t)CALL(variable6,COLOR_abstract_collection___IndexedCollection___append))(variable6, variable12) /*String::append*/;
+ ((file___OFStream___write_t)CALL( variable5 /*f*/,COLOR_stream___OStream___write))( variable5 /*f*/, variable6) /*OFStream::write*/;
+ variable6 = NEW_string___String___init(); /*new String*/
variable7 = NEW_string___String___with_native(BOX_NativeString("CLIBDIR=\""), TAG_Int(9)); /*new String*/
variable8 = variable7;
((string___String___append_t)CALL(variable6,COLOR_abstract_collection___IndexedCollection___append))(variable6, variable8) /*String::append*/;
return;
}
void compiling___MMSrcModule___compile_main(val_t self, val_t param0, val_t param1) {
- struct trace_t trace = {NULL, "compiling::MMSrcModule::compile_main (src/compiling//compiling.nit:79,2--93:9)"};
+ struct trace_t trace = {NULL, "compiling::MMSrcModule::compile_main (src/compiling//compiling.nit:80,2--95:9)"};
val_t variable0;
val_t variable1;
val_t variable2;
variable5 = NEW_file___OFStream___open(variable4); /*new OFStream*/
variable4 = variable5;
variable3 = variable4;
+ variable4 = NEW_string___String___init(); /*new String*/
+ variable5 = NEW_string___String___with_native(BOX_NativeString("/* This C file is generated by NIT to compile program "), TAG_Int(54)); /*new String*/
+ variable6 = variable5;
+ ((string___String___append_t)CALL(variable4,COLOR_abstract_collection___IndexedCollection___append))(variable4, variable6) /*String::append*/;
+ variable7 = ((abstractmetamodel___MMModule___name_t)CALL( self,COLOR_abstractmetamodel___MMModule___name))( self) /*MMSrcModule::name*/;
+ variable8 = variable7;
+ variable8 = ((string___String___to_s_t)CALL(variable8,COLOR_string___Object___to_s))(variable8) /*String::to_s*/;
+ ((string___String___append_t)CALL(variable4,COLOR_abstract_collection___IndexedCollection___append))(variable4, variable8) /*String::append*/;
+ variable9 = NEW_string___String___with_native(BOX_NativeString(". */\n"), TAG_Int(5)); /*new String*/
+ variable10 = variable9;
+ ((string___String___append_t)CALL(variable4,COLOR_abstract_collection___IndexedCollection___append))(variable4, variable10) /*String::append*/;
+ ((file___OFStream___write_t)CALL( variable3 /*f*/,COLOR_stream___OStream___write))( variable3 /*f*/, variable4) /*OFStream::write*/;
variable4 = ((abstractmetamodel___MMModule___mhe_t)CALL( self,COLOR_abstractmetamodel___MMModule___mhe))( self) /*MMSrcModule::mhe*/;
variable4 = ((partial_order___PartialOrderElement___greaters_and_self_t)CALL(variable4,COLOR_partial_order___PartialOrderElement___greaters_and_self))(variable4) /*PartialOrderElement::greaters_and_self*/;
variable4 = ((abstract_collection___Collection___iterator_t)CALL(variable4,COLOR_abstract_collection___Collection___iterator))(variable4) /*Collection::iterator*/;
return;
}
void compiling___MMSrcModule___compile_separate_module(val_t self, val_t param0, val_t param1) {
- struct trace_t trace = {NULL, "compiling::MMSrcModule::compile_separate_module (src/compiling//compiling.nit:96,2--119:9)"};
+ struct trace_t trace = {NULL, "compiling::MMSrcModule::compile_separate_module (src/compiling//compiling.nit:98,2--123:9)"};
val_t variable0;
val_t variable1;
val_t variable2;
variable5 = variable6;
variable4 = variable5;
variable5 = NEW_string___String___init(); /*new String*/
+ variable6 = NEW_string___String___with_native(BOX_NativeString("/* This C header file is generated by NIT to compile modules and programs that requires "), TAG_Int(88)); /*new String*/
+ variable7 = variable6;
+ ((string___String___append_t)CALL(variable5,COLOR_abstract_collection___IndexedCollection___append))(variable5, variable7) /*String::append*/;
+ variable8 = ((abstractmetamodel___MMModule___name_t)CALL( self,COLOR_abstractmetamodel___MMModule___name))( self) /*MMSrcModule::name*/;
+ variable9 = variable8;
+ variable9 = ((string___String___to_s_t)CALL(variable9,COLOR_string___Object___to_s))(variable9) /*String::to_s*/;
+ ((string___String___append_t)CALL(variable5,COLOR_abstract_collection___IndexedCollection___append))(variable5, variable9) /*String::append*/;
+ variable10 = NEW_string___String___with_native(BOX_NativeString(". */\n"), TAG_Int(5)); /*new String*/
+ variable11 = variable10;
+ ((string___String___append_t)CALL(variable5,COLOR_abstract_collection___IndexedCollection___append))(variable5, variable11) /*String::append*/;
+ ((file___OFStream___write_t)CALL( variable4 /*f*/,COLOR_stream___OStream___write))( variable4 /*f*/, variable5) /*OFStream::write*/;
+ variable5 = NEW_string___String___init(); /*new String*/
variable6 = NEW_string___String___with_native(BOX_NativeString("#ifndef "), TAG_Int(8)); /*new String*/
variable7 = variable6;
((string___String___append_t)CALL(variable5,COLOR_abstract_collection___IndexedCollection___append))(variable5, variable7) /*String::append*/;
variable6 = variable7;
variable5 = variable6;
variable6 = NEW_string___String___init(); /*new String*/
+ variable7 = NEW_string___String___with_native(BOX_NativeString("/* This C file is generated by NIT to compile module "), TAG_Int(53)); /*new String*/
+ variable8 = variable7;
+ ((string___String___append_t)CALL(variable6,COLOR_abstract_collection___IndexedCollection___append))(variable6, variable8) /*String::append*/;
+ variable9 = ((abstractmetamodel___MMModule___name_t)CALL( self,COLOR_abstractmetamodel___MMModule___name))( self) /*MMSrcModule::name*/;
+ variable10 = variable9;
+ variable10 = ((string___String___to_s_t)CALL(variable10,COLOR_string___Object___to_s))(variable10) /*String::to_s*/;
+ ((string___String___append_t)CALL(variable6,COLOR_abstract_collection___IndexedCollection___append))(variable6, variable10) /*String::append*/;
+ variable11 = NEW_string___String___with_native(BOX_NativeString(". */\n"), TAG_Int(5)); /*new String*/
+ variable12 = variable11;
+ ((string___String___append_t)CALL(variable6,COLOR_abstract_collection___IndexedCollection___append))(variable6, variable12) /*String::append*/;
+ ((file___OFStream___write_t)CALL( variable5 /*f*/,COLOR_stream___OStream___write))( variable5 /*f*/, variable6) /*OFStream::write*/;
+ variable6 = NEW_string___String___init(); /*new String*/
variable7 = NEW_string___String___with_native(BOX_NativeString("#include \""), TAG_Int(10)); /*new String*/
variable8 = variable7;
((string___String___append_t)CALL(variable6,COLOR_abstract_collection___IndexedCollection___append))(variable6, variable8) /*String::append*/;
+/* This C header file is generated by NIT to compile modules and programs that requires compiling. */
#ifndef compiling__sep
#define compiling__sep
#include "compiling_global._sep.h"
+/* This C file is generated by NIT to compile module compiling_base. */
#include "compiling_base._sep.h"
val_t compiling_base___ToolContext___global(val_t self) {
struct trace_t trace = {NULL, "compiling_base::ToolContext::global (src/compiling//compiling_base.nit:24,2--37)"};
+/* This C header file is generated by NIT to compile modules and programs that requires compiling_base. */
#ifndef compiling_base__sep
#define compiling_base__sep
#include "syntax._sep.h"
+/* This C file is generated by NIT to compile module compiling_global. */
#include "compiling_global._sep.h"
val_t compiling_global___ColorContext___color(val_t self, val_t param0) {
struct trace_t trace = {NULL, "compiling_global::ColorContext::color (src/compiling//compiling_global.nit:28,2--31:18)"};
+/* This C header file is generated by NIT to compile modules and programs that requires compiling_global. */
#ifndef compiling_global__sep
#define compiling_global__sep
#include "compiling_methods._sep.h"
+/* This C file is generated by NIT to compile module compiling_methods. */
#include "compiling_methods._sep.h"
void compiling_methods___CompilerVisitor___compile_stmt(val_t self, val_t param0) {
struct trace_t trace = {NULL, "compiling_methods::CompilerVisitor::compile_stmt (src/compiling//compiling_methods.nit:24,2--30:21)"};
+/* This C header file is generated by NIT to compile modules and programs that requires compiling_methods. */
#ifndef compiling_methods__sep
#define compiling_methods__sep
#include "compiling_base._sep.h"
+/* This C file is generated by NIT to compile module control_flow. */
#include "control_flow._sep.h"
void control_flow___MMSrcModule___do_control_flow(val_t self, val_t param0) {
struct trace_t trace = {NULL, "control_flow::MMSrcModule::do_control_flow (src/syntax//control_flow.nit:23,2--28:15)"};
+/* This C header file is generated by NIT to compile modules and programs that requires control_flow. */
#ifndef control_flow__sep
#define control_flow__sep
#include "syntax_base._sep.h"
+/* This C file is generated by NIT to compile module environ. */
#include "environ._sep.h"
val_t environ___Symbol___environ(val_t self) {
struct trace_t trace = {NULL, "environ::Symbol::environ (bin/../lib/standard//environ.nit:19,2--23:60)"};
+/* This C header file is generated by NIT to compile modules and programs that requires environ. */
#ifndef environ__sep
#define environ__sep
#include "symbol._sep.h"
+/* This C file is generated by NIT to compile module exec. */
#include "exec._sep.h"
val_t exec___Process___id(val_t self) {
struct trace_t trace = {NULL, "exec::Process::id (bin/../lib/standard//exec.nit:23,2--24:32)"};
+/* This C header file is generated by NIT to compile modules and programs that requires exec. */
#ifndef exec__sep
#define exec__sep
#include "stream._sep.h"
+/* This C file is generated by NIT to compile module file. */
#include "file._sep.h"
void file___Object___printn(val_t self, val_t param0) {
struct trace_t trace = {NULL, "file::Object::printn (bin/../lib/standard//file.nit:24,2--27:27)"};
+/* This C header file is generated by NIT to compile modules and programs that requires file. */
#ifndef file__sep
#define file__sep
#include "stream._sep.h"
+/* This C file is generated by NIT to compile module genericity. */
#include "genericity._sep.h"
val_t genericity___MMLocalClass___get_formal(val_t self, val_t param0) {
struct trace_t trace = {NULL, "genericity::MMLocalClass::get_formal (src/metamodel//genericity.nit:25,2--28:26)"};
+/* This C header file is generated by NIT to compile modules and programs that requires genericity. */
#ifndef genericity__sep
#define genericity__sep
#include "type_formal._sep.h"
+/* This C file is generated by NIT to compile module hash. */
#include "hash._sep.h"
val_t hash___Object___hash(val_t self) {
struct trace_t trace = {NULL, "hash::Object::hash (bin/../lib/standard//hash.nit:21,2--25:39)"};
+/* This C header file is generated by NIT to compile modules and programs that requires hash. */
#ifndef hash__sep
#define hash__sep
#include "string._sep.h"
+/* This C file is generated by NIT to compile module inheritance. */
#include "inheritance._sep.h"
val_t inheritance___MMModule___type_any(val_t self) {
struct trace_t trace = {NULL, "inheritance::MMModule::type_any (src/metamodel//inheritance.nit:24,2--28:24)"};
+/* This C header file is generated by NIT to compile modules and programs that requires inheritance. */
#ifndef inheritance__sep
#define inheritance__sep
#include "static_type._sep.h"
+/* This C file is generated by NIT to compile module kernel. */
#include "kernel._sep.h"
val_t kernel___Object___object_id(val_t self) {
struct trace_t trace = {NULL, "kernel::Object::object_id (bin/../lib/standard//kernel.nit:26,2--27:20)"};
+/* This C header file is generated by NIT to compile modules and programs that requires kernel. */
#ifndef kernel__sep
#define kernel__sep
#include <nit_common.h>
+/* This C file is generated by NIT to compile module lexer. */
#include "lexer._sep.h"
val_t lexer___Token___text(val_t self) {
struct trace_t trace = {NULL, "lexer::Token::text (src/parser//lexer.nit:8,5--40)"};
+/* This C header file is generated by NIT to compile modules and programs that requires lexer. */
#ifndef lexer__sep
#define lexer__sep
#include "parser_nodes._sep.h"
+/* This C file is generated by NIT to compile module list. */
#include "list._sep.h"
val_t list___List_____bra(val_t self, val_t param0) {
struct trace_t trace = {NULL, "list::List::[] (bin/../lib/standard//list.nit:21,1--22:52)"};
+/* This C header file is generated by NIT to compile modules and programs that requires list. */
#ifndef list__sep
#define list__sep
#include "abstract_collection._sep.h"
+/* This C file is generated by NIT to compile module math. */
#include "math._sep.h"
val_t math___Int___rand(val_t self) {
struct trace_t trace = {NULL, "math::Int::rand (bin/../lib/standard//math.nit:19,2--49)"};
+/* This C header file is generated by NIT to compile modules and programs that requires math. */
#ifndef math__sep
#define math__sep
#include "kernel._sep.h"
+/* This C file is generated by NIT to compile module metamodel. */
#include "metamodel._sep.h"
+/* This C header file is generated by NIT to compile modules and programs that requires metamodel. */
#ifndef metamodel__sep
#define metamodel__sep
#include "vararg._sep.h"
+/* This C file is generated by NIT to compile module mmbuilder. */
#include "mmbuilder._sep.h"
val_t mmbuilder___CSHSorter___compare(val_t self, val_t param0, val_t param1) {
struct trace_t trace = {NULL, "mmbuilder::CSHSorter::compare (src/syntax//mmbuilder.nit:27,2--29:36)"};
+/* This C header file is generated by NIT to compile modules and programs that requires mmbuilder. */
#ifndef mmbuilder__sep
#define mmbuilder__sep
#include "syntax_base._sep.h"
+/* This C file is generated by NIT to compile module mmloader. */
#include "mmloader._sep.h"
val_t mmloader___ToolContext___error_count(val_t self) {
struct trace_t trace = {NULL, "mmloader::ToolContext::error_count (src/mmloader.nit:27,2--28:32)"};
+/* This C header file is generated by NIT to compile modules and programs that requires mmloader. */
#ifndef mmloader__sep
#define mmloader__sep
#include "metamodel._sep.h"
#!/bin/sh
+# This shell script is generated by NIT to compile the program nitc.
CLIBDIR="../lib"
../bin/gccx -d .nit_compile -I $CLIBDIR -I ../lib/standard/ -o nitc "$@" \
$CLIBDIR/nit_main.c\
+/* This C file is generated by NIT to compile module nitc. */
#include "nitc._sep.h"
val_t nitc___NitCompiler___opt_output(val_t self) {
struct trace_t trace = {NULL, "nitc::NitCompiler::opt_output (src/nitc.nit:26,2--91)"};
+/* This C header file is generated by NIT to compile modules and programs that requires nitc. */
#ifndef nitc__sep
#define nitc__sep
#include "abstracttool._sep.h"
+/* This C file is generated by NIT to compile program nitc. */
#include "abstracttool._sep.h"
#include "syntax._sep.h"
#include "mmbuilder._sep.h"
+/* This C file is generated by NIT to compile module opts. */
#include "opts._sep.h"
val_t opts___Option___names(val_t self) {
struct trace_t trace = {NULL, "opts::Option::names (bin/../lib/opts.nit:16,2--17:35)"};
+/* This C header file is generated by NIT to compile modules and programs that requires opts. */
#ifndef opts__sep
#define opts__sep
#include "standard._sep.h"
+/* This C file is generated by NIT to compile module parser. */
#include "parser._sep.h"
val_t parser___State___state(val_t self) {
struct trace_t trace = {NULL, "parser::State::state (src/parser//parser.nit:10,2--11:35)"};
+/* This C header file is generated by NIT to compile modules and programs that requires parser. */
#ifndef parser__sep
#define parser__sep
#include "parser_prod._sep.h"
+/* This C file is generated by NIT to compile module parser_nodes. */
#include "parser_nodes._sep.h"
val_t parser_nodes___PPropdef___n_doc(val_t self) {
struct trace_t trace = {NULL, "parser_nodes::PPropdef::n_doc (src/parser//parser_nodes.nit:280,5--39)"};
+/* This C header file is generated by NIT to compile modules and programs that requires parser_nodes. */
#ifndef parser_nodes__sep
#define parser_nodes__sep
#include "standard._sep.h"
+/* This C file is generated by NIT to compile module parser_prod. */
#include "parser_prod._sep.h"
val_t parser_prod___PNode___parent(val_t self) {
struct trace_t trace = {NULL, "parser_prod::PNode::parent (src/parser//parser_prod.nit:9,2--10:38)"};
+/* This C header file is generated by NIT to compile modules and programs that requires parser_prod. */
#ifndef parser_prod__sep
#define parser_prod__sep
#include "lexer._sep.h"
+/* This C file is generated by NIT to compile module parser_tables. */
#include "parser_tables._sep.h"
void parser_tables___Parser___build_action_table(val_t self) {
struct trace_t trace = {NULL, "parser_tables::Parser::build_action_table (src/parser//parser_tables.nit:8,2--1154:34)"};
+/* This C header file is generated by NIT to compile modules and programs that requires parser_tables. */
#ifndef parser_tables__sep
#define parser_tables__sep
#include "standard._sep.h"
+/* This C file is generated by NIT to compile module partial_order. */
#include "partial_order._sep.h"
val_t partial_order___PartialOrder___roots(val_t self) {
struct trace_t trace = {NULL, "partial_order::PartialOrder::roots (src/metamodel//partial_order.nit:30,2--31:30)"};
+/* This C header file is generated by NIT to compile modules and programs that requires partial_order. */
#ifndef partial_order__sep
#define partial_order__sep
#include "standard._sep.h"
+/* This C file is generated by NIT to compile module range. */
#include "range._sep.h"
val_t range___Range___first(val_t self) {
struct trace_t trace = {NULL, "range::Range::first (bin/../lib/standard//range.nit:22,2--30)"};
+/* This C header file is generated by NIT to compile modules and programs that requires range. */
#ifndef range__sep
#define range__sep
#include "abstract_collection._sep.h"
+/* This C file is generated by NIT to compile module sorter. */
#include "sorter._sep.h"
val_t sorter___AbstractSorter___compare(val_t self, val_t param0, val_t param1) {
struct trace_t trace = {NULL, "sorter::AbstractSorter::compare (bin/../lib/standard//sorter.nit:22,2--27:40)"};
+/* This C header file is generated by NIT to compile modules and programs that requires sorter. */
#ifndef sorter__sep
#define sorter__sep
#include "array._sep.h"
+/* This C file is generated by NIT to compile module standard. */
#include "standard._sep.h"
+/* This C header file is generated by NIT to compile modules and programs that requires standard. */
#ifndef standard__sep
#define standard__sep
#include "environ._sep.h"
+/* This C file is generated by NIT to compile module static_type. */
#include "static_type._sep.h"
val_t static_type___MMLocalClass___get_type(val_t self) {
struct trace_t trace = {NULL, "static_type::MMLocalClass::get_type (src/metamodel//static_type.nit:27,2--31:25)"};
+/* This C header file is generated by NIT to compile modules and programs that requires static_type. */
#ifndef static_type__sep
#define static_type__sep
#include "abstractmetamodel._sep.h"
+/* This C file is generated by NIT to compile module stream. */
#include "stream._sep.h"
void stream___IOS___close(val_t self) {
struct trace_t trace = {NULL, "stream::IOS::close (bin/../lib/standard//stream.nit:20,2--21:11)"};
+/* This C header file is generated by NIT to compile modules and programs that requires stream. */
#ifndef stream__sep
#define stream__sep
#include "string._sep.h"
+/* This C file is generated by NIT to compile module string. */
#include "string._sep.h"
val_t string___String_____bra(val_t self, val_t param0) {
struct trace_t trace = {NULL, "string::String::[] (bin/../lib/standard//string.nit:31,2--44)"};
+/* This C header file is generated by NIT to compile modules and programs that requires string. */
#ifndef string__sep
#define string__sep
#include "array._sep.h"
+/* This C file is generated by NIT to compile module string_search. */
#include "string_search._sep.h"
val_t string_search___Pattern___search_index_in(val_t self, val_t param0, val_t param1) {
struct trace_t trace = {NULL, "string_search::Pattern::search_index_in (bin/../lib/standard//string_search.nit:21,2--24:48)"};
+/* This C header file is generated by NIT to compile modules and programs that requires string_search. */
#ifndef string_search__sep
#define string_search__sep
#include "string._sep.h"
+/* This C file is generated by NIT to compile module symbol. */
#include "symbol._sep.h"
val_t symbol___String___to_symbol(val_t self) {
struct trace_t trace = {NULL, "symbol::String::to_symbol (bin/../lib/standard//symbol.nit:20,2--29:16)"};
+/* This C header file is generated by NIT to compile modules and programs that requires symbol. */
#ifndef symbol__sep
#define symbol__sep
#include "hash._sep.h"
+/* This C file is generated by NIT to compile module syntax. */
#include "syntax._sep.h"
val_t syntax___SrcModuleLoader___file_type(val_t self) {
struct trace_t trace = {NULL, "syntax::SrcModuleLoader::file_type (src/syntax//syntax.nit:31,2--37)"};
+/* This C header file is generated by NIT to compile modules and programs that requires syntax. */
#ifndef syntax__sep
#define syntax__sep
#include "mmbuilder._sep.h"
+/* This C file is generated by NIT to compile module syntax_base. */
#include "syntax_base._sep.h"
val_t syntax_base___MMSrcModule___node(val_t self) {
struct trace_t trace = {NULL, "syntax_base::MMSrcModule::node (src/syntax//syntax_base.nit:26,2--27:29)"};
+/* This C header file is generated by NIT to compile modules and programs that requires syntax_base. */
#ifndef syntax_base__sep
#define syntax_base__sep
#include "parser._sep.h"
+/* This C file is generated by NIT to compile module time. */
#include "time._sep.h"
val_t time___Object___get_time(val_t self) {
struct trace_t trace = {NULL, "time::Object::get_time (bin/../lib/standard//time.nit:18,2--67)"};
+/* This C header file is generated by NIT to compile modules and programs that requires time. */
#ifndef time__sep
#define time__sep
#include "kernel._sep.h"
+/* This C file is generated by NIT to compile module type_formal. */
#include "type_formal._sep.h"
val_t type_formal___MMType___direct_type(val_t self) {
struct trace_t trace = {NULL, "type_formal::MMType::direct_type (src/metamodel//type_formal.nit:24,2--25:40)"};
+/* This C header file is generated by NIT to compile modules and programs that requires type_formal. */
#ifndef type_formal__sep
#define type_formal__sep
#include "inheritance._sep.h"
+/* This C file is generated by NIT to compile module typing. */
#include "typing._sep.h"
void typing___MMSrcModule___do_typing(val_t self, val_t param0) {
struct trace_t trace = {NULL, "typing::MMSrcModule::do_typing (src/syntax//typing.nit:23,2--28:15)"};
+/* This C header file is generated by NIT to compile modules and programs that requires typing. */
#ifndef typing__sep
#define typing__sep
#include "syntax_base._sep.h"
+/* This C file is generated by NIT to compile module utils. */
#include "utils._sep.h"
val_t utils___Object___cmangle(val_t self, val_t param0) {
struct trace_t trace = {NULL, "utils::Object::cmangle (src/utils.nit:21,1--55:11)"};
+/* This C header file is generated by NIT to compile modules and programs that requires utils. */
#ifndef utils__sep
#define utils__sep
#include "standard._sep.h"
+/* This C file is generated by NIT to compile module vararg. */
#include "vararg._sep.h"
val_t vararg___MMSignature___vararg_rank(val_t self) {
struct trace_t trace = {NULL, "vararg::MMSignature::vararg_rank (src/metamodel//vararg.nit:24,2--25:41)"};
+/* This C header file is generated by NIT to compile modules and programs that requires vararg. */
#ifndef vararg__sep
#define vararg__sep
#include "genericity._sep.h"
+/* This C file is generated by NIT to compile module virtualtype. */
#include "virtualtype._sep.h"
val_t virtualtype___MMGlobalProperty___is_virtual_type(val_t self) {
struct trace_t trace = {NULL, "virtualtype::MMGlobalProperty::is_virtual_type (src/metamodel//virtualtype.nit:24,2--25:62)"};
+/* This C header file is generated by NIT to compile modules and programs that requires virtualtype. */
#ifndef virtualtype__sep
#define virtualtype__sep
#include "type_formal._sep.h"
var fn = "{tc.base_dir}/{name}.{tc.ext_prefix}_build.sh"
var f = new OFStream.open(fn)
f.write("#!/bin/sh\n")
+ f.write("# This shell script is generated by NIT to compile the program {name}.\n")
f.write("CLIBDIR=\"{tc.clibdir}\"\n")
f.write("{tc.bindir}/gccx -d {tc.base_dir} -I $CLIBDIR {includes.join(" ")}")
if tc.output_file != null then
compile_tables_to_c(v)
compile_main_part(v)
var f = new OFStream.open("{tc.base_dir}/{name}.{tc.ext_prefix}_tables.c")
+ f.write("/* This C file is generated by NIT to compile program {name}. */\n")
for m in mhe.greaters_and_self do
f.write("#include \"{m.name}.{tc.ext_prefix}_sep.h\"\n")
end
declare_class_tables_to_c(v)
compile_mod_to_c(v)
var f = new OFStream.open("{tc.base_dir}/{name}.{tc.ext_prefix}_sep.h")
+ f.write("/* This C header file is generated by NIT to compile modules and programs that requires {name}. */\n")
f.write("#ifndef {name}_{tc.ext_prefix}_sep\n")
f.write("#define {name}_{tc.ext_prefix}_sep\n")
for m in mhe.direct_greaters do f.write("#include \"{m.name}.{tc.ext_prefix}_sep.h\"\n")
f.write("\n#endif\n")
f.close
var f = new OFStream.open("{tc.base_dir}/{name}.{tc.ext_prefix}_sep.c")
+ f.write("/* This C file is generated by NIT to compile module {name}. */\n")
f.write("#include \"{name}.{tc.ext_prefix}_sep.h\"\n")
f.write(v.ctx.instrs.join("\n"))
f.write("\n")