Commit 99c7740b authored by Sarah Spall's avatar Sarah Spall Committed by Vikram Narayanan
Browse files

modified parser gen to print include for string header file in the header files it produces

parent f9ed1a16
...@@ -11,6 +11,7 @@ def generate(peg): ...@@ -11,6 +11,7 @@ def generate(peg):
guard = generate_guard(peg) guard = generate_guard(peg)
code = """ code = """
/* filename should be a path to a file */ /* filename should be a path to a file */
extern const void * parse(const std::string & filename, bool stats = false); extern const void * parse(const std::string & filename, bool stats = false);
...@@ -37,6 +38,8 @@ def generate(peg): ...@@ -37,6 +38,8 @@ def generate(peg):
#ifndef _%s_ #ifndef _%s_
#define _%s_ #define _%s_
#include <string>
%s %s
#endif #endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment