summaryrefslogtreecommitdiff
path: root/cli/generator.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-09-27 18:20:49 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-09-27 18:20:49 +0200
commit4b1e037fb0f763cd3e3401d71b66269440d75dbf (patch)
tree68d16506b8c7410c0e0fd34358249ebf4929f395 /cli/generator.cxx
parentb5e7ac58b0e44a7903808d622f5af97c07171281 (diff)
Generate parsing constructors and parsing code
Also generate some runtime support code such exceptions, value parsers, etc.
Diffstat (limited to 'cli/generator.cxx')
-rw-r--r--cli/generator.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/cli/generator.cxx b/cli/generator.cxx
index b864dfb..79401e0 100644
--- a/cli/generator.cxx
+++ b/cli/generator.cxx
@@ -17,6 +17,9 @@
#include "source.hxx"
#include "inline.hxx"
+#include "runtime-header.hxx"
+#include "runtime-source.hxx"
+
#include "context.hxx"
#include "generator.hxx"
#include "name-processor.hxx"
@@ -174,7 +177,9 @@ generate (semantics::cli_unit& unit, path const& p)
<< "#define " << guard << endl
<< endl;
+ generate_runtime_header_decl (ctx);
generate_header (ctx);
+ generate_runtime_header_impl (ctx);
if (inl)
{
@@ -206,6 +211,7 @@ generate (semantics::cli_unit& unit, path const& p)
if (!inl)
generate_inline (ctx);
+ generate_runtime_source (ctx);
generate_source (ctx);
}