summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/absyn.cc
blob: 8ff3148dc2a541c9ac72b72654c43c9b6e53b4e3 (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
/****
 * 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) {
  prettyindent(out,indent);
  out << name << "\n";
}

} // namespace absyntax