mirror of
https://github.com/NixOS/nix
synced 2025-06-25 23:11:16 +02:00
* Use a proper namespace.
* Optimise header file usage a bit. * Compile the parser as C++.
This commit is contained in:
parent
aab8812732
commit
75068e7d75
61 changed files with 650 additions and 268 deletions
|
@ -1,10 +1,12 @@
|
|||
#include "expr-to-xml.hh"
|
||||
|
||||
#include "xml-writer.hh"
|
||||
#include "nixexpr-ast.hh"
|
||||
#include "aterm.hh"
|
||||
|
||||
|
||||
namespace nix {
|
||||
|
||||
|
||||
static XMLAttrs singletonAttrs(const string & name, const string & value)
|
||||
{
|
||||
XMLAttrs attrs;
|
||||
|
@ -84,9 +86,12 @@ static void printTermAsXML(Expr e, XMLWriter & doc)
|
|||
}
|
||||
|
||||
|
||||
void printTermAsXML(Expr e, ostream & out)
|
||||
void printTermAsXML(Expr e, std::ostream & out)
|
||||
{
|
||||
XMLWriter doc(true, out);
|
||||
XMLOpenElement root(doc, "expr");
|
||||
printTermAsXML(e, doc);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue