summaryrefslogtreecommitdiffstats
path: root/src/solar.cpp
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2015-04-08 23:49:42 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2015-04-08 23:49:42 +0200
commit9c990ae801b949de2728bfff4258aa90f9c96a52 (patch)
treeba2742dc1b3ef0b9898e20a6162e54fb58f440e2 /src/solar.cpp
parent7b8ebfcef1dada98ff36aeb4d16cd3c06517e879 (diff)
downloadsolar-9c990ae801b949de2728bfff4258aa90f9c96a52.tar
solar-9c990ae801b949de2728bfff4258aa90f9c96a52.zip
Allow adding source blocks to the top the of header and source files
Diffstat (limited to 'src/solar.cpp')
-rw-r--r--src/solar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/solar.cpp b/src/solar.cpp
index f3b04f6..46c7fad 100644
--- a/src/solar.cpp
+++ b/src/solar.cpp
@@ -87,7 +87,7 @@ int main(int argc, char *argv[]) {
if (!read_grammar(argv[1], &state))
return 1;
- generator_t generator(state.get_rules(), state.get_nonterm_types(), state.get_term_types());
+ generator_t generator(state.get_rules(), state.get_nonterm_types(), state.get_term_types(), state.get_header_block(), state.get_source_block());
output_t output(&generator, argv[3], argv[2]);
output.write();