summaryrefslogtreecommitdiff
path: root/graphics/asymptote/absyn.cc
blob: 0144977813d1b5a956e8da9ef2874c2f8ec5c36a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/****
 * absyn.cc
 * Tom Prince 2004/05/12
 *
 * Utility functions for syntax trees.
 *****/

#include "absyn.h"
#include "coenv.h"

namespace absyntax {

void absyn::markPos(trans::coenv& e)
{
  e.c.markPos(getPos());
}

absyn::~absyn()
{}

void prettyindent(ostream &out, Int indent)
{
  for (Int i = 0; i < indent; i++) out << " ";
}
void prettyname(ostream &out, string name, Int indent, position pos) {
  pos.print(out);
  prettyindent(out,indent);
  out << name << "\n";
}

} // namespace absyntax