summaryrefslogtreecommitdiff
path: root/reconfigure/parsers/base.py
diff options
context:
space:
mode:
authorAndrew Shadura <andrew@shadura.me>2015-08-20 15:58:26 +0200
committerAndrew Shadura <andrew@shadura.me>2015-08-20 15:58:26 +0200
commitff1408420159488a106492ccd11dd234967029b6 (patch)
tree473420cee1c5229a427ec4cafead1aa6c0a26800 /reconfigure/parsers/base.py
Imported Upstream version 0.1.29
Diffstat (limited to 'reconfigure/parsers/base.py')
-rw-r--r--reconfigure/parsers/base.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/reconfigure/parsers/base.py b/reconfigure/parsers/base.py
new file mode 100644
index 0000000..321fe1b
--- /dev/null
+++ b/reconfigure/parsers/base.py
@@ -0,0 +1,18 @@
+class BaseParser (object): # pragma: no cover
+ """
+ A base parser class
+ """
+
+ def parse(self, content):
+ """
+ :param content: string config content
+ :returns: a :class:`reconfigure.nodes.Node` tree
+ """
+ return None
+
+ def stringify(self, tree):
+ """
+ :param tree: a :class:`reconfigure.nodes.Node` tree
+ :returns: string config content
+ """
+ return None