aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/ast/printer.py
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2019-01-15 18:45:25 +0100
committerDaniel Mensinger <daniel@mensinger-ka.de>2019-01-22 16:09:34 +0100
commitccad493e85e46bf0e78cfac8b77b03b7be75a396 (patch)
tree255ebb2995f3db3a24bdc71bc327bb2f03f106f9 /mesonbuild/ast/printer.py
parent72486afd08d66d6323c2113739dcfff74813058b (diff)
downloadmeson-ccad493e85e46bf0e78cfac8b77b03b7be75a396.zip
meson-ccad493e85e46bf0e78cfac8b77b03b7be75a396.tar.gz
meson-ccad493e85e46bf0e78cfac8b77b03b7be75a396.tar.bz2
Basic AST visitor pattern
Diffstat (limited to 'mesonbuild/ast/printer.py')
-rw-r--r--mesonbuild/ast/printer.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/mesonbuild/ast/printer.py b/mesonbuild/ast/printer.py
new file mode 100644
index 0000000..c1710be
--- /dev/null
+++ b/mesonbuild/ast/printer.py
@@ -0,0 +1,22 @@
+# Copyright 2018 The Meson development team
+
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+
+# http://www.apache.org/licenses/LICENSE-2.0
+
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# This class contains the basic functionality needed to run any interpreter
+# or an interpreter-based tool
+
+from . import AstVisitor
+
+class AstPrinter(AstVisitor):
+ def __init__(self):
+ pass