diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /graphics/asymptote/absyn.cc |
Initial commit
Diffstat (limited to 'graphics/asymptote/absyn.cc')
-rw-r--r-- | graphics/asymptote/absyn.cc | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/graphics/asymptote/absyn.cc b/graphics/asymptote/absyn.cc new file mode 100644 index 0000000000..8ff3148dc2 --- /dev/null +++ b/graphics/asymptote/absyn.cc @@ -0,0 +1,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 |