diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-01-15 18:45:25 +0100 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2019-01-22 16:09:34 +0100 |
commit | ccad493e85e46bf0e78cfac8b77b03b7be75a396 (patch) | |
tree | 255ebb2995f3db3a24bdc71bc327bb2f03f106f9 /mesonbuild/ast/printer.py | |
parent | 72486afd08d66d6323c2113739dcfff74813058b (diff) | |
download | meson-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.py | 22 |
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 |